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 the labels in stream settings.

joseph8332c7d93b62
diff --git a/web/templates/stream_settings/announce_stream_checkbox.hbs b/web/templates/stream_settings/announce_stream_checkbox.hbs
index fd75a6064e8..313d565ad77 100644
--- a/web/templates/stream_settings/announce_stream_checkbox.hbs
+++ b/web/templates/stream_settings/announce_stream_checkbox.hbs
@@ -1,5 +1,5 @@
-<label class="checkbox">
- <input type="checkbox" name="announce" value="announce" checked />
+<label class="checkbox" for="id_should_announce_new_stream">
+ <input type="checkbox" name="announce" value="announce" checked id="id_should_announce_new_stream"/>
<span class="rendered-checkbox"></span>
{{t "Announce new channel in"}}
{{#if new_stream_announcements_stream_sub}}
diff --git a/web/templates/stream_settings/stream_creation_form.hbs b/web/templates/stream_settings/stream_creation_form.hbs
index eacc6dd2d18..351a77f5a95 100644
--- a/web/templates/stream_settings/stream_creation_form.hbs
+++ b/web/templates/stream_settings/stream_creation_form.hbs
@@ -34,7 +34,7 @@
</div>
<div class="subscribers_container stream_creation_container">
<section class="stream_create_add_subscriber_container">
- <label class="choose-subscribers-label" for="people_to_add">
+ <label class="choose-subscribers-label">
<h4 class="stream_setting_subsection_title">{{t "Choose subscribers" }}</h4>
</label>
<span class="add_all_users_to_stream_button_container">
diff --git a/web/templates/stream_settings/stream_types.hbs b/web/templates/stream_settings/stream_types.hbs
index 43459de37d4..5e3e28727f2 100644
--- a/web/templates/stream_settings/stream_types.hbs
+++ b/web/templates/stream_settings/stream_types.hbs
@@ -54,7 +54,7 @@
<div class="advanced-configurations-collapase-view hide">
<div class="input-group">
- <label class="dropdown-title">{{t 'Who can post to this channel'}}
+ <label class="dropdown-title" for="{{prefix}}stream_post_policy">{{t 'Who can post to this channel'}}
{{> ../help_link_widget link="/help/stream-sending-policy" }}
</label>
<select name="stream-post-policy" class="stream_post_policy_setting prop-element settings_select bootstrap-focus-style" id="{{prefix}}stream_post_policy" data-setting-widget-type="number">
@@ -74,7 +74,7 @@
{{#if (or is_owner is_stream_edit)}}
<div>
<div class="input-group inline-block message-retention-setting-group time-limit-setting">
- <label class="dropdown-title">{{t "Message retention period" }}
+ <label class="dropdown-title" for="{{prefix}}message_retention_days">{{t "Message retention period" }}
{{> ../help_link_widget link="/help/message-retention-policy" }}
</label>
@@ -90,7 +90,7 @@
</select>
<div class="dependent-settings-block stream-message-retention-days-input">
- <label class="inline-block">
+ <label class="inline-block" for="{{prefix}}stream_message_retention_custom_input">
{{t 'Retention period (days)' }}:
</label>
<input type="text" autocomplete="off"