This commit is contained in:
lvuch 2018-01-22 13:04:37 -07:00 committed by Vincent Fiduccia
parent c762ca23fb
commit 6b9dc63fed
No known key found for this signature in database
GPG Key ID: 2B29AD6BB2BB2582
6 changed files with 19 additions and 18 deletions

View File

@ -148,7 +148,7 @@ $nav-spacing: 4px;
.user-auth { .user-auth {
line-height: initial; line-height: initial;
padding: 10px 20px 10px 10px; padding: 10px 20px 10px 10px;
background: lighten($accent-two, 20); background: $accent;
} }
} }

View File

@ -46,8 +46,8 @@ MAIN {
> h4 { > h4 {
border-bottom: solid 2px darken($border, 5%); border-bottom: solid 2px darken($border, 5%);
margin-bottom: 10px; margin-bottom: 20px;
padding-bottom: 5px; padding-bottom: 15px;
text-transform: capitalize; text-transform: capitalize;
} }

View File

@ -30,6 +30,12 @@ const headersAll = [
translationKey: 'generic.name', translationKey: 'generic.name',
scope: 'embedded', scope: 'embedded',
}, },
{
name: 'all',
sort: false,
searchField: null,
translationKey: 'clustersPage.addPage.rke.new.headers.labels.all',
},
{ {
name: 'etcd', name: 'etcd',
sort: false, sort: false,
@ -49,12 +55,6 @@ const headersAll = [
translationKey: 'clustersPage.addPage.rke.new.headers.labels.worker', translationKey: 'clustersPage.addPage.rke.new.headers.labels.worker',
scope: 'embedded', scope: 'embedded',
}, },
{
name: 'all',
sort: false,
searchField: null,
translationKey: 'clustersPage.addPage.rke.new.headers.labels.all',
},
]; ];
const workerHeaders = headersAll.filter((x) => x.scope === 'embedded'); const workerHeaders = headersAll.filter((x) => x.scope === 'embedded');

View File

@ -51,6 +51,11 @@
<td data-title="{{dt.name}}"> <td data-title="{{dt.name}}">
{{host.displayName}} {{host.displayName}}
</td> </td>
{{#if (eq scope "dedicated")}}
<td data-title="{{dt.all}}">
{{input type="checkbox" checked=(array-includes host.role 'worker' 'controlplane' 'etcd') change=(action 'selectAllRoles' host)}}
</td>
{{/if}}
{{#if (eq scope "dedicated")}} {{#if (eq scope "dedicated")}}
<td data-title="{{dt.etcd}}"> <td data-title="{{dt.etcd}}">
{{!-- disabled=(not-eq host.state "active") --}} {{!-- disabled=(not-eq host.state "active") --}}
@ -65,11 +70,7 @@
{{!-- disabled=(not-eq host.state "active") --}} {{!-- disabled=(not-eq host.state "active") --}}
{{input type="checkbox" checked=(array-includes host.role 'worker') change=(action 'addRole' host 'worker')}} {{input type="checkbox" checked=(array-includes host.role 'worker') change=(action 'addRole' host 'worker')}}
</td> </td>
{{#if (eq scope "dedicated")}}
<td data-title="{{dt.all}}">
{{input type="checkbox" checked=(array-includes host.role 'worker' 'controlplane' 'etcd') change=(action 'selectAllRoles' host)}}
</td>
{{/if}}
</tr> </tr>
{{else if (eq kind "nomatch")}} {{else if (eq kind "nomatch")}}
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted lacsso pt-20 pb-20">{{t 'nodesPage.table.noMatch'}}</td></tr> <tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted lacsso pt-20 pb-20">{{t 'nodesPage.table.noMatch'}}</td></tr>

View File

@ -1,7 +1,7 @@
<div class="{{rowClass}}"> <div class="{{rowClass}}">
<div class="{{if (or hasBlock descriptionExpanded) bothColClass colClass}}"> <div class="{{if (or hasBlock descriptionExpanded) bothColClass colClass}}">
<label for="{{concat elementId '-form-name'}}" class="pb-5 acc-label">{{t nameLabel}}{{#if nameRequired}}{{field-required}}{{/if}}</label> <label for="{{concat elementId '-form-name'}}" class="pb-5">{{t nameLabel}}{{#if nameRequired}}{{field-required}}{{/if}}</label>
{{#if (and descriptionShown (not descriptionExpanded))}} {{#if (and descriptionShown (not descriptionExpanded))}}
<div class="pull-right text-small"> <div class="pull-right text-small">
<a role="button" class="btn bg-transparent p-0" {{action "expandDescription"}}>{{t expandDescriptionAction}}</a> <a role="button" class="btn bg-transparent p-0" {{action "expandDescription"}}>{{t expandDescriptionAction}}</a>
@ -20,7 +20,7 @@
{{#if (and descriptionShown descriptionExpanded)}} {{#if (and descriptionShown descriptionExpanded)}}
<div class="{{if (or hasBlock descriptionExpanded) bothColClass colClass}}"> <div class="{{if (or hasBlock descriptionExpanded) bothColClass colClass}}">
<div> <div>
<label for="{{concat elementId '-form-description'}}" class="pb-5 acc-label desc-label">{{t descriptionLabel}}{{#if descriptionRequired}}{{field-required}}{{/if}}</label> <label for="{{concat elementId '-form-description'}}" class="pb-5 desc-label">{{t descriptionLabel}}{{#if descriptionRequired}}{{field-required}}{{/if}}</label>
</div> </div>
{{textarea-autogrow id=(concat elementId '-form-description') value=_description classNames="form-control no-resize description" rows="1" placeholder=descriptionPlaceholder disabled=descriptionDisabled}} {{textarea-autogrow id=(concat elementId '-form-description') value=_description classNames="form-control no-resize description" rows="1" placeholder=descriptionPlaceholder disabled=descriptionDisabled}}
{{#if descriptionHelp}}<p class="text-info">{{t descriptionHelp}}</p>{{/if}} {{#if descriptionHelp}}<p class="text-info">{{t descriptionHelp}}</p>{{/if}}

View File

@ -6,7 +6,7 @@
}} }}
<div class="footer-actions"> <div class="footer-actions">
<button {{action 'add'}} class="btn bg-primary">{{t 'generic.save'}}</button> <button {{action 'add'}} class="btn bg-primary">{{t 'generic.save'}}</button>
<button {{action "cancel"}} class="btn bg-primary">{{t 'generic.cancel'}}</button> <button {{action "cancel"}} class="btn {{cancelColor}}">{{t 'generic.cancel'}}</button>
</div> </div>
{{else if (eq mode 'launch')}} {{else if (eq mode 'launch')}}
{{cloud-host-add-or-edit {{cloud-host-add-or-edit