Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

3.5 KB
Raw Blame
<form class="admin-profile-field-form modal-form" id="add-new-custom-profile-field-form">
    <div class="new-profile-field-form wrapper">
        <div class="input-group">
            <label for="profile_field_type" class="modal-field-label">{{t "Type" }}</label>
            <select id="profile_field_type" name="field_type" class="modal_select bootstrap-focus-style">
                {{#each custom_profile_field_types}}
                    <option value='{{this.id}}'>{{this.name}}</option>
                {{/each}}
            </select>
        </div>
        <div class="input-group" id="profile_field_external_accounts">
            {{> ../dropdown_widget_with_label widget_name="external_accounts_type" label=(t "External accounts")}}
        </div>
        <div class="input-group">
            <label for="profile_field_name" class="modal-field-label">{{t "Label" }}</label>
            <input type="text" id="profile_field_name" class="modal_text_input" name="name" autocomplete="off" maxlength="40" />
        </div>
        <div class="input-group">
            <label for="profile_field_hint" class="modal-field-label">{{t "Hint (up to 80 characters)" }}</label>
            <input type="text" id="profile_field_hint" class="modal_text_input" name="hint" autocomplete="off" maxlength="80" />
            <div class="alert" id="admin-profile-field-hint-status"></div>
        </div>
        <div class="input-group profile-field-choices-wrapper" id="profile_field_choices_row">
            <label for="profile_field_choices" class="modal-field-label">{{t "Field choices" }}</label>
            <table class="profile_field_choices_table">
                <tbody id="profile_field_choices" class="profile-field-choices"></tbody>
            </table>
            {{> ../components/action_button
              label=(t "Alphabetize choices")
              custom_classes="alphabetize-choices-button"
              intent="neutral"
              variant="subtle"
              }}
        </div>
        <div class="input-group" id="custom_external_account_url_pattern">
            <label for="custom_field_url_pattern" class="modal-field-label">{{t "URL pattern" }}</label>
            <input type="url" id="custom_field_url_pattern" class="modal_url_input" name="url_pattern" autocomplete="off" maxlength="1024" placeholder="https://example.com/path/%(username)s"/>
        </div>
        <div class="input-group">
            <label class="checkbox profile_field_display_label" for="profile_field_display_in_profile_summary">
                <input type="checkbox" id="profile_field_display_in_profile_summary" name="display_in_profile_summary"/>
                <span class="rendered-checkbox"></span>
                {{t 'Display on user card' }}
            </label>
        </div>
        <div class="input-group">
            <label class="checkbox" for="profile-field-required">
                <input type="checkbox" id="profile-field-required" name="required"/>
                <span class="rendered-checkbox"></span>
                {{t 'Required field' }}
            </label>
        </div>
        {{> settings_checkbox
          prefix="profile_field_"
          setting_name="editable_by_user"
          is_checked=true
          label=(t "Users can edit this field for their own account")
          }}
        {{> settings_checkbox
          prefix="profile_field_"
          setting_name="use_for_user_matching"
          is_checked=false
          label=(t "Use in @-mention suggestions")
          }}
    </div>
</form>