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.

settings: Refactor labels in organization settings.

josephee66488fbfa0
diff --git a/web/templates/settings/api_key_modal.hbs b/web/templates/settings/api_key_modal.hbs
index 8ff45e97f0e..e738edde973 100644
--- a/web/templates/settings/api_key_modal.hbs
+++ b/web/templates/settings/api_key_modal.hbs
@@ -13,7 +13,7 @@
<div id="api_key_form">
<p>{{t "Please re-enter your password to confirm your identity." }}</p>
<div class="settings-password-div">
- <label for="password" class="modal-field-label">{{t "Your password" }}</label>
+ <label for="get_api_key_password" class="modal-field-label">{{t "Your password" }}</label>
<div class="password-input-row">
<input type="password" autocomplete="off" name="password" id="get_api_key_password" class=" modal_password_input" value="" />
<i class="fa fa-eye-slash password_visibility_toggle tippy-zulip-tooltip" role="button"></i>
diff --git a/web/templates/settings/edit_custom_profile_field_form.hbs b/web/templates/settings/edit_custom_profile_field_form.hbs
index 5a935e80345..ca0d45b26a8 100644
--- a/web/templates/settings/edit_custom_profile_field_form.hbs
+++ b/web/templates/settings/edit_custom_profile_field_form.hbs
@@ -1,11 +1,11 @@
{{#with profile_field_info}}
<form class="name-setting profile-field-form" id="edit-custom-profile-field-form-{{id}}" data-profile-field-id="{{id}}">
<div class="input-group">
- <label for="name" class="modal-field-label">{{t "Label" }}</label>
+ <label for="id-custom-profile-field-name" class="modal-field-label">{{t "Label" }}</label>
<input type="text" name="name" id="id-custom-profile-field-name" class="modal_text_input prop-element" value="{{ name }}" maxlength="40" data-setting-widget-type="string" />
</div>
<div class="input-group hint_change_container">
- <label for="hint" class="modal-field-label">{{t "Hint" }}</label>
+ <label for="id-custom-profile-field-hint" class="modal-field-label">{{t "Hint" }}</label>
<input type="text" name="hint" id="id-custom-profile-field-hint" class="modal_text_input prop-element" value="{{ hint }}" maxlength="80" data-setting-widget-type="string" />
</div>
{{#if is_select_field }}
diff --git a/web/templates/settings/organization_permissions_admin.hbs b/web/templates/settings/organization_permissions_admin.hbs
index 9943d130974..d519ae204a9 100644
--- a/web/templates/settings/organization_permissions_admin.hbs
+++ b/web/templates/settings/organization_permissions_admin.hbs
@@ -16,7 +16,7 @@
prefix="id_"
is_checked=realm_invite_required
label=admin_settings_label.realm_invite_required}}
- <label for="realm_invite_to_realm_policy" class="settings-field-label">{{t "Who can send email invitations to new users" }}
+ <label for="id_realm_invite_to_realm_policy" class="settings-field-label">{{t "Who can send email invitations to new users" }}
</label>
<select name="realm_invite_to_realm_policy" id="id_realm_invite_to_realm_policy" class="prop-element settings_select bootstrap-focus-style" data-setting-widget-type="number">
{{> dropdown_options_widget option_values=invite_to_realm_policy_values}}
@@ -28,7 +28,7 @@
label=(t 'Who can create reusable invitation links')}}
<div class="input-group">
- <label for="realm_org_join_restrictions" class="settings-field-label">{{t "Restrict email domains of new users" }}</label>
+ <label for="id_realm_org_join_restrictions" class="settings-field-label">{{t "Restrict email domains of new users" }}</label>
<select name="realm_org_join_restrictions" id="id_realm_org_join_restrictions" class="prop-element settings_select bootstrap-focus-style" data-setting-widget-type="string">
<option value="no_restriction">{{t "No restrictions" }}</option>
<option value="no_disposable_email">{{t "Don’t allow disposable email addresses" }}</option>
@@ -42,7 +42,7 @@
</div>
</div>
<div class="input-group time-limit-setting">
- <label for="realm_waiting_period_threshold" class="settings-field-label">
+ <label for="id_realm_waiting_period_threshold" class="settings-field-label">
{{t "Waiting period before new members turn into full members" }}
{{> ../help_link_widget link="/help/restrict-permissions-of-new-members" }}
</label>
@@ -90,13 +90,13 @@
label=(t 'Who can create private channels')}}
<div class="input-group">
- <label for="realm_invite_to_stream_policy" class="settings-field-label">{{t "Who can add users to channels" }}</label>
+ <label for="id_realm_invite_to_stream_policy" class="settings-field-label">{{t "Who can add users to channels" }}</label>
<select name="realm_invite_to_stream_policy" id="id_realm_invite_to_stream_policy" class="prop-element settings_select bootstrap-focus-style" data-setting-widget-type="number">
{{> dropdown_options_widget option_values=common_policy_values}}
</select>
</div>
<div class="input-group">
- <label for="realm_wildcard_mention_policy" class="settings-field-label">{{t "Who can notify a large number of users with a wildcard mention" }}
+ <label for="id_realm_wildcard_mention_policy" class="settings-field-label">{{t "Who can notify a large number of users with a wildcard mention" }}
{{> ../help_link_widget link="/help/restrict-wildcard-mentions" }}
</label>
<select name="realm_wildcard_mention_policy" id="id_realm_wildcard_mention_policy" class="prop-element settings_select bootstrap-focus-style" data-setting-widget-type="number">
@@ -162,7 +162,7 @@
label=admin_settings_label.realm_allow_edit_history}}
<div class="input-group time-limit-setting">
- <label for="realm_message_content_edit_limit_seconds" class="settings-field-label">{{t "Time limit for editing messages" }}</label>
+ <label for="id_realm_message_content_edit_limit_seconds" class="settings-field-label">{{t "Time limit for editing messages" }}</label>
<select name="realm_message_content_edit_limit_seconds" id="id_realm_message_content_edit_limit_seconds" class="prop-element settings_select bootstrap-focus-style" {{#unless realm_allow_message_editing}}disabled{{/unless}} data-setting-widget-type="time-limit">
{{#each msg_edit_limit_dropdown_values}}
<option value="{{value}}">{{text}}</option>
@@ -196,7 +196,7 @@
label=(t 'Who can move messages to another topic')}}
<div class="input-group time-limit-setting">
- <label for="realm_move_messages_within_stream_limit_seconds" class="settings-field-label">{{t "Time limit for editing topics" }} <i>({{t "does not apply to moderators and administrators" }})</i></label>
+ <label for="id_realm_move_messages_within_stream_limit_seconds" class="settings-field-label">{{t "Time limit for editing topics" }} <i>({{t "does not apply to moderators and administrators" }})</i></label>
<select name="realm_move_messages_within_stream_limit_seconds" id="id_realm_move_messages_within_stream_limit_seconds" class="prop-element settings_select" data-setting-widget-type="time-limit">
{{#each msg_move_limit_dropdown_values}}
<option value="{{value}}">{{text}}</option>
@@ -218,7 +218,7 @@
label=(t 'Who can move messages to another channel')}}
<div class="input-group time-limit-setting">
- <label for="realm_move_messages_between_streams_limit_seconds" class="settings-field-label">{{t "Time limit for moving messages between channels" }} <i>({{t "does not apply to moderators and administrators" }})</i></label>
+ <label for="id_realm_move_messages_between_streams_limit_seconds" class="settings-field-label">{{t "Time limit for moving messages between channels" }} <i>({{t "does not apply to moderators and administrators" }})</i></label>
<select name="realm_move_messages_between_streams_limit_seconds" id="id_realm_move_messages_between_streams_limit_seconds" class="prop-element bootstrap-focus-style settings_select" data-setting-widget-type="time-limit">
{{#each msg_move_limit_dropdown_values}}
<option value="{{value}}">{{text}}</option>
@@ -253,7 +253,7 @@
label=(t 'Who can delete their own messages')}}
<div class="input-group time-limit-setting">
- <label for="realm_message_content_delete_limit_seconds" class="settings-field-label">
+ <label for="id_realm_message_content_delete_limit_seconds" class="settings-field-label">
{{t "Time limit for deleting messages" }} <i>({{t "does not apply to users who can delete any message" }})</i>
</label>
<select name="realm_message_content_delete_limit_seconds" id="id_realm_message_content_delete_limit_seconds" class="prop-element bootstrap-focus-style settings_select" data-setting-widget-type="time-limit">
@@ -338,7 +338,7 @@
</div>
<div class="m-10 inline-block organization-permissions-parent">
<div class="input-group">
- <label for="realm_bot_creation_policy" class="settings-field-label">{{t "Who can add bots" }}</label>
+ <label for="id_realm_bot_creation_policy" class="settings-field-label">{{t "Who can add bots" }}</label>
<select name="realm_bot_creation_policy" class="setting-widget prop-element settings_select bootstrap-focus-style" id="id_realm_bot_creation_policy" data-setting-widget-type="number">
{{> dropdown_options_widget option_values=bot_creation_policy_values}}
</select>
diff --git a/web/templates/settings/organization_profile_admin.hbs b/web/templates/settings/organization_profile_admin.hbs
index fdd316dc9a2..cd660fd0d99 100644
--- a/web/templates/settings/organization_profile_admin.hbs
+++ b/web/templates/settings/organization_profile_admin.hbs
@@ -18,7 +18,7 @@
value="{{ realm_name }}" maxlength="40" />
</div>
<div class="input-group admin-realm">
- <label for="realm_org_type" class="settings-field-label">{{t "Organization type" }}
+ <label for="id_realm_org_type" class="settings-field-label">{{t "Organization type" }}
{{> ../help_link_widget link="/help/organization-type" }}
</label>
<select name="realm_org_type" class="setting-widget prop-element settings_select bootstrap-focus-style" id="id_realm_org_type" data-setting-widget-type="number">
@@ -33,7 +33,7 @@
label=admin_settings_label.realm_want_advertise_in_communities_directory
help_link="/help/communities-directory"}}
<div class="input-group admin-realm">
- <label for="realm_description" class="settings-field-label">{{t "Organization description" }}</label>
+ <label for="id_realm_description" class="settings-field-label">{{t "Organization description" }}</label>
<textarea id="id_realm_description" name="realm_description" class="admin-realm-description setting-widget prop-element settings_textarea"
maxlength="1000" data-setting-widget-type="string">{{ realm_description }}</textarea>
</div>
diff --git a/web/templates/settings/organization_settings_admin.hbs b/web/templates/settings/organization_settings_admin.hbs
index d5d427585d4..e805a669ed7 100644
--- a/web/templates/settings/organization_settings_admin.hbs
+++ b/web/templates/settings/organization_settings_admin.hbs
@@ -50,7 +50,7 @@
label=admin_settings_label.realm_digest_emails_enabled}}
{{/if}}
<div class="input-group">
- <label for="realm_digest_weekday" class="settings-field-label">{{t "Day of the week to send digests" }}</label>
+ <label for="id_realm_digest_weekday" class="settings-field-label">{{t "Day of the week to send digests" }}</label>
<select name="realm_digest_weekday"
id="id_realm_digest_weekday"
class="setting-widget prop-element settings_select bootstrap-focus-style"
@@ -110,7 +110,7 @@
</div>
<div class="inline-block organization-settings-parent">
<div class="input-group">
- <label for="realm_video_chat_provider" class="settings-field-label">
+ <label for="id_realm_video_chat_provider" class="settings-field-label">
{{t 'Call provider' }}
{{> ../help_link_widget link="/help/start-a-call" }}
</label>
@@ -148,7 +148,7 @@
</div>
</div>
<div class="input-group">
- <label for="realm_giphy_rating" class="settings-field-label">
+ <label for="id_realm_giphy_rating" class="settings-field-label">
{{t 'GIPHY integration' }}
{{> ../help_link_widget link=giphy_help_link }}
</label>
diff --git a/web/templates/settings/organization_user_settings_defaults.hbs b/web/templates/settings/organization_user_settings_defaults.hbs
index dbaf60a81fc..720ffd728c1 100644
--- a/web/templates/settings/organization_user_settings_defaults.hbs
+++ b/web/templates/settings/organization_user_settings_defaults.hbs
@@ -40,7 +40,7 @@
help_link="/help/read-receipts"}}
<div class="input-group">
- <label for="email_address_visibility" class="settings-field-label">{{t "Who can access user's email address" }}
+ <label for="realm_email_address_visibility" class="settings-field-label">{{t "Who can access user's email address" }}
{{> ../help_link_widget link="/help/configure-email-visibility" }}
</label>
<select name="email_address_visibility" class="email_address_visibility prop-element settings_select bootstrap-focus-style" data-setting-widget-type="number"