mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
We use url type inputs in the add and edit custom field modals and also to show the url type custom fields in "Profile" panel and "Manage user" modal. This commit re-adds the bootstrap CSS rules to these specific input elements using modal_url_input and settings_url_input class and thus removes the CSS for url type inputs from bootstrap.css. We might replace the new class added here with a common class for all type of inputs in further commits.
32 lines
2.1 KiB
Handlebars
32 lines
2.1 KiB
Handlebars
<div class="custom_user_field" name="{{ field.name }}" data-field-id="{{ field.id }}">
|
|
<label class="inline-block" for="{{ field.name }}" class="title">{{ field.name }}</label>
|
|
<div class="alert-notification custom-field-status"></div>
|
|
<div class="field_hint">{{ field.hint }}</div>
|
|
<div class="field">
|
|
{{#if is_long_text_field}}
|
|
<textarea maxlength="500" class="custom_user_field_value settings_textarea">{{ field_value.value }}</textarea>
|
|
{{else if is_select_field}}
|
|
<select class="custom_user_field_value {{#if for_manage_user_modal}}modal_select{{else}}settings_select{{/if}} bootstrap-focus-style">
|
|
<option value=""></option>
|
|
{{#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 person_picker">
|
|
<div class="input" contenteditable="true"></div>
|
|
</div>
|
|
{{else if is_date_field }}
|
|
<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"
|
|
value="{{ field_value.value }}" />
|
|
<span class="remove_date"><i class="fa fa-close"></i></span>
|
|
{{else if is_url_field }}
|
|
<input class="custom_user_field_value {{#if for_manage_user_modal}}modal_text_input modal_url_input{{else}}settings_text_input settings_url_input{{/if}}" type="{{ field_type }}" value="{{ field_value.value }}" maxlength="2048" />
|
|
{{else if is_pronouns_field}}
|
|
<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" />
|
|
{{else}}
|
|
<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" />
|
|
{{/if}}
|
|
</div>
|
|
</div>
|