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: Remove unnecesary inline-block div.

Karl Stolley2e6a34042fab
diff --git a/web/styles/settings.css b/web/styles/settings.css
index 014cdf384bc..951547e12f3 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -71,21 +71,6 @@ h3,
width: 200px;
}
- .grid {
- & label {
- min-width: 200px;
- }
- }
-
- #account-settings,
- #profile-field-settings {
- .grid {
- & label {
- min-width: 120px;
- }
- }
- }
-
.button {
& ul {
text-align: left;
diff --git a/web/templates/settings/account_settings.hbs b/web/templates/settings/account_settings.hbs
index 6fea07071db..1930b59a788 100644
--- a/web/templates/settings/account_settings.hbs
+++ b/web/templates/settings/account_settings.hbs
@@ -1,69 +1,67 @@
<div id="account-settings" class="settings-section" data-name="account-and-privacy">
<div class="alert" id="dev-account-settings-status"></div>
<div class="account-settings-form">
- <div class="inline-block">
- <div id="user_details_section">
- <h3 class="inline-block account-settings-heading">{{t "Account" }}</h3>
- <div class="alert-notification account-alert-notification" id="account-settings-status"></div>
- <form class="grid">
- {{#if user_has_email_set}}
- <div class="input-group">
- <label class="settings-field-label">{{t "Email" }}</label>
- <div id="change_email_button_container" class="{{#unless user_can_change_email}}disabled_setting_tooltip{{/unless}}">
- <button id="change_email_button" type="button" class="button rounded tippy-zulip-delayed-tooltip" data-tippy-content="{{t 'Change your email' }}" {{#unless user_can_change_email}}disabled="disabled"{{/unless}}>
- {{current_user.delivery_email}}
- </button>
- </div>
- </div>
- {{else}}
- {{! Demo organizations before the owner has configured an email address. }}
- <div class="input-group">
- <p>
- {{#tr}}
- Add your email to <z-link-invite-users-help>invite other users</z-link-invite-users-help>
- or <z-link-convert-demo-organization-help>convert to a permanent Zulip organization</z-link-convert-demo-organization-help>.
- {{#*inline "z-link-invite-users-help"}}<a href="/help/invite-new-users" target="_blank" rel="noopener noreferrer">{{> @partial-block}}</a>{{/inline}}
- {{#*inline "z-link-convert-demo-organization-help"}}<a href="/help/demo-organizations#convert-a-demo-organization-to-a-permanent-organization" target="_blank" rel="noopener noreferrer">{{> @partial-block}}</a>{{/inline}}
- {{/tr}}
- </p>
- <button id="demo_organization_add_email_button" type="button" class="button rounded sea-green">
- {{t "Add email"}}
+ <div id="user_details_section">
+ <h3 class="inline-block account-settings-heading">{{t "Account" }}</h3>
+ <div class="alert-notification account-alert-notification" id="account-settings-status"></div>
+ <form class="grid">
+ {{#if user_has_email_set}}
+ <div class="input-group">
+ <label class="settings-field-label">{{t "Email" }}</label>
+ <div id="change_email_button_container" class="{{#unless user_can_change_email}}disabled_setting_tooltip{{/unless}}">
+ <button id="change_email_button" type="button" class="button rounded tippy-zulip-delayed-tooltip" data-tippy-content="{{t 'Change your email' }}" {{#unless user_can_change_email}}disabled="disabled"{{/unless}}>
+ {{current_user.delivery_email}}
</button>
</div>
- {{/if}}
- </form>
-
- {{#if page_params.two_fa_enabled }}
- <p for="two_factor_auth" class="inline-block title">
- {{t "Two factor authentication" }}: {{#if page_params.two_fa_enabled_user }}{{t "Enabled" }}{{else}}{{t "Disabled" }}{{/if}}
- <a target="_blank" rel="noopener noreferrer" id="two_factor_auth" href="/account/two_factor/" title="{{t 'Set up two factor authentication' }}">[{{t "Setup" }}]</a>
- </p>
+ </div>
+ {{else}}
+ {{! Demo organizations before the owner has configured an email address. }}
+ <div class="input-group">
+ <p>
+ {{#tr}}
+ Add your email to <z-link-invite-users-help>invite other users</z-link-invite-users-help>
+ or <z-link-convert-demo-organization-help>convert to a permanent Zulip organization</z-link-convert-demo-organization-help>.
+ {{#*inline "z-link-invite-users-help"}}<a href="/help/invite-new-users" target="_blank" rel="noopener noreferrer">{{> @partial-block}}</a>{{/inline}}
+ {{#*inline "z-link-convert-demo-organization-help"}}<a href="/help/demo-organizations#convert-a-demo-organization-to-a-permanent-organization" target="_blank" rel="noopener noreferrer">{{> @partial-block}}</a>{{/inline}}
+ {{/tr}}
+ </p>
+ <button id="demo_organization_add_email_button" type="button" class="button rounded sea-green">
+ {{t "Add email"}}
+ </button>
+ </div>
{{/if}}
+ </form>
- <form class="password-change-form grid">
- {{#if user_can_change_password}}
- <div>
- <label class="settings-field-label">{{t "Password" }}</label>
- <div class="input-group">
- <button id="change_password" type="button" class="button rounded" data-dismiss="modal">{{t "Change your password" }}</button>
- </div>
- </div>
- {{/if}}
- </form>
+ {{#if page_params.two_fa_enabled }}
+ <p for="two_factor_auth" class="inline-block title">
+ {{t "Two factor authentication" }}: {{#if page_params.two_fa_enabled_user }}{{t "Enabled" }}{{else}}{{t "Disabled" }}{{/if}}
+ <a target="_blank" rel="noopener noreferrer" id="two_factor_auth" href="/account/two_factor/" title="{{t 'Set up two factor authentication' }}">[{{t "Setup" }}]</a>
+ </p>
+ {{/if}}
- <div class="input-group">
- <div id="deactivate_account_container" class="inline-block {{#if user_is_only_organization_owner}}disabled_setting_tooltip{{/if}}">
- <button type="submit" class="button rounded btn-danger" id="user_deactivate_account_button"
- {{#if user_is_only_organization_owner}}disabled="disabled"{{/if}}>
- {{t 'Deactivate account' }}
- </button>
+ <form class="password-change-form grid">
+ {{#if user_can_change_password}}
+ <div>
+ <label class="settings-field-label">{{t "Password" }}</label>
+ <div class="input-group">
+ <button id="change_password" type="button" class="button rounded" data-dismiss="modal">{{t "Change your password" }}</button>
</div>
- {{#if owner_is_only_user_in_organization}}
- <button type="submit" class="button rounded btn-danger deactivate_realm_button">
- {{t 'Deactivate organization' }}
- </button>
- {{/if}}
</div>
+ {{/if}}
+ </form>
+
+ <div class="input-group">
+ <div id="deactivate_account_container" class="inline-block {{#if user_is_only_organization_owner}}disabled_setting_tooltip{{/if}}">
+ <button type="submit" class="button rounded btn-danger" id="user_deactivate_account_button"
+ {{#if user_is_only_organization_owner}}disabled="disabled"{{/if}}>
+ {{t 'Deactivate account' }}
+ </button>
+ </div>
+ {{#if owner_is_only_user_in_organization}}
+ <button type="submit" class="button rounded btn-danger deactivate_realm_button">
+ {{t 'Deactivate organization' }}
+ </button>
+ {{/if}}
</div>
</div>