mirror of https://github.com/rancher/ui.git
27 lines
770 B
Handlebars
27 lines
770 B
Handlebars
<div class="clearfix">
|
|
<label class="acc-label pb-5">
|
|
{{#if isReuse}}
|
|
{{t 'formNamespace.label.reuse'}}
|
|
{{else}}
|
|
{{t 'formNamespace.label.create'}}{{field-required}}
|
|
{{/if}}
|
|
</label>
|
|
<div class="pull-right text-small">
|
|
<a role="button" class="btn bg-transparent p-0" {{action "toggle"}}>{{t (if isReuse 'formNamespace.toggle.create' 'formNamespace.toggle.reuse')}}</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
{{#if isReuse}}
|
|
{{new-select
|
|
content=choices
|
|
prompt=(t 'formNamespace.reuse.prompt')
|
|
optionLabelPath="displayName"
|
|
optionValuePath="id"
|
|
value=reuseNamespaceId
|
|
}}
|
|
{{else}}
|
|
{{input classNames="new-name" placeholder=(t 'formNamespace.create.placeholder') value=createNamespace.name}}
|
|
{{/if}}
|
|
</div>
|