2017-12-14 05:51:45 +01:00
|
|
|
<div id="profile-field-settings" class="settings-section" data-name="profile-field-settings">
|
2018-04-10 20:47:15 +02:00
|
|
|
<h3 class="inline-block">{{t "Custom profile fields" }}</h3>
|
|
|
|
<div class="alert-notification" id="admin-profile-field-status"></div>
|
2017-12-14 05:51:45 +01:00
|
|
|
<div class="admin-table-wrapper">
|
|
|
|
<table class="table table-condensed table-striped admin_profile_fields_table">
|
|
|
|
<tbody id="admin_profile_fields_table">
|
|
|
|
<th>{{t "Label" }}</th>
|
2018-03-31 09:23:57 +02:00
|
|
|
<th>{{t "Hint" }}</th>
|
2017-12-14 05:51:45 +01:00
|
|
|
<th>{{t "Type" }}</th>
|
|
|
|
{{#if is_admin}}
|
|
|
|
<th class="actions">{{t "Actions" }}</th>
|
|
|
|
{{/if}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{{#if is_admin}}
|
|
|
|
<form class="form-horizontal admin-profile-field-form">
|
|
|
|
<div class="add-new-profile-field-box grey-box">
|
|
|
|
<div class="new-profile-field-form wrapper">
|
2019-07-10 14:32:27 +02:00
|
|
|
<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>
|
2017-12-14 05:51:45 +01:00
|
|
|
<div class="control-group">
|
|
|
|
<label for="profile_field_name" class="control-label">{{t "Label" }}</label>
|
2018-08-16 20:12:49 +02:00
|
|
|
<input type="text" id="profile_field_name" name="name" autocomplete="off" maxlength="40" />
|
2017-12-14 05:51:45 +01:00
|
|
|
</div>
|
2018-03-31 09:23:57 +02:00
|
|
|
<div class="control-group">
|
2018-08-16 20:12:49 +02:00
|
|
|
<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" />
|
2018-03-31 09:23:57 +02:00
|
|
|
<div class="alert" id="admin-profile-field-hint-status"></div>
|
|
|
|
</div>
|
2017-12-14 05:51:45 +01:00
|
|
|
<div class="control-group">
|
|
|
|
<label for="profile_field_type" class="control-label">{{t "Type" }}</label>
|
|
|
|
<select id="profile_field_type" name="field_type">
|
|
|
|
{{#each custom_profile_field_types}}
|
2018-08-15 11:35:18 +02:00
|
|
|
<option value='{{this.id}}'>{{this.name}}</option>
|
2017-12-14 05:51:45 +01:00
|
|
|
{{/each}}
|
|
|
|
</select>
|
|
|
|
</div>
|
2018-04-12 11:17:52 +02:00
|
|
|
<div class="control-group" id="profile_field_choices_row">
|
|
|
|
<label for="profile_field_choices" class="control-label">{{t "Field choices" }}</label>
|
2018-08-02 19:31:17 +02:00
|
|
|
<table class="profile_field_choices_table">
|
|
|
|
<tbody id="profile_field_choices" class="profile-field-choices"></tbody>
|
|
|
|
</table>
|
2018-04-12 11:17:52 +02:00
|
|
|
</div>
|
2019-05-27 10:59:55 +02:00
|
|
|
<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">
|
|
|
|
{{#each realm_default_external_accounts}}
|
|
|
|
<option value='{{@key}}'>{{this.text}}</option>
|
|
|
|
{{/each}}
|
|
|
|
<option value="custom">{{t 'Custom' }}</option>
|
|
|
|
</select>
|
|
|
|
</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" />
|
|
|
|
</div>
|
2018-08-02 18:35:33 +02:00
|
|
|
<button type="submit" class="button rounded sea-green" id="add-custom-profile-field-btn">
|
2017-12-14 05:51:45 +01:00
|
|
|
{{t 'Add profile field' }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|