zulip/static/templates
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
..
compose_banner compose banner: Rename banner shown after message is sent. 2022-12-11 17:51:35 -08:00
confirm_dialog css: Extract common bootstrap CSS rules for textarea in settings. 2022-12-13 12:03:06 -08:00
navbar_alerts
settings settings_org: Refactor code for dropdown list widget settings. 2023-01-04 17:51:42 -08:00
stream_settings css: Extract common bootstrap CSS rules for textarea in settings. 2022-12-13 12:03:06 -08:00
user_group_settings css: Extract common bootstrap CSS rules for textarea in settings. 2022-12-13 12:03:06 -08:00
widgets polls: Replace `choice` with `option` in the poll editing UI. 2022-12-13 16:57:44 -08:00
about_zulip.hbs
actions_popover_content.hbs popovers: Drop text for historical messages from three-dot menu. 2022-10-26 13:20:37 -07:00
actions_popover_template.hbs actions_popover: Only wrap content to next line on small width. 2022-10-06 16:58:33 -07:00
all_messages_sidebar_actions.hbs
announce_stream_docs.hbs stream_settings: Modify the message of the "Announce stream" hint tooltip. 2022-06-28 13:19:54 -07:00
blueslip_stacktrace.hbs templates: Always indent "each" blocks. 2021-12-06 14:58:29 -08:00
bookend.hbs recent-topics: Update hash for view to be "#recent". 2022-10-25 11:03:44 -07:00
buddy_list_tooltip_content.hbs
change_email_modal.hbs account-settings: Refactor change email button and modal class names. 2022-12-30 17:54:00 -08:00
compose.hbs compose: Migrate compose_private_stream_alert to use compose_banner. 2022-12-06 15:43:34 -08:00
compose_control_buttons.hbs compose: Add keyboard shortcut tooltip to Drafts link.. 2022-06-28 13:25:54 -07:00
compose_control_buttons_in_popover.hbs compose: Change icon of formatting popover to a question. 2022-02-18 11:16:19 -08:00
compose_control_buttons_popover.hbs
compose_select_enter_behaviour_popover.hbs compose: Fix Enter to send switch internationalization. 2022-01-07 14:38:10 -08:00
copy_code_button.hbs
copy_invite_link.hbs
copy_message_button.hbs
copy_to_clipboard_svg.hbs
default_language_modal.hbs default_language_modal: Add more space around languages displayed. 2022-07-12 17:23:15 -07:00
dialog_change_password.hbs
dialog_widget.hbs modals: Don't close the modals on selecting something inside the modal. 2022-11-14 09:08:39 -08:00
draft.hbs
draft_table_body.hbs drafts: Create a section to show drafts from the current conversation. 2022-08-25 23:12:31 -07:00
drafts_sidebar_action.hbs
edit_content_button.hbs hotkey: Use "m" hotkey for moving messages. 2022-10-19 12:02:22 -07:00
edited_notice.hbs templates: Simplify nested Handlebars conditionals using {{else if}}. 2022-06-30 11:24:44 -07:00
embedded_bot_config_item.hbs
emoji_popover.hbs
emoji_popover_content.hbs templates: Always indent "each" blocks. 2021-12-06 14:58:29 -08:00
emoji_popover_emoji.hbs templates: Simplify nested Handlebars conditionals using {{else if}}. 2022-06-30 11:24:44 -07:00
emoji_popover_search_results.hbs templates: Always indent "each" blocks. 2021-12-06 14:58:29 -08:00
emoji_showcase.hbs
empty_feed_notice.hbs narrow_banner: Move empty narrow messages to handlebar templates. 2021-12-07 13:38:48 -08:00
favicon.svg.hbs
feedback_container.hbs
filter_topics.hbs topic_list: Move topic filter out of topics list `ul`. 2022-11-04 13:40:46 -07:00
gear_menu.hbs Rename "operators" to "filters" in "Search operators" reference. 2022-12-09 13:52:13 -08:00
giphy_picker.hbs images: Move Giphy images into proper subdirectories. 2022-08-30 22:40:59 -07:00
giphy_picker_mobile.hbs
help_link_widget.hbs modals: Refactor help_link_widget for confirmation modal. 2022-03-25 10:43:37 -07:00
hotspot_icon.hbs
hotspot_overlay.hbs
input_pill.hbs input_pill: Remove random IDs. 2022-07-11 11:44:47 -07:00
invitation_failed_error.hbs help: Rewrite pages on inviting users and related permissions. 2022-03-28 17:00:10 -07:00
invite_subscription.hbs invite_users: Add globe icon in web public streams. 2022-12-14 20:58:29 -08:00
invite_user.hbs invite: Add bootstrap CSS rules to emails textarea in invite overlay. 2022-12-13 12:03:06 -08:00
keyboard_shortcuts.hbs popovers: Rename "profile summary" to "user card". 2022-11-14 12:15:54 -08:00
left_sidebar.hbs left_sidebar: Add login link to left sidebar for logged-out users. 2022-11-29 16:35:36 -08:00
left_sidebar_stream_setting_popover.hbs popover_menus: Keep element click handlers self-contained. 2022-12-06 09:58:40 -08:00
lightbox_overlay.hbs lightbox: Remove Pan/Zoom enable button. 2022-03-03 13:48:32 -08:00
loader.hbs
login_to_access.hbs modals: Don't close the modals on selecting something inside the modal. 2022-11-14 09:08:39 -08:00
login_to_view_image_button.hbs message_list_view: For spectators, show login button for failed images. 2022-03-24 10:50:00 -07:00
mark_as_read_turned_off_banner.hbs mark as read: Fix button styling for medium-sized screens. 2022-07-12 16:28:34 -07:00
markdown_help.hbs templates: Always indent "each" blocks. 2021-12-06 14:58:29 -08:00
markdown_time_tooltip.hbs
markdown_timestamp.hbs
me_message.hbs popovers: Rename "profile summary" to "user card". 2022-11-14 12:15:54 -08:00
message_avatar.hbs
message_body.hbs popovers: Rename "profile summary" to "user card". 2022-11-14 12:15:54 -08:00
message_controls.hbs message controls: Use login_to_access modal for reactions/stars. 2022-04-29 16:35:49 -07:00
message_edit_form.hbs message_edit: Allow only content edit in message_edit_form. 2022-10-12 10:50:05 -07:00
message_edit_history.hbs message_edit: Fix internationalization of edited notices. 2022-02-01 14:09:19 -08:00
message_feed_bottom_whitespace.hbs bottom_whitespace: Extract to a dedicated handlebars template. 2022-08-03 16:14:42 -07:00
message_feed_errors.hbs narrow_banner: Simplify empty narrow messages for spectators. 2022-04-29 16:35:49 -07:00
message_group.hbs message_list_view: Cleanup unused bookend code. 2022-01-31 16:50:54 -08:00
message_hidden_dialog.hbs
message_history_modal.hbs
message_inline_image_tooltip.hbs messages: Show tippy tooltip for inline images. 2022-03-21 15:36:10 -07:00
message_reaction.hbs reactions: Implement display_emoji_reaction_users setting. 2022-10-27 12:41:51 -07:00
message_reactions.hbs message controls: Use login_to_access modal for reactions/stars. 2022-04-29 16:35:49 -07:00
message_view_header.hbs search: Fix missing ARIA role on span used as button. 2022-12-09 13:29:59 -08:00
mobile_message_buttons_popover_content.hbs
more_pms.hbs pm_section: Create collapsible private messages section. 2022-10-26 13:47:08 -07:00
more_topics.hbs unread: Indicate which topics have unread @-mentions. 2022-08-29 12:49:08 -07:00
more_topics_spinner.hbs images: Move error/loading images into subdirectories. 2022-08-30 22:40:59 -07:00
move_topic_to_stream.hbs stream_popover: Disable topic or stream input in move message modal. 2022-10-12 10:50:05 -07:00
muted_topic_ui_row.hbs settings: Clean up muted_topics/users rendering logic. 2022-02-25 17:33:11 -08:00
muted_user_ui_row.hbs settings: Clean up muted_topics/users rendering logic. 2022-02-25 17:33:11 -08:00
narrow_to_compose_recipients_tooltip.hbs compose: Make compose box tooltips consitent. 2022-06-28 13:24:13 -07:00
navbar.hbs css: Remove bootstrap form-search CSS. 2022-11-22 13:55:21 -08:00
navbar_icon_and_title.hbs icons: Replace fa-globe icon with a custom globe icon. 2022-03-01 11:36:38 -08:00
no_arrow_popover.hbs
non_editable_user_group.hbs
playground_links_popover_content.hbs templates: Always indent "each" blocks. 2021-12-06 14:58:29 -08:00
pm_list_item.hbs pm_section: Create collapsible private messages section. 2022-10-26 13:47:08 -07:00
presence_row.hbs right_sidebar: Fix full name overflowing its container. 2022-10-18 22:13:04 -07:00
presence_rows.hbs presence: Rename hbs templates to not have the word "user". 2022-07-13 14:34:44 -07:00
read_receipts.hbs read_receipts: Add support for displaying read receipts. 2022-08-12 13:16:35 -07:00
read_receipts_modal.hbs modals: Don't close the modals on selecting something inside the modal. 2022-11-14 09:08:39 -08:00
recent_topic_row.hbs Revert "recent: Remove participant avatars from PM rows." 2022-11-29 11:29:12 -08:00
recent_topics_filters.hbs recent_topics: Add Private message to recent_topics. 2022-10-17 15:02:01 -07:00
recent_topics_table.hbs recent topics: Disable browser autocomplete filter widget. 2022-03-09 13:56:14 -08:00
recipient_row.hbs message_edit: Make topic editing independent of allow_message_editing. 2022-12-13 23:11:50 -08:00
remind_me_popover_content.hbs js: Add tabindex attribute for anchor tag to allow focus. 2022-02-14 15:23:46 -08:00
right_sidebar.hbs navbar: Add login and signup buttons for spectators. 2022-10-21 10:10:40 -07:00
search_list_item.hbs search_suggestions: Fix bug where space in stream names did not show. 2022-08-18 11:22:08 -07:00
search_operators.hbs search reference: Reorder operators. 2022-12-09 17:37:37 -08:00
set_status_overlay.hbs templates: Simplify nested Handlebars conditionals using {{else if}}. 2022-06-30 11:24:44 -07:00
settings_overlay.hbs settings: Hide deactivated users panel by default for members. 2022-11-23 11:46:16 -08:00
settings_tab.hbs
single_message.hbs css: Apply negative spread radius to message box-shadows. 2022-12-14 17:28:37 -08:00
starred_messages_sidebar_actions.hbs
status_emoji.hbs status_emoji: Extract status emoji template. 2022-02-08 16:52:49 -08:00
status_emoji_selector.hbs templates: Simplify nested Handlebars conditionals using {{else if}}. 2022-06-30 11:24:44 -07:00
stream_privacy.hbs icons: Replace fa-globe icon with a custom globe icon. 2022-03-01 11:36:38 -08:00
stream_sidebar_actions.hbs icons: Change mute icon from bell to speaker. 2022-09-09 17:32:19 -07:00
stream_sidebar_row.hbs unread: Indicate which streams have unread @-mentions. 2022-08-29 12:49:08 -07:00
stream_topic_widget.hbs
streams_subheader.hbs stream_list: Sort muted to end of sections and add labels. 2022-08-06 21:59:23 -07:00
subscribe_to_more_streams.hbs stream_list: Fix another “subscribed” typo. 2022-09-15 16:55:15 -07:00
topic_edit_form.hbs message-edit: Add maxlength attribute for editing topic names. 2022-07-15 15:16:55 -07:00
topic_list_item.hbs unread: Indicate which topics have unread @-mentions. 2022-08-29 12:49:08 -07:00
topic_muted.hbs
topic_sidebar_actions.hbs icons: Change mute icon from bell to speaker. 2022-09-09 17:32:19 -07:00
typeahead_list_item.hbs templates: Simplify nested Handlebars conditionals using {{else if}}. 2022-06-30 11:24:44 -07:00
typing_notification.hbs
typing_notifications.hbs templates: Always indent "each" blocks. 2021-12-06 14:58:29 -08:00
user_group_info_popover.hbs
user_group_info_popover_content.hbs templates: Always indent "each" blocks. 2021-12-06 14:58:29 -08:00
user_group_list_item.hbs
user_info_popover_content.hbs popovers: Rename "full profile" to "profile". 2022-11-14 12:16:22 -08:00
user_info_popover_manage_menu.hbs popovers: Redesign user info popover. 2022-10-07 15:52:23 -07:00
user_info_popover_title.hbs
user_profile_modal.hbs modals: Don't close the modals on selecting something inside the modal. 2022-11-14 09:08:39 -08:00
user_stream_list_item.hbs
user_with_status_icon.hbs recent_topics: Show user status emoji in PMs messages. 2022-11-10 12:32:08 -08:00
view_code_in_playground.hbs view_code_in_playground: Fix tooltip being partially hidden. 2022-09-19 14:11:53 -07:00