mirror of https://github.com/rancher/ui.git
Merge pull request #2173 from lvuch/lv-0820
cleanup dropdown, input group on form val
This commit is contained in:
commit
fc887051a1
|
|
@ -30,7 +30,7 @@
|
|||
{{/if}}
|
||||
</td>
|
||||
<td data-title="{{dt.default}}">
|
||||
{{#if obj.isDefault}}<i class="icon icon-star-fill ml-20"/>{{/if}}
|
||||
{{#if obj.isDefault}}<i class="icon icon-star-fill text-warning ml-20"/>{{/if}}
|
||||
</td>
|
||||
<td data-title="{{dt.created}}">
|
||||
{{date-calendar obj.created}}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
{{obj.displayProvisioner}}
|
||||
</td>
|
||||
<td data-title="{{dt.default}}">
|
||||
{{#if obj.isDefault}}<i class="icon icon-star-fill ml-20"/>{{/if}}
|
||||
{{#if obj.isDefault}}<i class="icon icon-star-fill text-warning ml-20"/>{{/if}}
|
||||
</td>
|
||||
<td data-title="{{dt.actions}}" class="actions">
|
||||
{{action-menu model=obj}}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<h1>{{t 'editHost.title'}}</h1>
|
||||
</section>
|
||||
<section class="horizontal-form container-fluid">
|
||||
<div class="row inline-form">
|
||||
<div class="input-group">
|
||||
<div class="col span-2 col-inline">
|
||||
<label>{{t 'editHost.hostname.label'}}</label>
|
||||
</div>
|
||||
|
|
@ -42,4 +42,4 @@
|
|||
</section>
|
||||
|
||||
{{top-errors errors=errors}}
|
||||
{{save-cancel editing=editing save="save" cancel="cancel"}}
|
||||
{{save-cancel editing=editing save="save" cancel="cancel"}}
|
||||
|
|
@ -10,36 +10,37 @@
|
|||
<a class="{{if twoLine 'two-line'}} text-white">
|
||||
{{#if (eq pageScope "project")}}
|
||||
<div class="clip">
|
||||
<span>{{project.cluster.displayName}}</span>
|
||||
<i class="icon icon-cluster icon-fw"></i>
|
||||
{{project.cluster.displayName}}
|
||||
</div>
|
||||
<div class="pl-15 clip text-muted">
|
||||
<span>{{project.displayName}}</span>
|
||||
<i class="{{project.icon}} project-icon icon-fw"></i>
|
||||
{{project.displayName}}
|
||||
</div>
|
||||
{{else if (eq pageScope "cluster")}}
|
||||
<div class="clip">
|
||||
<span>{{cluster.displayName}}</span>
|
||||
<i class="icon icon-cluster icon-fw"></i>
|
||||
{{cluster.displayName}}
|
||||
</div>
|
||||
{{else if (eq pageScope "clusters")}}
|
||||
<div class="clip">
|
||||
{{t 'nav.environment.manage'}}
|
||||
<span>{{t 'nav.environment.manage'}}</span>
|
||||
</div>
|
||||
{{else if (eq pageScope "global")}}
|
||||
<div class="clip">
|
||||
<span>{{t 'nav.admin.tab'}}</span>
|
||||
<i class="icon icon-globe icon-fw"></i>
|
||||
{{t 'nav.admin.tab'}}
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="clip">
|
||||
<span>{{pageScope}}</span>
|
||||
<i class="icon icon-question icon-fw"></i>
|
||||
{{pageScope}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<i class="icon icon-chevron-down chevron"></i>
|
||||
<span class="sr-only">{{t 'nav.srToggleDropdown'}}</span>
|
||||
<i class="icon icon-chevron-down chevron"></i>
|
||||
|
||||
</a>
|
||||
|
||||
{{/dd.trigger}}
|
||||
|
|
@ -50,8 +51,8 @@
|
|||
|
||||
<li class="header {{if (eq pageScope "global") 'active selected' 'inactive'}}">
|
||||
<a href="{{href-to "global-admin"}}">
|
||||
<i class="icon icon-globe icon-fw"></i>
|
||||
{{t 'nav.admin.tab'}}
|
||||
<span>{{t 'nav.admin.tab'}}</span>
|
||||
<i class="icon icon-globe icon-fw"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li role="presentation" class="divider"></li>
|
||||
|
|
@ -64,8 +65,8 @@
|
|||
|
||||
<li class="header {{if entry.active (if (eq pageScope 'cluster') 'active selected') 'inactive'}}">
|
||||
{{#link-to 'authenticated.cluster' entry.cluster.id}}
|
||||
<span>{{t 'generic.cluster'}}: {{entry.cluster.displayName}}</span>
|
||||
<i class="icon icon-cluster icon-fw"></i>
|
||||
{{t 'generic.cluster'}}: {{entry.cluster.displayName}}
|
||||
{{/link-to}}
|
||||
</li>
|
||||
|
||||
|
|
@ -75,9 +76,8 @@
|
|||
|
||||
<li class="{{if (and (eq pageScope "project") p.active) 'active selected' (unless entry.active 'inactive')}} subitem text-muted">
|
||||
{{#link-to 'authenticated.project' p.id class="clip project-link"}}
|
||||
<span>{{p.displayName}}</span>
|
||||
<i class="icon {{p.icon}} icon-fw"></i>
|
||||
|
||||
{{p.displayName}}
|
||||
{{/link-to}}
|
||||
</li>
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,8 @@
|
|||
qp=subitem.qp
|
||||
activeParent="LI"
|
||||
}}
|
||||
<i class="{{subitem.icon}}"/> {{maybe-t subitem.localizedLabel subitem.label}}
|
||||
<span>{{maybe-t subitem.localizedLabel subitem.label}}</span>
|
||||
<i class="{{subitem.icon}}"/>
|
||||
{{/link-to-as-attrs}}
|
||||
</li>
|
||||
{{/if}}
|
||||
|
|
@ -59,7 +60,8 @@
|
|||
{{else}}
|
||||
{{! Just a label }}
|
||||
<li class="dropdown-header">
|
||||
<i class="{{subitem.icon}}"/> {{maybe-t subitem.localizedLabel subitem.label}}
|
||||
<span>{{maybe-t subitem.localizedLabel subitem.label}}</span>
|
||||
<i class="{{subitem.icon}}"/>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
|
@ -131,12 +133,24 @@
|
|||
{{/if}}
|
||||
|
||||
<li role="separator" class="divider"></li>
|
||||
<li>{{#link-to "authenticated.apikeys"}}{{t 'nav.api.link'}} <i class="icon icon-key icon-fw"/>{{/link-to}}</li>
|
||||
<li>{{#link-to "nodes.node-templates"}}{{t 'nav.nodeTemplates.link'}} <i class="icon icon-host icon-fw"/>{{/link-to}}</li>
|
||||
<li>{{#link-to "authenticated.apikeys"}}
|
||||
<span>{{t 'nav.api.link'}}</span>
|
||||
<i class="icon icon-key icon-fw"/>{{/link-to}}
|
||||
</li>
|
||||
<li>{{#link-to "nodes.node-templates"}}
|
||||
<span>{{t 'nav.nodeTemplates.link'}}</span>
|
||||
<i class="icon icon-host icon-fw"/>{{/link-to}}
|
||||
</li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li>{{#link-to "authenticated.prefs"}}{{t 'nav.userPreferences.link'}} <i class="icon icon-gear icon-fw"/>{{/link-to}}</li>
|
||||
<li>{{#link-to "authenticated.prefs"}}
|
||||
<span>{{t 'nav.userPreferences.link'}}</span>
|
||||
<i class="icon icon-gear icon-fw"/>{{/link-to}}
|
||||
</li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li>{{#link-to "logout" class="user-logout"}}{{t 'nav.user.logout'}} <i class="icon icon-logout icon-fw"/>{{/link-to}}</li>
|
||||
<li>{{#link-to "logout" class="user-logout"}}
|
||||
<span>{{t 'nav.user.logout'}}</span>
|
||||
<i class="icon icon-logout icon-fw"/>{{/link-to}}
|
||||
</li>
|
||||
{{/dd.content}}
|
||||
{{!-- </ul> --}}
|
||||
{{/hover-dropdown}}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
.alert {
|
||||
border: solid 2px $border;
|
||||
padding: 40px;
|
||||
|
||||
.alert-header {
|
||||
|
|
|
|||
|
|
@ -169,6 +169,8 @@ fieldset[disabled] .btn {
|
|||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
padding: 0;
|
||||
|
||||
|
||||
.btn:first-child {
|
||||
border-radius: 2px 0 0 2px;
|
||||
|
|
|
|||
|
|
@ -64,7 +64,9 @@ $ember-basic-dropdown-content-z-index: 1500;
|
|||
|
||||
// Links within the dropdown menu
|
||||
> li > a {
|
||||
display: block;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 6px 12px;
|
||||
clear: both;
|
||||
font-weight: normal;
|
||||
|
|
@ -73,6 +75,10 @@ $ember-basic-dropdown-content-z-index: 1500;
|
|||
cursor: pointer;
|
||||
@extend .clip;
|
||||
|
||||
.icon {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
// Hover/Focus state
|
||||
&:hover,
|
||||
&:focus {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
text-align : center;
|
||||
overflow : hidden;
|
||||
white-space : nowrap;
|
||||
@extend .pt-10;
|
||||
@extend .pb-10;
|
||||
|
||||
& > span {
|
||||
position : relative;
|
||||
|
|
|
|||
|
|
@ -179,11 +179,11 @@ ol > li::before {
|
|||
content: counter(li);
|
||||
counter-increment: li;
|
||||
position: absolute;
|
||||
top: calc(50% - 20px);
|
||||
left: -20px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
// top: calc(50% - 20px);
|
||||
left: -14.5px;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
line-height: 26px;
|
||||
margin-right: 8px;
|
||||
border-radius: 50%;
|
||||
text-align: center;
|
||||
|
|
|
|||
|
|
@ -1,30 +1,34 @@
|
|||
|
||||
<label class="acc-label block">{{t valueLabel}}</label>
|
||||
{{#if ary.length}}
|
||||
<table class="table fixed no-lines mb-10">
|
||||
{{#each ary as |row|}}
|
||||
<tr>
|
||||
<td class="pb-10" data-title="{{t valueLabel}}">
|
||||
{{#if hasBlock}}
|
||||
{{yield this row}}
|
||||
{{else if editing}}
|
||||
{{input-paste pasted="pastedValues" class="form-control input-sm value" type="text" value=row.value placeholder=valuePlaceholder}}
|
||||
{{else}}
|
||||
{{row.value}}
|
||||
{{/if}}
|
||||
</td>
|
||||
{{#if editing}}
|
||||
<td width="30" class="pb-10 text-right">
|
||||
<button class="btn bg-primary btn-sm" {{action "remove" row}}><i class="icon icon-minus"/><span class="sr-only">{{t 'generic.remove'}}</span></button>
|
||||
</td>
|
||||
{{/if}}
|
||||
</tr>
|
||||
{{/each}}
|
||||
</table>
|
||||
|
||||
|
||||
{{#each ary as |row|}}
|
||||
<div class="input-group mb-10">
|
||||
<span data-title="{{t valueLabel}}">
|
||||
{{#if hasBlock}}
|
||||
{{yield this row}}
|
||||
{{else if editing}}
|
||||
{{input-paste pasted="pastedValues" class="form-control input-sm value" type="text" value=row.value placeholder=valuePlaceholder}}
|
||||
{{else}}
|
||||
{{row.value}}
|
||||
{{/if}}
|
||||
</span>
|
||||
{{#if editing}}
|
||||
<span class="input-group-btn">
|
||||
<button class="btn bg-primary btn-sm" {{action "remove" row}}><i class="icon icon-minus"/><span class="sr-only">{{t 'generic.remove'}}</span></button>
|
||||
</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
|
||||
{{else if (not editing)}}
|
||||
<tr><td class="text-center text-muted">{{t noDataLabel}}</td></tr>
|
||||
<p class="text-center text-muted">{{t noDataLabel}}</p>
|
||||
{{/if}}
|
||||
{{#if editing}}
|
||||
<button class="btn bg-link icon-btn" {{action "add"}}><span class="darken"><i class="icon icon-plus text-small"/></span> <span>{{t addActionLabel}}</span></button>
|
||||
|
||||
<button class="btn bg-link icon-btn mt-10" {{action "add"}}><span class="darken"><i class="icon icon-plus text-small"/></span> <span>{{t addActionLabel}}</span></button>
|
||||
|
||||
{{#if ary.length}}
|
||||
{{#if showProTip}}
|
||||
|
|
@ -33,4 +37,4 @@
|
|||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
|
@ -33,23 +33,29 @@
|
|||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if rightActions}}
|
||||
<div class="pull-right pl-20">
|
||||
{{yield this 'right-actions'}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if search}}
|
||||
{{#ember-wormhole to=searchToWormhole renderInPlace=(not searchToWormhole)}}
|
||||
<div class="{{unless searchToWormhole 'pull-right'}} search-group input-group">
|
||||
{{input value=searchText aria-title=(t 'generic.search') type="search" class="input-sm pull-right" placeholder=(t 'generic.search')}}
|
||||
{{#if searchText}}
|
||||
<span class="input-group-btn">
|
||||
<button class="btn bg-transparent text-info pl-10 pr-10" {{action 'clearSearch'}}><i class="icon icon-close"/></button>
|
||||
</span>
|
||||
{{/if}}
|
||||
|
||||
<div class="pull-right">
|
||||
{{#if search}}
|
||||
<div class="vertical-middle">
|
||||
{{#ember-wormhole to=searchToWormhole renderInPlace=(not searchToWormhole)}}
|
||||
<div class="{{unless searchToWormhole 'pull-right'}} search-group input-group">
|
||||
{{input value=searchText aria-title=(t 'generic.search') type="search" class="input-sm pull-right" placeholder=(t 'generic.search')}}
|
||||
{{#if searchText}}
|
||||
<span class="input-group-btn">
|
||||
<button class="btn bg-transparent text-info pl-10 pr-10" {{action 'clearSearch'}}><i class="icon icon-close"/></button>
|
||||
</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/ember-wormhole}}
|
||||
</div>
|
||||
{{/ember-wormhole}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if rightActions}}
|
||||
<div class="vertical-middle pl-20">
|
||||
{{yield this 'right-actions'}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
|
|
|
|||
|
|
@ -1794,8 +1794,8 @@ catalogSettings:
|
|||
help-name: Unique name
|
||||
help-repo: 'Repository URL :'
|
||||
help-branch: "<i>Optional</i> : If using a GIT based catalog, a branch name is also required"
|
||||
help-git: "GIT based catalog URL, <i class='text-lowercase'>e.g. https://github.com/{appName}/charts.git</i>"
|
||||
help-chart: 'Helm Charts server URL, <i>e.g. https://kubernetes-charts.storage.googleapis.com/ (see <a href="https://docs.helm.sh/developing_charts/#hosting-chart-repositories" target="_blank" rel="nofollow noopener noreferrer">Hosting Chart Repositories</a> for specifics)</i>'
|
||||
help-git: "GIT based catalog URL, <em class='text-lowercase'>e.g. https://github.com/{appName}/charts.git</em>"
|
||||
help-chart: 'Helm Charts server URL, <em>e.g. https://kubernetes-charts.storage.googleapis.com/ (see <a href="https://docs.helm.sh/developing_charts/#hosting-chart-repositories" target="_blank" rel="nofollow noopener noreferrer">Hosting Chart Repositories</a> for specifics)</em>'
|
||||
addActionLabel: Add Catalog
|
||||
noMatch: No catalogs match the current search.
|
||||
noData: There are no custom catalogs defined.
|
||||
|
|
|
|||
11
yarn.lock
11
yarn.lock
|
|
@ -2090,6 +2090,10 @@ commander@2.9.0:
|
|||
dependencies:
|
||||
graceful-readlink ">= 1.0.0"
|
||||
|
||||
commander@^2.10.0:
|
||||
version "2.17.1"
|
||||
resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf"
|
||||
|
||||
commander@^2.5.0, commander@^2.6.0, commander@^2.9.0:
|
||||
version "2.15.1"
|
||||
resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f"
|
||||
|
|
@ -2578,6 +2582,13 @@ domain-browser@~1.1.0:
|
|||
version "1.1.7"
|
||||
resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.1.7.tgz#867aa4b093faa05f1de08c06f4d7b21fdf8698bc"
|
||||
|
||||
dot-object@^1.7.0:
|
||||
version "1.7.0"
|
||||
resolved "https://registry.yarnpkg.com/dot-object/-/dot-object-1.7.0.tgz#3b8ecda78b0f2aa52b8871c180fe1b3e09926a41"
|
||||
dependencies:
|
||||
commander "^2.10.0"
|
||||
glob "^7.1.2"
|
||||
|
||||
dot-prop@^4.1.0:
|
||||
version "4.2.0"
|
||||
resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.0.tgz#1f19e0c2e1aa0e32797c49799f2837ac6af69c57"
|
||||
|
|
|
|||
Loading…
Reference in New Issue