org_settings: Fix formatting and field ordering for bot modal.

This commit fixes the formatting of the "Manage bot" modal and re-orders
the field labels as per the bot-list table.
This commit is contained in:
somesh202 2022-03-31 12:34:36 +05:30 committed by Tim Abbott
parent b1cafb1280
commit 0b92e4c22f
3 changed files with 13 additions and 10 deletions

View File

@ -690,7 +690,7 @@ function handle_bot_form($tbody) {
}
dialog_widget.launch({
html_heading: $t_html({defaultMessage: "Change bot info and owner"}),
html_heading: $t_html({defaultMessage: "Manage bot"}),
html_body,
id: "edit_bot_modal",
on_click: submit_bot_details,

View File

@ -966,7 +966,6 @@ input[type="checkbox"] {
padding: 0;
label {
text-transform: uppercase;
font-weight: 600;
color: hsl(0, 0%, 67%);
margin-top: 5px;

View File

@ -1,19 +1,23 @@
<div id="bot-edit-form" data-user-id="{{user_id}}">
<form class="new-style edit_bot_form form-horizontal name-setting">
<div class="input-group name_change_container">
<label for="full_name">{{t "Full name" }}</label>
<input type="text" autocomplete="off" name="full_name" value="{{ full_name }}" />
</div>
<input type="hidden" name="is_full_name" value="true" />
<div class="input-group email_change_container">
<label for="email">{{t "Email" }}</label>
<input type="text" autocomplete="off" name="email" value="{{ email }}" readonly/>
</div>
<div class="input-group user_id_container">
<label for="user_id">{{t "User ID" }}</label>
<input type="text" autocomplete="off" name="user_id" value="{{ user_id }}" readonly/>
</div>
<div class="input-group edit_bot_owner_container">
<label for="bot_owner_select">{{t "Owner" }}</label>
{{> dropdown_list_widget
widget_name="edit_bot_owner"
list_placeholder=(t 'Filter users')}}
</div>
<div class="name_change_container">
<label for="full_name">{{t "Full name" }}</label>
<input type="text" autocomplete="off" name="full_name" value="{{ full_name }}" />
</div>
<div class="email_change_container">
<label for="email">{{t "Email" }}</label>
<input type="text" autocomplete="off" name="email" value="{{ email }}" readonly/>
</div>
</form>
</div>