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-03-19 14:22:03 +01:00
|
|
|
<div class="settings-profile-user-field {{#if is_empty_required_field}}empty-required-field{{/if}}">
|
2019-07-10 22:18:45 +02:00
|
|
|
{{#if is_long_text_field}}
|
2022-11-25 12:12:51 +01:00
|
|
|
<textarea maxlength="500" class="custom_user_field_value settings_textarea">{{ field_value.value }}</textarea>
|
2021-03-24 11:41:29 +01:00
|
|
|
{{else if is_select_field}}
|
2023-03-28 13:30:30 +02:00
|
|
|
<select class="custom_user_field_value {{#if for_manage_user_modal}}modal_select{{else}}settings_select{{/if}} bootstrap-focus-style">
|
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 }}
|
|
|
|
<div class="pill-container person_picker">
|
|
|
|
<div class="input" contenteditable="true"></div>
|
|
|
|
</div>
|
|
|
|
{{else if is_date_field }}
|
2023-03-28 13:25:49 +02:00
|
|
|
<input class="custom_user_field_value datepicker {{#if for_manage_user_modal}}modal_text_input{{else}}settings_text_input{{/if}}" data-field-id="{{ field.id }}" type="text"
|
2019-07-10 22:18:45 +02:00
|
|
|
value="{{ field_value.value }}" />
|
|
|
|
<span class="remove_date"><i class="fa fa-close"></i></span>
|
2022-04-02 23:34:55 +02:00
|
|
|
{{else if is_url_field }}
|
2023-06-19 11:57:45 +02:00
|
|
|
<input class="custom_user_field_value {{#if for_manage_user_modal}}modal_url_input{{else}}settings_url_input{{/if}}" type="{{ field_type }}" value="{{ field_value.value }}" maxlength="2048" />
|
2022-10-03 20:05:09 +02:00
|
|
|
{{else if is_pronouns_field}}
|
2023-03-28 13:25:49 +02:00
|
|
|
<input class="custom_user_field_value pronouns_type_field {{#if for_manage_user_modal}}modal_text_input{{else}}settings_text_input{{/if}}" type="{{ field_type }}" value="{{ field_value.value }}" maxlength="50" />
|
2019-07-10 22:18:45 +02:00
|
|
|
{{else}}
|
2023-03-28 13:25:49 +02:00
|
|
|
<input class="custom_user_field_value {{#if for_manage_user_modal}}modal_text_input{{else}}settings_text_input{{/if}}" type="{{ field_type }}" value="{{ field_value.value }}" maxlength="50" />
|
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>
|