mirror of https://github.com/zulip/zulip.git
26 lines
1.1 KiB
Handlebars
26 lines
1.1 KiB
Handlebars
<div class="user-name-section custom_user_field" name="{{ field.name }}" data-field-id="{{ field.id }}">
|
|
<label for="{{ field.name }}" class="title">{{ field.name }}</label>
|
|
{{#if is_long_text_field}}
|
|
<textarea maxlength="500" class="custom_user_field_value">{{ field_value }}</textarea>
|
|
{{else if is_choice_field}}
|
|
<select class="custom_user_field_value">
|
|
{{#unless field_value}}
|
|
<option></option>
|
|
{{/unless}}
|
|
{{#each field_choices}}
|
|
<option value="{{ this.value }}" {{#if this.selected}}selected{{/if}}>{{ this.text }}</option>
|
|
{{/each}}
|
|
</select>
|
|
{{else if is_user_field }}
|
|
<div class="pill-container">
|
|
<div class="input" contenteditable="true"></div>
|
|
</div>
|
|
{{else if is_date_field }}
|
|
<input class="custom_user_field_value datepicker" data-field-id="{{ field.id }}" type="text"
|
|
value="{{ field_value }}" />
|
|
{{else}}
|
|
<input class="custom_user_field_value" type="{{ field_type }}" value="{{ field_value }}" maxlength="50" />
|
|
{{/if}}
|
|
<div class="field_hint">{{ field.hint }}</div>
|
|
</div>
|