mirror of https://github.com/rancher/ui.git
33 lines
982 B
Handlebars
33 lines
982 B
Handlebars
{{#if editing}}
|
|
<div class="clearfix">
|
|
<label class="acc-label pb-5">
|
|
{{#if isReuse}}
|
|
{{t 'formNamespace.label.reuse'}}
|
|
{{else}}
|
|
{{t 'formNamespace.label.create'}}
|
|
{{/if}}
|
|
{{field-required}}
|
|
</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>
|
|
{{else}}
|
|
<label class="acc-label pb-5">{{t 'formNamespace.label.reuse'}}</label>
|
|
<p class="mt-0">{{namespace.displayName}}</p>
|
|
{{/if}}
|