2017-12-14 05:51:45 +01:00
|
|
|
{{#with profile_field}}
|
2018-07-05 19:40:26 +02:00
|
|
|
<tr class="profile-field-row movable-profile-field-row" data-profile-field-id="{{id}}">
|
2017-12-14 05:51:45 +01:00
|
|
|
<td>
|
2018-06-09 09:37:59 +02:00
|
|
|
{{#if ../can_modify}}
|
2018-07-05 19:40:26 +02:00
|
|
|
<i class="fa fa-ellipsis-v" aria-hidden="true"></i>
|
|
|
|
<i class="fa fa-ellipsis-v" aria-hidden="true"></i>
|
2018-06-09 09:37:59 +02:00
|
|
|
{{/if}}
|
2017-12-14 05:51:45 +01:00
|
|
|
<span class="profile_field_name">{{name}}</span>
|
|
|
|
</td>
|
2018-03-31 09:23:57 +02:00
|
|
|
<td>
|
|
|
|
<span class="profile_field_hint">{{hint}}</span>
|
|
|
|
</td>
|
2017-12-14 05:51:45 +01:00
|
|
|
<td>
|
|
|
|
<span class="profile_field_type">{{type}}</span>
|
|
|
|
</td>
|
|
|
|
{{#if ../can_modify}}
|
|
|
|
<td>
|
|
|
|
<button class="button rounded small delete btn-danger" title="{{t 'Delete' }}" data-profile-field-id="{{id}}">
|
2018-07-04 00:40:13 +02:00
|
|
|
<i class="fa fa-trash-o" aria-hidden="true"></i>
|
2017-12-14 05:51:45 +01:00
|
|
|
</button>
|
|
|
|
<button class="button rounded small btn-warning open-edit-form" title="{{t 'Edit' }}" data-profile-field-id="{{id}}">
|
2018-07-04 00:40:13 +02:00
|
|
|
<i class="fa fa-pencil" aria-hidden="true"></i>
|
2017-12-14 05:51:45 +01:00
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
{{/if}}
|
|
|
|
</tr>
|
2019-05-07 09:44:29 +02:00
|
|
|
<tr class="profile-field-form" data-profile-field-id="{{id}}" style="display: none;">
|
2017-12-14 05:51:45 +01:00
|
|
|
<td colspan="3">
|
|
|
|
<form class="form-horizontal name-setting">
|
|
|
|
<div class="input-group name_change_container">
|
|
|
|
<label for="name">{{t "Name" }}</label>
|
2018-08-16 20:12:49 +02:00
|
|
|
<input type="text" name="name" value="{{ name }}" maxlength="40" />
|
2017-12-14 05:51:45 +01:00
|
|
|
</div>
|
2018-03-31 09:23:57 +02:00
|
|
|
<div class="input-group hint_change_container">
|
|
|
|
<label for="hint">{{t "Hint" }}</label>
|
2018-08-16 20:12:49 +02:00
|
|
|
<input type="text" name="hint" value="{{ hint }}" maxlength="80" />
|
2018-03-31 09:23:57 +02:00
|
|
|
</div>
|
2021-03-24 11:41:29 +01:00
|
|
|
{{#if is_select_field }}
|
2018-04-12 11:17:52 +02:00
|
|
|
<div class="input-group">
|
|
|
|
<label for="profile_field_choices_edit">{{t "Field choices" }}</label>
|
|
|
|
<div class="profile-field-choices" name="profile_field_choices_edit">
|
2021-04-21 00:46:14 +02:00
|
|
|
<hr />
|
2018-08-02 19:31:17 +02:00
|
|
|
<div class="edit_profile_field_choices_container">
|
|
|
|
{{#each choices}}
|
2019-07-11 04:05:28 +02:00
|
|
|
{{> settings/profile_field_choice }}
|
2018-08-02 19:31:17 +02:00
|
|
|
{{/each}}
|
|
|
|
</div>
|
2018-04-12 11:17:52 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2019-05-27 10:59:55 +02:00
|
|
|
{{#if is_external_account_field}}
|
|
|
|
<div class="input-group profile_field_external_accounts_edit">
|
|
|
|
<label for="external_acc_field_type">{{t "External account type" }}</label>
|
|
|
|
<select 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="input-group custom_external_account_detail">
|
|
|
|
<label for="url_pattern">{{t "URL pattern" }}</label>
|
|
|
|
<input type="url" name="url_pattern" autocomplete="off" maxlength="80" />
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2017-12-14 05:51:45 +01:00
|
|
|
<div class="input-group">
|
|
|
|
<button type="button" class="button rounded sea-green submit">
|
|
|
|
{{t 'Save changes' }}
|
|
|
|
</button>
|
|
|
|
<button type="button" class="button rounded btn-danger reset">
|
|
|
|
{{t 'Cancel' }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/with}}
|