zulip/static/templates/settings
Sahil Batra eed0a14ab0 settings: Use save-discard widget in realm-level defaults section.
This commit adds save-discard widget in the realm-level defaults
section. We use most of the functions used in settings_org.js
by passing for_realm_default_settings and add conditionals
according to it.

Some of the major changes wrt to the organzation settings code
are -

- We use element name attribute here to get the setting name from
element instead of id. We can add id for the elements here but
there is a problem doing so for the emojiset setting as for the
radio buttons we use four different input elements and all being
for the same setting.

- Added separate cases in discard_property_element_changes and
get_input_element_value to handle the radio buttons.

- We do not need get_complete_data_for_subsection here because
all settings are controlled by single field in DB and single
element in UI and thus we can simply get changed setting values
from populate_data_for_request.

- Added org-subsection-parent to the subsection container and
prop-element to the input and select elements so that we can
use the existing code.

- Modified get_subsection_property_elements to just return the
input element which is selected for emoji-settings subsection and
not all the input elements because we only need the selected value
of emojiset. We need other elements also when discarding the changes
but we handle it separately.
2021-10-07 10:16:27 -07:00
..
account_settings.hbs settings: Pass user settings using settings_object variable. 2021-09-13 08:32:31 -07:00
admin_auth_methods_list.hbs
admin_bot_form.hbs settings: Use edit_fields_modal framework for admin bot form. 2021-06-24 16:55:23 -07:00
admin_default_streams_list.hbs template: Move `admin_default_stream_list` template to `settings` folder. 2021-04-26 09:37:01 -07:00
admin_emoji_list.hbs settings_emoji: Rename can_admin_emoji to can_delete_emoji. 2021-07-14 14:57:09 -07:00
admin_export_list.hbs template: Move `admin_export_list` template to `settings` folder. 2021-04-26 09:37:08 -07:00
admin_human_form.hbs settings_users: Rename user-name-form to edit-user-form. 2021-06-28 22:11:24 -07:00
admin_invites_list.hbs settings: Reorder edit and delete buttons. 2021-05-13 07:52:10 -07:00
admin_linkifier_edit_form.hbs settings: Use edit_fields_modal framework for linkifier-edit modal. 2021-06-24 16:55:23 -07:00
admin_linkifier_list.hbs linkifiers: Add frontend support to edit linkifier. 2021-05-09 20:12:25 -07:00
admin_playground_list.hbs puppeteer: Add settings test for realm-playgrounds. 2021-05-04 12:19:04 -07:00
admin_profile_field_list.hbs settings: Remove unnecessary code. 2021-06-28 22:14:49 -07:00
admin_realm_domains_list.hbs
admin_settings_modals.hbs settings_users: Refactor user_deactivation modal to confirm_dialog module. 2021-06-08 17:57:27 -07:00
admin_tab.hbs settings: Add UI for realm-level defaults of display settings. 2021-09-15 09:56:32 -07:00
admin_user_group_list.hbs template: Move `admin_user_group_list` template to `settings` folder. 2021-04-26 09:37:30 -07:00
admin_user_list.hbs settings: Reorder edit and delete buttons. 2021-05-13 07:52:10 -07:00
alert_word_settings.hbs alert_word_settings: Fix table heading. 2021-05-13 07:52:10 -07:00
alert_word_settings_item.hbs settings: Use HTML table for "Alert Words" for better icon alignment. 2021-03-05 14:38:56 -08:00
api_key_modal.hbs passwords: Set title/aria-label attributes dynamically. 2021-04-23 15:01:37 -07:00
attachments_settings.hbs settings css: Make HTML table headers sticky. 2021-04-30 08:19:47 -07:00
auth_methods_settings_admin.hbs
bot_avatar_row.hbs templates: Move bot_avatar_row to settings/. 2021-06-02 20:36:21 -07:00
bot_list_admin.hbs settings css: Make HTML table headers sticky. 2021-04-30 08:19:47 -07:00
bot_settings.hbs templates: Remove context argument from {{#tr}} block helper. 2021-04-13 18:59:46 -07:00
custom_user_profile_field.hbs settings: Remove user-name-section class from some elements. 2021-06-28 22:11:24 -07:00
data_exports_admin.hbs settings css: Make HTML table headers sticky. 2021-04-30 08:19:47 -07:00
deactivated_users_admin.hbs settings css: Make HTML table headers sticky. 2021-04-30 08:19:47 -07:00
default_streams_list_admin.hbs lint: Fix badly quoted strings tagged for translation. 2021-05-09 20:16:28 -07:00
dev_env_email_access.hbs
display_settings.hbs settings: Use save-discard widget in realm-level defaults section. 2021-10-07 10:16:27 -07:00
dropdown_list.hbs
dropdown_list_widget.hbs dropdown_list_widget: Add support for Multiselect dropdown list widget (MDLW). 2021-07-29 10:09:03 -07:00
dropdown_options_widget.hbs
edit_bot.hbs templates: Move edit_bot to settings/. 2021-06-02 20:36:21 -07:00
edit_embedded_bot_service.hbs
edit_outgoing_webhook_service.hbs
emoji_settings_admin.hbs settings css: Make HTML table headers sticky. 2021-04-30 08:19:47 -07:00
emoji_settings_tip.hbs settings: Add full members and moderators options in custom emoji setting. 2021-07-27 16:41:23 -07:00
image_upload_widget.hbs upload_widget: Use img tag for tail-spin.svg instead of object tag. 2021-07-18 11:44:17 -07:00
invites_list_admin.hbs settings: Use `user-plus` icon instead `plus-circle` icon for invites. 2021-06-02 20:40:54 -07:00
linkifier_settings_admin.hbs linkifiers: Add frontend support to edit linkifier. 2021-05-09 20:12:25 -07:00
muted_topics_settings.hbs settings css: Make HTML table headers sticky. 2021-04-30 08:19:47 -07:00
muted_users_settings.hbs muted_user_settings: Add table-sticky-headers class to table header. 2021-05-18 17:36:13 -07:00
notification_settings.hbs settings: Use save-discard widget in realm-level defaults section. 2021-10-07 10:16:27 -07:00
notification_settings_checkboxes.hbs settings: Use save-discard widget in realm-level defaults section. 2021-10-07 10:16:27 -07:00
organization_permissions_admin.hbs streams: Split setting for stream creation policy. 2021-10-01 10:26:42 -07:00
organization_profile_admin.hbs templates: Fix incorrect class name used for tooltips. 2021-06-29 17:37:52 -07:00
organization_settings_admin.hbs settings: Migrate twenty_four_hour_time setting to RealmUserDefault. 2021-09-23 10:44:42 -07:00
organization_settings_tip.hbs
organization_user_settings_defaults.hbs settings: Use save-discard widget in realm-level defaults section. 2021-10-07 10:16:27 -07:00
playground_settings_admin.hbs playgrounds: Rename `name` field to `playground_name`. 2021-05-11 20:47:41 -07:00
profile_field_choice.hbs profile_field_choice: Improve label for new option. 2021-04-07 17:38:38 -07:00
profile_field_settings_admin.hbs
profile_settings.hbs settings: Pass user settings using settings_object variable. 2021-09-13 08:32:31 -07:00
realm_domains_modal.hbs
settings_checkbox.hbs settings: Refactor frontend code for notification settings. 2021-08-20 07:50:51 -07:00
settings_save_discard_widget.hbs settings: Add option to show only indicator in save-discard widget. 2021-10-07 10:12:10 -07:00
stream_specific_notification_row.hbs
upgrade_tip_widget.hbs
upload_space_stats.hbs templates: Remove context argument from {{#tr}} block helper. 2021-04-13 18:59:46 -07:00
uploaded_files_list.hbs templates: Move uploaded_files_list to settings/. 2021-06-02 20:36:21 -07:00
user_display_settings.hbs settings: Add condition for time and default language settings UI. 2021-09-13 08:32:31 -07:00
user_groups_admin.hbs settings: Add moderators and full members options in user-group setting. 2021-07-14 14:38:44 -07:00
user_list_admin.hbs settings css: Make HTML table headers sticky. 2021-04-30 08:19:47 -07:00
user_notification_settings.hbs templates: Add condition for showing stream notification settings. 2021-09-13 08:32:31 -07:00