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.

minor: Remove usage of `control-group` and `control-label` class.

Ganesh Pawar84e307581f8a
diff --git a/static/styles/settings.css b/static/styles/settings.css
index c7efa2402dd..18830ab3fc2 100644
--- a/static/styles/settings.css
+++ b/static/styles/settings.css
@@ -830,7 +830,9 @@ input[type="checkbox"] {
.admin-linkifier-form,
.admin-playground-form {
- .control-label {
+ label {
+ float: left;
+ padding-top: 5px;
width: 10em;
text-align: right;
margin-right: 20px;
diff --git a/static/templates/settings/api_key_modal.hbs b/static/templates/settings/api_key_modal.hbs
index baec247a8dc..90b04c8d6fe 100644
--- a/static/templates/settings/api_key_modal.hbs
+++ b/static/templates/settings/api_key_modal.hbs
@@ -17,7 +17,7 @@
</a>
</p>
<div class="password-div">
- <label for="password" class="control-label">{{t "Current password" }}</label>
+ <label for="password">{{t "Current password" }}</label>
<input type="password" autocomplete="off" name="password" id="get_api_key_password" value="" />
<i class="fa fa-eye-slash password_visibility_toggle tippy-zulip-tooltip" role="button"></i>
</div>
diff --git a/static/templates/settings/linkifier_settings_admin.hbs b/static/templates/settings/linkifier_settings_admin.hbs
index 6e389ecf4a4..2a92005a04f 100644
--- a/static/templates/settings/linkifier_settings_admin.hbs
+++ b/static/templates/settings/linkifier_settings_admin.hbs
@@ -47,13 +47,13 @@
<div class="new-linkifier-form wrapper">
<div class="settings-section-title new-linkifier-section-title">{{t "Add a new linkifier" }}</div>
<div class="alert" id="admin-linkifier-status"></div>
- <div class="control-group">
- <label for="linkifier_pattern" class="control-label">{{t "Pattern" }}</label>
+ <div class="input-group">
+ <label for="linkifier_pattern">{{t "Pattern" }}</label>
<input type="text" id="linkifier_pattern" name="pattern" placeholder="#(?P<id>[0-9]+)" />
<div class="alert" id="admin-linkifier-pattern-status"></div>
</div>
- <div class="control-group">
- <label for="linkifier_format_string" class="control-label">{{t "URL format string" }}</label>
+ <div class="input-group">
+ <label for="linkifier_format_string">{{t "URL format string" }}</label>
<input type="text" id="linkifier_format_string" name="url_format_string" placeholder="https://github.com/zulip/zulip/issues/%(id)s" />
<div class="alert" id="admin-linkifier-format-status"></div>
</div>
diff --git a/static/templates/settings/playground_settings_admin.hbs b/static/templates/settings/playground_settings_admin.hbs
index aad3d76c016..caefde70e21 100644
--- a/static/templates/settings/playground_settings_admin.hbs
+++ b/static/templates/settings/playground_settings_admin.hbs
@@ -30,16 +30,16 @@
{{> ../help_link_widget link="/help/code-blocks#code-playgrounds" }}
</div>
<div class="alert" id="admin-playground-status"></div>
- <div class="control-group">
- <label for="playground_pygments_language" class="control-label"> {{t "Language" }}</label>
+ <div class="input-group">
+ <label for="playground_pygments_language"> {{t "Language" }}</label>
<input type="text" id="playground_pygments_language" name="pygments_language" autocomplete="off" placeholder="Python" />
</div>
- <div class="control-group">
- <label for="playground_name" class="control-label"> {{t "Name" }}</label>
+ <div class="input-group">
+ <label for="playground_name"> {{t "Name" }}</label>
<input type="text" id="playground_name" name="playground_name" autocomplete="off" placeholder="Python3 playground" />
</div>
- <div class="control-group">
- <label for="playground_url_prefix" class="control-label"> {{t "URL prefix" }}</label>
+ <div class="input-group">
+ <label for="playground_url_prefix"> {{t "URL prefix" }}</label>
<input type="text" id="playground_url_prefix" name="url_prefix" placeholder="https://replit.com/languages/python3/?code=" />
</div>
<button type="submit" id="submit_playground_button" class="button rounded sea-green">