zulip/static/templates/settings
Sahil Batra 677b26025a settings_org: Refactor code for dropdown list widget settings.
This commit refactors the code for dropdown list widget settings
such that we can reuse the added functions for further settings
that will use dropdown_list_widget.

This change will be helpful when we will add group-based settings
and change some of the existing role-based settings to be group-based.

We add a new function "get_widget_for_dropdown_list_settings" to
get the widget variable from setting name. The functions to get
and set the setting value use "get_widget_for_dropdown_list_settings"
function to get the widget and then gets or sets the setting value
accordingly.

We also add "data-setting-widget-type" and "data-setting-value-type"
attributes to the element like other settings.

The "data-setting-widget-type" attr is used by get_input_element_value
to use "get_dropdown_list_widget_setting_value" function for
dropdown-list-widget settings.

The "data-setting-value-type" attribute is used to parse the setting
value to correct types in "get_dropdown_list_widget_setting_value"
function.
2023-01-04 17:51:42 -08:00
..
account_settings.hbs settings-account: Move tooltip for email change disabled to button. 2022-12-30 17:54:00 -08:00
add_alert_word.hbs alert word: Convert inline form to modal. 2022-08-15 19:07:38 -07:00
add_new_bot_form.hbs settings_bots: Change text "profile picture" to "avatar". 2022-09-23 12:06:51 -07:00
add_new_custom_profile_field_form.hbs popovers: Rename "profile summary" to "user card". 2022-11-14 12:15:54 -08:00
add_user_group_modal.hbs user_groups: Convert inline form to modal. 2022-05-04 17:46:30 -07:00
admin_auth_methods_list.hbs settings_org: Use settings_checkbox in Authentication Methods UI. 2022-07-22 16:38:47 -07:00
admin_default_streams_list.hbs
admin_emoji_list.hbs
admin_export_list.hbs
admin_human_form.hbs edit user: Place deactivate button outside the `form` element in modal. 2022-09-15 12:13:35 -07:00
admin_invites_list.hbs
admin_linkifier_edit_form.hbs
admin_linkifier_list.hbs
admin_playground_list.hbs
admin_profile_field_list.hbs settings: Move display_in_profile_summary checkbox to center. 2022-09-21 11:06:54 -07:00
admin_realm_domains_list.hbs
admin_settings_modals.hbs realm_domains_modal: Migrate modal to dialog_widget. 2022-07-07 14:56:45 -07:00
admin_tab.hbs
admin_user_group_list.hbs
admin_user_list.hbs settings: Set min width of role column. 2022-10-13 10:05:20 -07:00
alert_word_settings.hbs settings: Improve success feedback for deleting alert words 2022-11-22 16:23:56 -08:00
alert_word_settings_item.hbs
api_key_modal.hbs modals: Don't close the modals on selecting something inside the modal. 2022-11-14 09:08:39 -08:00
attachments_settings.hbs
auth_methods_settings_admin.hbs settings: Rename "org-subsection-parent" class to "settings-subsection-parent". 2022-11-22 17:14:35 -08:00
bot_avatar_row.hbs settings_bots: Open bots streams tab from personal settings > bots. 2022-09-16 17:51:34 -07:00
bot_list_admin.hbs settings_bots: Make it possible to add new bots from org settings. 2022-09-23 12:06:51 -07:00
bot_settings.hbs settings_bots: Move "Add a new bot" tab inside a modal. 2022-09-23 12:06:51 -07:00
custom_user_profile_field.hbs css: Extract common bootstrap CSS rules for textarea in settings. 2022-12-13 12:03:06 -08:00
data_exports_admin.hbs
deactivated_users_admin.hbs
default_streams_list_admin.hbs
dev_env_email_access.hbs
display_settings.hbs settings: Do not use bootstrap css in radio-type display settings. 2022-11-30 17:35:22 -08:00
dropdown_list.hbs
dropdown_list_widget.hbs settings_org: Refactor code for dropdown list widget settings. 2023-01-04 17:51:42 -08:00
dropdown_options_widget.hbs
edit_bot_form.hbs edit user: Place deactivate button outside the `form` element in modal. 2022-09-15 12:13:35 -07:00
edit_custom_profile_field_form.hbs popovers: Rename "profile summary" to "user card". 2022-11-14 12:15:54 -08:00
edit_embedded_bot_service.hbs
edit_outgoing_webhook_service.hbs settings: Make spacing consistent between outgoing webhook bot inputs. 2022-07-31 17:06:03 -07:00
emoji_settings_admin.hbs
emoji_settings_tip.hbs templates: Simplify nested Handlebars conditionals using {{else if}}. 2022-06-30 11:24:44 -07:00
image_upload_widget.hbs images: Move error/loading images into subdirectories. 2022-08-30 22:40:59 -07:00
invites_list_admin.hbs
language_selection_widget.hbs admin: Use language_selection_widget to set notification language. 2022-06-01 17:08:00 -07:00
linkifier_settings_admin.hbs minor: Remove usage of `control-group` and `control-label` class. 2022-08-09 10:36:27 -07:00
muted_topics_settings.hbs
muted_users_settings.hbs
notification_settings.hbs Fix typos caught by typos. 2023-01-03 11:09:50 -08:00
notification_settings_checkboxes.hbs
organization_permissions_admin.hbs settings: Organize message editing and message moving settings. 2022-12-13 23:11:50 -08:00
organization_profile_admin.hbs css: Extract common bootstrap CSS rules for textarea in settings. 2022-12-13 12:03:06 -08:00
organization_settings_admin.hbs settings_org: Refactor code for dropdown list widget settings. 2023-01-04 17:51:42 -08:00
organization_settings_tip.hbs
organization_user_settings_defaults.hbs settings: Rename "org-subsection-parent" class to "settings-subsection-parent". 2022-11-22 17:14:35 -08:00
playground_settings_admin.hbs minor: Remove usage of `control-group` and `control-label` class. 2022-08-09 10:36:27 -07:00
profile_field_choice.hbs custom_profile_fields: Convert new profile field form to a modal. 2022-08-05 17:26:56 -07:00
profile_field_settings_admin.hbs popovers: Rename "profile summary" to "user card". 2022-11-14 12:15:54 -08:00
profile_settings.hbs user_profile: Convert preview profile to sticky button. 2022-12-09 13:27:15 -08:00
realm_domains_modal.hbs realm_domains_modal: Migrate modal to dialog_widget. 2022-07-07 14:56:45 -07:00
settings_checkbox.hbs settings: Add option in settings_checkbox to show some text in parens. 2022-09-27 10:43:51 -07:00
settings_save_discard_widget.hbs settings: Remove unused CSS and corresponding organization-submission class. 2022-12-09 11:16:26 -08:00
stream_specific_notification_row.hbs settings: Fix reuse of .stream-row class name. 2022-11-09 15:30:03 -08:00
upgrade_tip_widget.hbs settings: Mention about sponsorship in upgrade banner. 2022-07-25 16:53:37 -07:00
upload_space_stats.hbs
uploaded_files_list.hbs
user_display_settings.hbs
user_groups_admin.hbs user_groups: Convert inline form to modal. 2022-05-04 17:46:30 -07:00
user_list_admin.hbs
user_notification_settings.hbs