2021-06-28 15:45:47 +02:00
|
|
|
<div class="custom_user_field" name="{{ field.name }}" data-field-id="{{ field.id }}">
|
2024-03-28 06:20:36 +01:00
|
|
|
<span class="custom-user-field-label-wrapper {{#if field.required}}required-field-wrapper{{/if}}">
|
2024-03-20 15:33:26 +01:00
|
|
|
<label class="settings-field-label inline-block" for="{{ field.name }}" class="title">{{ field.name }}</label>
|
2024-03-19 14:22:03 +01:00
|
|
|
<span class="required-symbol {{#unless is_empty_required_field}}hidden{{/unless}}"> *</span>
|
|
|
|
</span>
|
2019-07-10 22:18:45 +02:00
|
|
|
<div class="alert-notification custom-field-status"></div>
|
2024-03-27 22:03:29 +01:00
|
|
|
<div class="settings-profile-user-field-hint">{{ field.hint }}</div>
|
2024-08-15 16:38:27 +02:00
|
|
|
<div class="settings-profile-user-field {{#if is_empty_required_field}}empty-required-field{{/if}} {{#unless editable_by_user}}not-editable-by-user-input-wrapper{{/unless}}">
|
2019-07-10 22:18:45 +02:00
|
|
|
{{#if is_long_text_field}}
|
2024-08-15 16:38:27 +02:00
|
|
|
<textarea maxlength="500" class="custom_user_field_value settings_textarea" name="{{ field.id }}" {{#unless editable_by_user}}disabled{{/unless}}>{{ field_value.value }}</textarea>
|
2021-03-24 11:41:29 +01:00
|
|
|
{{else if is_select_field}}
|
2024-08-15 16:38:27 +02:00
|
|
|
<select class="custom_user_field_value {{#if for_manage_user_modal}}modal_select{{else}}settings_select{{/if}} bootstrap-focus-style" name="{{ field.id }}" {{#unless editable_by_user}}disabled{{/unless}}>
|
2019-07-10 22:18:45 +02:00
|
|
|
<option value=""></option>
|
|
|
|
{{#each field_choices}}
|
2021-12-04 15:39:38 +01:00
|
|
|
<option value="{{ this.value }}" {{#if this.selected}}selected{{/if}}>{{ this.text }}</option>
|
2019-07-10 22:18:45 +02:00
|
|
|
{{/each}}
|
|
|
|
</select>
|
|
|
|
{{else if is_user_field }}
|
2024-08-15 16:38:27 +02:00
|
|
|
<div class="pill-container person_picker {{#unless editable_by_user}}not-editable-by-user disabled{{/unless}}" name="{{ field.id }}">
|
|
|
|
<div class="input" {{#if editable_by_user}}contenteditable="true"{{/if}}></div>
|
2019-07-10 22:18:45 +02:00
|
|
|
</div>
|
|
|
|
{{else if is_date_field }}
|
2024-03-08 06:51:36 +01:00
|
|
|
<input class="custom_user_field_value datepicker {{#if for_manage_user_modal}}modal_text_input{{else}}settings_text_input{{/if}}" name="{{ field.id }}" data-field-id="{{ field.id }}" type="text"
|
2024-08-15 16:38:27 +02:00
|
|
|
value="{{ field_value.value }}" {{#unless editable_by_user}}disabled{{/unless}}/>
|
|
|
|
{{#if editable_by_user}}<span class="remove_date"><i class="fa fa-close"></i></span>{{/if}}
|
2022-04-02 23:34:55 +02:00
|
|
|
{{else if is_url_field }}
|
2024-08-15 16:38:27 +02:00
|
|
|
<input class="custom_user_field_value {{#if for_manage_user_modal}}modal_url_input{{else}}settings_url_input{{/if}}" name="{{ field.id }}" type="{{ field_type }}" value="{{ field_value.value }}" maxlength="2048" {{#unless editable_by_user}}disabled{{/unless}}/>
|
2022-10-03 20:05:09 +02:00
|
|
|
{{else if is_pronouns_field}}
|
2024-08-15 16:38:27 +02:00
|
|
|
<input class="custom_user_field_value pronouns_type_field {{#if for_manage_user_modal}}modal_text_input{{else}}settings_text_input{{/if}}" name="{{ field.id }}" type="{{ field_type }}" value="{{ field_value.value }}" maxlength="50" {{#unless editable_by_user}}disabled{{/unless}}/>
|
2019-07-10 22:18:45 +02:00
|
|
|
{{else}}
|
2024-08-15 16:38:27 +02:00
|
|
|
<input class="custom_user_field_value {{#if for_manage_user_modal}}modal_text_input{{else}}settings_text_input{{/if}}" name="{{ field.id }}" type="{{ field_type }}" value="{{ field_value.value }}" maxlength="50" {{#unless editable_by_user}}disabled{{/unless}}/>
|
2019-07-10 22:18:45 +02:00
|
|
|
{{/if}}
|
2018-05-09 13:58:29 +02:00
|
|
|
</div>
|
2018-02-26 20:08:23 +01:00
|
|
|
</div>
|