custom fields: Move field-type inputs first in create-field form.

As other data of field, such as field name, hint etc. are
relative to field type, this commit moves the field type
input to the first order in create field form in org settings.
This commit is contained in:
Yashashvi Dave 2019-08-28 09:15:49 +05:30 committed by Tim Abbott
parent e05429b6a9
commit 313003900a
1 changed files with 15 additions and 15 deletions

View File

@ -19,15 +19,6 @@
<div class="new-profile-field-form wrapper">
<div class="settings-section-title new-profile-field-section-title inline-block">{{t "Add a new profile field" }}</div>
<div class="alert-notification" id="admin-add-profile-field-status"></div>
<div class="control-group">
<label for="profile_field_name" class="control-label">{{t "Label" }}</label>
<input type="text" id="profile_field_name" name="name" autocomplete="off" maxlength="40" />
</div>
<div class="control-group">
<label for="profile_field_hint" class="control-label">{{t "Hint (up to 80 characters)" }}</label>
<input type="text" id="profile_field_hint" name="hint" autocomplete="off" maxlength="80" />
<div class="alert" id="admin-profile-field-hint-status"></div>
</div>
<div class="control-group">
<label for="profile_field_type" class="control-label">{{t "Type" }}</label>
<select id="profile_field_type" name="field_type">
@ -36,12 +27,6 @@
{{/each}}
</select>
</div>
<div class="control-group" id="profile_field_choices_row">
<label for="profile_field_choices" class="control-label">{{t "Field choices" }}</label>
<table class="profile_field_choices_table">
<tbody id="profile_field_choices" class="profile-field-choices"></tbody>
</table>
</div>
<div class="control-group" id="profile_field_external_accounts">
<label for="profile_field_external_accounts_type" class="control-label">{{t "External account type" }}</label>
<select id="profile_field_external_accounts_type" name="external_acc_field_type">
@ -51,6 +36,21 @@
<option value="custom">{{t 'Custom' }}</option>
</select>
</div>
<div class="control-group">
<label for="profile_field_name" class="control-label">{{t "Label" }}</label>
<input type="text" id="profile_field_name" name="name" autocomplete="off" maxlength="40" />
</div>
<div class="control-group">
<label for="profile_field_hint" class="control-label">{{t "Hint (up to 80 characters)" }}</label>
<input type="text" id="profile_field_hint" name="hint" autocomplete="off" maxlength="80" />
<div class="alert" id="admin-profile-field-hint-status"></div>
</div>
<div class="control-group" id="profile_field_choices_row">
<label for="profile_field_choices" class="control-label">{{t "Field choices" }}</label>
<table class="profile_field_choices_table">
<tbody id="profile_field_choices" class="profile-field-choices"></tbody>
</table>
</div>
<div class="control-group" id="custom_external_account_url_pattern">
<label for="custom_field_url_pattern" class="control-label">{{t "URL pattern" }}</label>
<input type="url" id="custom_field_url_pattern" name="url_pattern" autocomplete="off" maxlength="80" />