searchable, ec2, node select

This commit is contained in:
lvuch 2018-01-23 10:35:23 -07:00
parent 896cc21a12
commit 1058d1940a
7 changed files with 33 additions and 32 deletions

View File

@ -124,13 +124,6 @@ $dropdown-caret-color : $mid-grey !default;
cursor: default; cursor: default;
transition: ease-in-out all .25s; transition: ease-in-out all .25s;
} }
&:nth-child(2) {
margin-top: 4px;
}
&:last-child {
margin-bottom: 8px;
}
} }
} }
.resource-actions-tabbable { .resource-actions-tabbable {

View File

@ -52,7 +52,9 @@
z-index: 2; z-index: 2;
border: 1px solid $accent-border; border: 1px solid $accent-border;
border-top: none; border-top: none;
padding: 2px 0 5px;
@expand .dropdown-menu;
input { input {
margin-bottom: 10px; margin-bottom: 10px;
border-left: none; border-left: none;
@ -73,6 +75,14 @@
padding: 0px 0; padding: 0px 0;
padding-left: $indent; padding-left: $indent;
position: relative; position: relative;
border-bottom: 1px $border solid;
padding: 8px 18px;
font-size: 14px;
&:last-child {
border-bottom: 0;
}
.icon-check { .icon-check {
margin-left: -15px; margin-left: -15px;
margin-right: 5px; margin-right: 5px;

View File

@ -30,12 +30,6 @@ 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,
@ -55,6 +49,12 @@ 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,11 +51,7 @@
<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") --}}
@ -70,7 +66,11 @@
{{!-- 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

@ -115,10 +115,9 @@
{{/if}} {{/if}}
</div> </div>
<div class="row {{if isStep3 'inline-form'}}"> <div class="row {{if isStep3 'inline-form'}}">
<div class="col span-2 col-inline">
<label class="acc-label">{{t 'machine.driverAmazon.subnet'}}</label> <label class="acc-label pt-20">{{t 'machine.driverAmazon.subnet'}}</label>
</div>
<div class="col span-10">
{{#if isStep3}} {{#if isStep3}}
{{#if subnetChoices.length}} {{#if subnetChoices.length}}
{{#each subnetChoices as |choice|}} {{#each subnetChoices as |choice|}}
@ -147,8 +146,7 @@
{{/each}} {{/each}}
</label> </label>
</div> </div>
{{!-- <hr class="mt-20 mb-20" /> {{/if}}
--}} {{/if}}
{{/each}} {{/each}}
{{/if}} {{/if}}
{{else}} {{else}}
@ -160,7 +158,7 @@
{{/if}} {{/if}}
</div> </div>
{{/if}} {{/if}}
</div>
</div> </div>
</div> </div>
{{#if isStep3}} {{#if isStep3}}
@ -181,7 +179,7 @@
<section class="horizontal-form {{unless isGteStep5 'hide'}}" style="padding-top: 0"> <section class="horizontal-form {{unless isGteStep5 'hide'}}" style="padding-top: 0">
<div class="box mt-20"> <div class="box mt-20">
<span>{{t 'machine.driverAmazon.securityGroupSection'}}</span> <h4>{{t 'machine.driverAmazon.securityGroupSection'}}</h4>
<div class="row {{if isStep5 'inline-form'}}"> <div class="row {{if isStep5 'inline-form'}}">
{{!-- <div class="col span-2 col-inline"> --}} {{!-- <div class="col span-2 col-inline"> --}}

View File

@ -1,7 +1,7 @@
<td class="pr-20"> <td>
{{t kind}} {{t kind}}
</td> </td>
<td class="pr-20"> <td class="pr-10">
{{#if owner}} {{#if owner}}
{{owner.displayName}} {{owner.displayName}}
{{else if editing}} {{else if editing}}
@ -10,7 +10,7 @@
{{member.role.user.displayName}} {{member.role.user.displayName}}
{{/if}} {{/if}}
</td> </td>
<td class="pr-20"> <td class="pr-10">
{{#if owner}} {{#if owner}}
{{if (eq type 'project') 'Project Owner' 'Cluster Owner'}} {{if (eq type 'project') 'Project Owner' 'Cluster Owner'}}
{{else if (or hasCustom member.customRolesExisting)}} {{else if (or hasCustom member.customRolesExisting)}}

View File

@ -2,7 +2,7 @@
{{input disabled=readOnly class=(concat 'form-control input-search search ' class) placeholder=placeholder type="text" autocomplete="off" value=filter}} {{input disabled=readOnly class=(concat 'form-control input-search search ' class) placeholder=placeholder type="text" autocomplete="off" value=filter}}
{{#if showOptions}} {{#if showOptions}}
<section class="searchable-options {{if showSearch '' 'pt-10'}}"> <section class="searchable-options">
{{#if prompt}} {{#if prompt}}
<div <div
class="searchable-option searchable-prompt" class="searchable-option searchable-prompt"