From d0477622179a90bbf39f43d554cc8be5d920b641 Mon Sep 17 00:00:00 2001 From: lvuch Date: Mon, 6 Feb 2017 13:22:10 -0700 Subject: [PATCH] lacsso polish --- app/admin-tab/accounts/new/template.hbs | 2 +- app/admin-tab/auth/azuread/template.hbs | 6 +-- app/admin-tab/auth/github/template.hbs | 2 +- app/admin-tab/auth/localauth/template.hbs | 6 +-- app/components/api-field/template.hbs | 2 +- app/components/edit-account/template.hbs | 2 +- app/components/edit-apikey/template.hbs | 2 +- app/components/edit-host/template.hbs | 6 +-- app/components/edit-stack/template.hbs | 2 +- .../form-balancer-rules/template.hbs | 2 +- .../form-name-description/template.hbs | 4 +- app/components/form-networking/template.hbs | 2 +- app/components/form-ports/template.hbs | 2 +- app/components/form-secrets/template.hbs | 2 +- app/components/form-security/template.hbs | 2 +- .../form-ssl-termination/template.hbs | 2 +- app/components/form-targets/template.hbs | 4 +- app/components/host-settings/template.hbs | 2 +- .../machine/driver-amazonec2/template.hbs | 6 +-- .../machine/driver-azure/template.hbs | 2 +- .../machine/driver-digitalocean/template.hbs | 2 +- .../machine/driver-exoscale/template.hbs | 4 +- .../machine/driver-packet/template.hbs | 2 +- .../machine/driver-rackspace/template.hbs | 2 +- .../machine/driver-ubiquity/template.hbs | 2 +- .../modal-container-stop/template.hbs | 2 +- app/components/modal-edit-driver/template.hbs | 6 +-- .../modal-edit-setting/template.hbs | 2 +- app/components/new-catalog/template.hbs | 4 +- app/components/page-header/template.hbs | 2 +- .../settings/catalog-url/template.hbs | 6 +-- .../settings/danger-zone/template.hbs | 2 +- .../settings/host-registration/template.hbs | 2 +- app/components/site-access/template.hbs | 2 +- app/components/view-edit-project/template.hbs | 2 +- app/registries/new/template.hbs | 2 +- app/stacks/new/template.hbs | 2 +- app/styles/components/_page-header.scss | 29 ++++++++++--- app/styles/lacsso/base/_helpers.scss | 8 ++++ app/styles/lacsso/base/_typography.scss | 4 +- app/styles/lacsso/components/_forms.scss | 42 +++++++++++++------ app/styles/lacsso/components/_nav.scss | 6 +-- app/styles/totrash/base/_rancher.scss | 7 +++- app/templates/ldap-config.hbs | 14 +++---- public/assets/images/dropdown-arrow.svg | 9 ++++ 45 files changed, 141 insertions(+), 84 deletions(-) create mode 100644 public/assets/images/dropdown-arrow.svg diff --git a/app/admin-tab/accounts/new/template.hbs b/app/admin-tab/accounts/new/template.hbs index 25ce6e65d..714a87a7b 100644 --- a/app/admin-tab/accounts/new/template.hbs +++ b/app/admin-tab/accounts/new/template.hbs @@ -18,7 +18,7 @@
{{schema/input-password value=model.credential.secretValue}} -
{{validateDescription}}
+
{{validateDescription}}
diff --git a/app/admin-tab/auth/azuread/template.hbs b/app/admin-tab/auth/azuread/template.hbs index 491bb704c..14303898e 100644 --- a/app/admin-tab/auth/azuread/template.hbs +++ b/app/admin-tab/auth/azuread/template.hbs @@ -41,7 +41,7 @@
{{input type="text" value=model.tenantId placeholder=(t 'authPage.azuread.configure.tenantId.placeholder') classNames="form-control"}} -

{{t 'authPage.azuread.configure.tenantId.help'}}

+

{{t 'authPage.azuread.configure.tenantId.help'}}

@@ -63,7 +63,7 @@
{{input type="text" value=model.adminAccountUsername placeholder=(t 'authPage.azuread.configure.adminAccountUsername.placeholder') classNames="form-control"}} -

{{t 'authPage.azuread.configure.adminAccountUsername.help'}}

+

