more fixes

This commit is contained in:
lvuch 2017-08-18 11:07:35 -07:00
parent 5298104c2b
commit 60e23516bf
5 changed files with 128 additions and 104 deletions

View File

@ -80,8 +80,8 @@
</div> </div>
<hr class="mt-30 mb-30" /> <hr class="mt-30 mb-30" />
{{#accordion-list as | al expandFn | }}
{{#unless isSidekick}} {{#unless isSidekick}}
{{container/form-scheduling {{container/form-scheduling
isService=isService isService=isService
isGlobal=isGlobal isGlobal=isGlobal
@ -93,19 +93,24 @@
expandAll=null expandAll=null
setLabels=(action 'setLabels' 'scheduling') setLabels=(action 'setLabels' 'scheduling')
setRequestedHost=(action 'setRequestedHostId') setRequestedHost=(action 'setRequestedHostId')
expandAll=al.expandAll
expandFn=expandFn
}} }}
{{/unless}} {{/unless}}
{{form-healthcheck {{form-healthcheck
classNames="accordion-wrapper" classNames="accordion-wrapper"
isService=isService isService=isService
healthCheck=launchConfig.healthCheck healthCheck=launchConfig.healthCheck
errors=healthCheckErrors errors=healthCheckErrors
expandAll=null expandAll=null
editing=true editing=true
}} expandAll=al.expandAll
expandFn=expandFn
}}
{{container/form-volumes {{#advanced-section advanced=false}}
{{container/form-volumes
isService=isService isService=isService
isSidekick=isSidekick isSidekick=isSidekick
launchConfig=launchConfig launchConfig=launchConfig
@ -113,19 +118,20 @@
stack=stack stack=stack
errors=volumeErrors errors=volumeErrors
volumesToCreate=volumesToCreate volumesToCreate=volumesToCreate
}} expandAll=al.expandAll
expandFn=expandFn
}}
{{#if (and isService (not isSidekick))}} {{#if (and isService (not isSidekick))}}
{{container/form-upgrade {{container/form-upgrade
service=service service=service
instance=launchConfig instance=launchConfig
editing=true editing=true
isUpgrade=isUpgrade isUpgrade=isUpgrade
expandAll=al.expandAll
expandFn=expandFn
}} }}
{{/if}} {{/if}}
{{#advanced-section advanced=false}}
{{#accordion-list as | al expandFn | }}
{{container/form-command {{container/form-command
classNames="accordion-wrapper" classNames="accordion-wrapper"
@ -199,8 +205,8 @@
expandAll=al.expandAll expandAll=al.expandAll
expandFn=expandFn expandFn=expandFn
}} }}
{{/accordion-list}} {{/advanced-section}}
{{/advanced-section}} {{/accordion-list}}
{{top-errors errors=errors}} {{top-errors errors=errors}}
{{save-cancel createLabel=(if isUpgrade 'newContainer.saveUpgrade' 'newContainer.saveNew') save="save" cancel="cancel"}} {{save-cancel createLabel=(if isUpgrade 'newContainer.saveUpgrade' 'newContainer.saveNew') save="save" cancel="cancel"}}

View File

@ -72,7 +72,7 @@
{{#if (and expanded model.canScale)}} {{#if (and expanded model.canScale)}}
<div class="btn-group bg-default scale-arrow"> <div class="btn-group bg-default scale-arrow">
<button class="btn btn-xs bg-primary" {{action "scaleDown" target=model}} disabled={{not model.canScaleDown}}><i class="icon icon-minus icon-fw"/></button> <button class="btn btn-xs bg-primary" {{action "scaleDown" target=model}} disabled={{not model.canScaleDown}}><i class="icon icon-minus icon-fw"/></button>
<button style="margin-left:2px;" class="btn btn-xs bg-primary" {{action "scaleUp" target=model}} disabled={{not model.canScaleUp}}><i class="icon icon-plus icon-fw"/></button> <button style="margin-left:-5px;" class="btn btn-xs bg-primary" {{action "scaleUp" target=model}} disabled={{not model.canScaleUp}}><i class="icon icon-plus icon-fw"/></button>
</div> </div>
{{/if}} {{/if}}
</td> </td>

View File

@ -3,7 +3,7 @@
{{t 'servicePage.header' type=service.displayType name=service.displayName}} {{t 'servicePage.header' type=service.displayType name=service.displayName}}
</h1> </h1>
{{#if (and service.canHaveContainers (not service.isSelector))}} {{#if (and service.canHaveContainers (not service.isSelector))}}
<div class="pull-left mt-5"> <div class="pull-left mt-0">
{{info-multi-stats model=service largeTargetId="largeStats"}} {{info-multi-stats model=service largeTargetId="largeStats"}}
</div> </div>
{{/if}} {{/if}}
@ -52,7 +52,7 @@
</span> </span>
<div class="btn-group btn-group-xs p-0" style="vertical-align: middle;"> <div class="btn-group btn-group-xs p-0" style="vertical-align: middle;">
<button class="btn btn-xs bg-primary" {{action "scaleDown" target=service}} disabled={{not service.canScaleDown}}><i class="icon icon-minus icon-fw"/></button> <button class="btn btn-xs bg-primary" {{action "scaleDown" target=service}} disabled={{not service.canScaleDown}}><i class="icon icon-minus icon-fw"/></button>
<button style="margin-left:2px;" class="btn btn-xs bg-primary" {{action "scaleUp" target=service}} disabled={{not service.canScaleUp}}><i class="icon icon-plus icon-fw"/></button> <button style="margin-left: -5px;" class="btn btn-xs bg-primary" {{action "scaleUp" target=service}} disabled={{not service.canScaleUp}}><i class="icon icon-plus icon-fw"/></button>
</div> </div>
</div> </div>
{{/if}} {{/if}}

View File

@ -33,9 +33,19 @@
font-size: 1em; font-size: 1em;
max-width: 110px; max-width: 110px;
font-size: .85em; font-size: .85em;
}
}
.main-row td {
.badge-state {
@include tag;
text-transform: capitalize;
// Successful states are de-emphasized by using [text-]color instead of background-color
&.bg-success { &.bg-success {
padding: 0px 5px; background-color: lighten($success, 53);
color: $success;
border: solid lighten($success, 30) 1px;
} }
} }
} }

View File

@ -10,7 +10,7 @@ $table-nested-header : lighten($mid-grey, 32)!default;
$table-bg-accent : darken($light-grey, .5)!default; $table-bg-accent : darken($light-grey, .5)!default;
$table-bg-hover : lighten($info, 15)!default; $table-bg-hover : lighten($info, 15)!default;
$table-bg-active : $table-bg-hover!default; $table-bg-active : $table-bg-hover!default;
$table-bg-selected : lighten($info, 30)!default; $table-bg-selected : lighten($info, 32)!default;
$table-border-color : lighten($mid-grey, 30)!default; $table-border-color : lighten($mid-grey, 30)!default;
$table-body-separation : 25px; $table-body-separation : 25px;
$group-row-height : 50px; $group-row-height : 50px;
@ -206,6 +206,14 @@ TABLE {
background: $body-bg; background: $body-bg;
} }
tr.row-selected .btn-group.bg-default {
background: darken($bg-default, 7);
}
tr.row-selected .scale-arrow:before {
border-bottom-color: darken($bg-default, 7);
}
TABLE { TABLE {
> TBODY { > TBODY {
@include striped; @include striped;