2017-12-14 05:51:45 +01:00
|
|
|
{{#with profile_field}}
|
|
|
|
<tr class="profile-field-row" data-profile-field-id="{{id}}">
|
|
|
|
<td>
|
|
|
|
<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}}">
|
|
|
|
<i class="icon-vector-trash"></i>
|
|
|
|
</button>
|
|
|
|
<button class="button rounded small btn-warning open-edit-form" title="{{t 'Edit' }}" data-profile-field-id="{{id}}">
|
|
|
|
<i class="icon-vector-pencil"></i>
|
|
|
|
</button>
|
2018-04-08 18:13:37 +02:00
|
|
|
<button class="button rounded small btn-warning move-field-up" {{#if ../first}}disabled="disabled"{{/if}} title="{{t 'Up' }}" data-profile-field-id="{{id}}">
|
|
|
|
<i class="icon-vector-chevron-up"></i>
|
|
|
|
</button>
|
|
|
|
<button class="button rounded small btn-warning move-field-down" {{#if ../last}}disabled="disabled"{{/if}} title="{{t 'Down' }}" data-profile-field-id="{{id}}">
|
|
|
|
<i class="icon-vector-chevron-down"></i>
|
|
|
|
</button>
|
2017-12-14 05:51:45 +01:00
|
|
|
</td>
|
|
|
|
{{/if}}
|
|
|
|
</tr>
|
|
|
|
<tr class="profile-field-form display-none" data-profile-field-id="{{id}}">
|
|
|
|
<td colspan="3">
|
|
|
|
<form class="form-horizontal name-setting">
|
|
|
|
<div class="input-group name_change_container">
|
|
|
|
<label for="name">{{t "Name" }}</label>
|
|
|
|
<input type="text" name="name" value="{{ name }}" />
|
|
|
|
</div>
|
2018-03-31 09:23:57 +02:00
|
|
|
<div class="input-group hint_change_container">
|
|
|
|
<label for="hint">{{t "Hint" }}</label>
|
|
|
|
<input type="text" name="hint" value="{{ hint }}" />
|
|
|
|
</div>
|
2018-04-12 11:17:52 +02:00
|
|
|
{{#if is_choice_field }}
|
|
|
|
<div class="input-group">
|
|
|
|
<label for="profile_field_choices_edit">{{t "Field choices" }}</label>
|
|
|
|
<div class="profile-field-choices" name="profile_field_choices_edit">
|
|
|
|
<div class='choices-header'>
|
|
|
|
<div class='choice-field'>Text</div>
|
|
|
|
<div class='choice-field'>Order</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
{{#each choices}}
|
|
|
|
{{partial "profile-field-choice" }}
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
</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}}
|