{{t 'authPage.azuread.configure.adminAccountUsername.help'}}

@@ -78,7 +78,7 @@

{{t 'authPage.azuread.test.header'}}


-

{{t 'authPage.azuread.test.help'}}

+

{{t 'authPage.azuread.test.help'}}

{{top-errors errors=errors}}
diff --git a/app/admin-tab/auth/github/template.hbs b/app/admin-tab/auth/github/template.hbs index 80fe626a8..699aa965a 100644 --- a/app/admin-tab/auth/github/template.hbs +++ b/app/admin-tab/auth/github/template.hbs @@ -22,7 +22,7 @@
{{t 'authPage.github.authenticated.header.enterpriseHostName'}} {{githubConfig.hostname}}
{{/if}}
{{t 'authPage.github.authenticated.header.clientId.text'}} {{githubConfig.clientId}}
-

{{t 'authPage.github.authenticated.header.clientId.helpText'}}

+

{{t 'authPage.github.authenticated.header.clientId.helpText'}}

{{site-access diff --git a/app/admin-tab/auth/localauth/template.hbs b/app/admin-tab/auth/localauth/template.hbs index 55969c25b..358c0ce08 100644 --- a/app/admin-tab/auth/localauth/template.hbs +++ b/app/admin-tab/auth/localauth/template.hbs @@ -34,7 +34,7 @@

{{t 'authPage.localAuth.accessDisabled.header'}}


-

{{t 'authPage.localAuth.accessDisabled.helpText' appName=settings.appName}}

+

{{t 'authPage.localAuth.accessDisabled.helpText' appName=settings.appName}}

@@ -54,7 +54,7 @@
{{input type="password" value=adminSecretValue classNames="form-control"}} -
{{validateDescription}}
+
{{validateDescription}}
@@ -69,7 +69,7 @@

{{t 'authPage.localAuth.accessControl.header'}}


-

{{t 'authPage.localAuth.accessControl.helpText'}}

+

{{t 'authPage.localAuth.accessControl.helpText'}}

{{top-errors errors=errors}}
-

{{fieldDef.description}}

+

{{fieldDef.description}}

diff --git a/app/components/edit-account/template.hbs b/app/components/edit-account/template.hbs index 0c1b741a7..88f8720a5 100644 --- a/app/components/edit-account/template.hbs +++ b/app/components/edit-account/template.hbs @@ -73,7 +73,7 @@
{{schema/input-password value=newPassword generated="generated"}} -
{{validateDescription}}
+
{{validateDescription}}
diff --git a/app/components/edit-apikey/template.hbs b/app/components/edit-apikey/template.hbs index 38ded1637..e06396dfe 100644 --- a/app/components/edit-apikey/template.hbs +++ b/app/components/edit-apikey/template.hbs @@ -41,7 +41,7 @@ {{#unless editing}}
-

{{t 'editApiKey.noteOptional'}}

+

{{t 'editApiKey.noteOptional'}}

{{/unless}} diff --git a/app/components/edit-host/template.hbs b/app/components/edit-host/template.hbs index 08e3a81d9..54cfe06bc 100644 --- a/app/components/edit-host/template.hbs +++ b/app/components/edit-host/template.hbs @@ -8,7 +8,7 @@
{{model.hostname}} -

{{t 'editHost.hostname.help'}}

+

{{t 'editHost.hostname.help'}}

@@ -18,7 +18,7 @@
{{input type="text" value=primaryResource.name classNames="form-control" placeholder=(t 'editHost.customName.placeholder')}} -

{{t 'editHost.customName.help'}}

+

{{t 'editHost.customName.help'}}

@@ -57,7 +57,7 @@ valueLabel="editHost.ips.valueLabel" valuePlaceholder="editHost.ips.valuePlaceholder" }} -

{{t 'editHost.ips.help'}}

+

{{t 'editHost.ips.help'}}

diff --git a/app/components/edit-stack/template.hbs b/app/components/edit-stack/template.hbs index 48eb20dae..05ae00476 100644 --- a/app/components/edit-stack/template.hbs +++ b/app/components/edit-stack/template.hbs @@ -35,7 +35,7 @@ -

{{t 'editStack.group.help'}}

+

{{t 'editStack.group.help'}}

diff --git a/app/components/form-balancer-rules/template.hbs b/app/components/form-balancer-rules/template.hbs index 312f295cc..dce77fa0e 100644 --- a/app/components/form-balancer-rules/template.hbs +++ b/app/components/form-balancer-rules/template.hbs @@ -132,7 +132,7 @@ {{/each}} -

+

{{t 'formBalancerRules.help.prefix'}} {{#unless showBackend}} diff --git a/app/components/form-name-description/template.hbs b/app/components/form-name-description/template.hbs index baff20a26..c4f006720 100644 --- a/app/components/form-name-description/template.hbs +++ b/app/components/form-name-description/template.hbs @@ -4,7 +4,7 @@ {{input type="text" value=_name classNames="form-control" placeholder=(t namePlaceholder) disabled=nameDisabled}} - {{#if nameHelpText}}

{{nameHelpText}}

{{/if}} + {{#if nameHelpText}}

{{nameHelpText}}

{{/if}}
@@ -13,7 +13,7 @@
{{textarea-autogrow value=_description classNames="form-control no-resize" rows="1" placeholder=descriptionPlaceholder disabled=descriptionDisabled}} - {{#if descriptionHelp}}

{{t descriptionHelp}}

{{/if}} + {{#if descriptionHelp}}

{{t descriptionHelp}}

{{/if}} {{else}} {{yield}} {{/if}} diff --git a/app/components/form-networking/template.hbs b/app/components/form-networking/template.hbs index 2a2711894..2f72d3951 100644 --- a/app/components/form-networking/template.hbs +++ b/app/components/form-networking/template.hbs @@ -42,7 +42,7 @@
{{#input-or-display editable=editing value=requestedIp}} {{input type="text" value=requestedIp classNames="form-control" placeholder=(t 'formNetwork.requestedIp.placeholder')}} -

{{t 'formNetwork.requestedIp.help'}}

+

{{t 'formNetwork.requestedIp.help'}}

{{/input-or-display}}
diff --git a/app/components/form-ports/template.hbs b/app/components/form-ports/template.hbs index 7c88eb3b4..6eb0cf75f 100644 --- a/app/components/form-ports/template.hbs +++ b/app/components/form-ports/template.hbs @@ -73,7 +73,7 @@ {{/each}} {{#unless showIp}} -

+

{{t 'formPorts.showIpLink'}} diff --git a/app/components/form-secrets/template.hbs b/app/components/form-secrets/template.hbs index c3a2ba44e..2be8727d0 100644 --- a/app/components/form-secrets/template.hbs +++ b/app/components/form-secrets/template.hbs @@ -60,7 +60,7 @@ {{/each}} -

+

{{format-html-message 'formSecrets.help.prefix'}} {{#unless showPermissions}} diff --git a/app/components/form-security/template.hbs b/app/components/form-security/template.hbs index c4cfeaec5..9a3a7bffc 100644 --- a/app/components/form-security/template.hbs +++ b/app/components/form-security/template.hbs @@ -158,7 +158,7 @@ {{#if editing}}

- + {{t 'formSecurity.capabilities.helpBlock.text'}} {{t 'formSecurity.capabilities.helpBlock.link'}} diff --git a/app/components/form-ssl-termination/template.hbs b/app/components/form-ssl-termination/template.hbs index bbc188d14..9a19286f1 100644 --- a/app/components/form-ssl-termination/template.hbs +++ b/app/components/form-ssl-termination/template.hbs @@ -61,7 +61,7 @@
-

{{format-html-message 'formSslTermination.helpBlock'}}

+

{{format-html-message 'formSslTermination.helpBlock'}}

{{else}} diff --git a/app/components/form-targets/template.hbs b/app/components/form-targets/template.hbs index 9123fd290..c51ea2acb 100644 --- a/app/components/form-targets/template.hbs +++ b/app/components/form-targets/template.hbs @@ -47,8 +47,8 @@ {{#if isAdvanced}}
-

{{t 'formTargets.advanced.help1'}}

-

{{t 'formTargets.advanced.help2'}}

+

{{t 'formTargets.advanced.help1'}}

+

{{t 'formTargets.advanced.help2'}}

{{else}} diff --git a/app/components/host-settings/template.hbs b/app/components/host-settings/template.hbs index 1a241137a..0a77e8f92 100644 --- a/app/components/host-settings/template.hbs +++ b/app/components/host-settings/template.hbs @@ -10,7 +10,7 @@
{{input type="text" class="form-control" value=customValue placeholder=(t 'hostSettings.hostUrl.new.placeholder') safeStyle="width: calc(100% - 170px); display: inline-block; min-width: 300px;"}} -

+

{{format-html-message 'hostSettings.helpText.static1'}} {{#if settings.isRancher}} {{format-html-message 'hostSettings.helpText.isRancher' docsBase=settings.docsBase}} diff --git a/app/components/machine/driver-amazonec2/template.hbs b/app/components/machine/driver-amazonec2/template.hbs index 3c945572e..0db94834d 100644 --- a/app/components/machine/driver-amazonec2/template.hbs +++ b/app/components/machine/driver-amazonec2/template.hbs @@ -44,7 +44,7 @@

{{t 'machine.driverAmazon.secretKey.provided'}}
{{/if}} {{#if isStep1}} -

{{t 'machine.driverAmazon.accessKeyHelp'}}

+

{{t 'machine.driverAmazon.accessKeyHelp'}}

{{/if}}
@@ -160,7 +160,7 @@
{{#if (and settings.isRancher (not isCustomSecurityGroup))}} -

{{t 'machine.driverAmazon.portHelp.link'}} {{t 'machine.driverAmazon.portHelp.text'}}

+

{{t 'machine.driverAmazon.portHelp.link'}} {{t 'machine.driverAmazon.portHelp.text'}}

{{/if}}
@@ -262,7 +262,7 @@
{{input type="text" classNames="form-control" placeholder=(t 'machine.driverAmazon.ami.placeholder') value=amazonec2Config.ami}} {{#if settings.isRancher}} -

+

{{t 'machine.driverAmazon.ami.rancherList'}}

{{/if}} diff --git a/app/components/machine/driver-azure/template.hbs b/app/components/machine/driver-azure/template.hbs index 49109b376..32a0e7af6 100644 --- a/app/components/machine/driver-azure/template.hbs +++ b/app/components/machine/driver-azure/template.hbs @@ -68,7 +68,7 @@ {{input type="password" value=azureConfig.clientSecret classNames="form-control"}}
-

{{format-html-message 'machine.driverAzure.helpBlock'}}

+

{{format-html-message 'machine.driverAzure.helpBlock'}}

diff --git a/app/components/machine/driver-digitalocean/template.hbs b/app/components/machine/driver-digitalocean/template.hbs index dae93e614..3e89df1ef 100644 --- a/app/components/machine/driver-digitalocean/template.hbs +++ b/app/components/machine/driver-digitalocean/template.hbs @@ -11,7 +11,7 @@
{{input type="password" value=digitaloceanConfig.accessToken classNames="form-control" placeholder=(t 'machine.driverDigitalocean.accessToken.placeholder')}} -

{{format-html-message 'machine.driverDigitalocean.accessToken.help'}}

+

{{format-html-message 'machine.driverDigitalocean.accessToken.help'}}

diff --git a/app/components/machine/driver-exoscale/template.hbs b/app/components/machine/driver-exoscale/template.hbs index b845501b0..b96ba9ae7 100644 --- a/app/components/machine/driver-exoscale/template.hbs +++ b/app/components/machine/driver-exoscale/template.hbs @@ -28,7 +28,7 @@
{{t 'machine.driverExoscale.secretKey.provided'}}
{{/if}} {{#if isStep1}} -

{{t 'machine.driverExoscale.accountHelp'}}

+

{{t 'machine.driverExoscale.accountHelp'}}

{{/if}} @@ -72,7 +72,7 @@ {{#if (and settings.isRancher (not isCustomSecurityGroup))}} -

{{t 'machine.driverExoscale.portHelp.link'}} {{t 'machine.driverExoscale.portHelp.text'}}

+

{{t 'machine.driverExoscale.portHelp.link'}} {{t 'machine.driverExoscale.portHelp.text'}}

{{/if}}
diff --git a/app/components/machine/driver-packet/template.hbs b/app/components/machine/driver-packet/template.hbs index 86ae6cdab..2d723a1f6 100644 --- a/app/components/machine/driver-packet/template.hbs +++ b/app/components/machine/driver-packet/template.hbs @@ -22,7 +22,7 @@
{{input type="password" name="password" value=packetConfig.apiKey classNames="form-control" placeholder=(t 'machine.driverPacket.apiKey.placeholder')}} -

{{format-html-message 'machine.driverPacket.apiKeyHelp'}}

+

{{format-html-message 'machine.driverPacket.apiKeyHelp'}}

diff --git a/app/components/machine/driver-rackspace/template.hbs b/app/components/machine/driver-rackspace/template.hbs index 545792df5..5394ab52f 100644 --- a/app/components/machine/driver-rackspace/template.hbs +++ b/app/components/machine/driver-rackspace/template.hbs @@ -23,7 +23,7 @@
{{input type="password" value=rackspaceConfig.apiKey classNames="form-control" placeholder=(t 'machine.driverRackspace.apiKey.placeholder')}} -

{{t 'machine.driverRackspace.accountHelp'}}

+

{{t 'machine.driverRackspace.accountHelp'}}

diff --git a/app/components/machine/driver-ubiquity/template.hbs b/app/components/machine/driver-ubiquity/template.hbs index 297f1e6ff..ede36ee54 100644 --- a/app/components/machine/driver-ubiquity/template.hbs +++ b/app/components/machine/driver-ubiquity/template.hbs @@ -40,7 +40,7 @@
{{t 'machine.driverUbiquity.apiToken.provided'}}
{{/if}} {{#if isStep1}} -

{{format-html-message 'machine.driverUbiquity.accountHelp'}}

+

{{format-html-message 'machine.driverUbiquity.accountHelp'}}

{{/if}} diff --git a/app/components/modal-container-stop/template.hbs b/app/components/modal-container-stop/template.hbs index 80e23f63d..3dbab6962 100644 --- a/app/components/modal-container-stop/template.hbs +++ b/app/components/modal-container-stop/template.hbs @@ -18,7 +18,7 @@
{{t 'modalContainerStop.uom'}}
-
+
{{t 'modalContainerStop.helpText' defaultTimeout=defaultTimeout}}
diff --git a/app/components/modal-edit-driver/template.hbs b/app/components/modal-edit-driver/template.hbs index ebaff7417..afc4cc339 100644 --- a/app/components/modal-edit-driver/template.hbs +++ b/app/components/modal-edit-driver/template.hbs @@ -5,13 +5,13 @@
{{input class="form-control" value=originalModel.url }} - {{t 'modalEditDriver.url.help'}} + {{t 'modalEditDriver.url.help'}}
{{input class="form-control" value=originalModel.uiUrl }} - + {{t 'modalEditDriver.uiUrl.help'}} {{#if settings.isRancher}} {{format-html-message 'modalEditDriver.uiUrl.link'}} @@ -22,7 +22,7 @@
{{input class="form-control" value=originalModel.checksum }} - {{t 'modalEditDriver.checksum.help'}} + {{t 'modalEditDriver.checksum.help'}}
{{save-cancel editing=editing save="save" cancel="cancel"}} diff --git a/app/components/modal-edit-setting/template.hbs b/app/components/modal-edit-setting/template.hbs index a3b52db09..ad0ef94bc 100644 --- a/app/components/modal-edit-setting/template.hbs +++ b/app/components/modal-edit-setting/template.hbs @@ -5,7 +5,7 @@
{{model.key}}
-

{{model.description}}

+

{{model.description}}

diff --git a/app/components/new-catalog/template.hbs b/app/components/new-catalog/template.hbs index 9121c6059..91e68b83a 100644 --- a/app/components/new-catalog/template.hbs +++ b/app/components/new-catalog/template.hbs @@ -65,7 +65,7 @@ value=selectedTemplateUrl disabled=loading }} -

{{t (if editing selectVersionUpgrade selectVersionAdd)}}

+

{{t (if editing selectVersionUpgrade selectVersionAdd)}}

@@ -108,7 +108,7 @@

{{t 'newCatalog.unknownType'}} {{question.type}}

{{/if}} -

{{question.description}}

+

{{question.description}}

{{else}} diff --git a/app/components/page-header/template.hbs b/app/components/page-header/template.hbs index 6fce5c1d0..b42fa08eb 100644 --- a/app/components/page-header/template.hbs +++ b/app/components/page-header/template.hbs @@ -84,7 +84,7 @@