<section class="header clearfix">
  {{#if isView}}
    <div class="right-buttons pull-right">
      {{badge-state model=model}}
      {{action-menu model=model showPrimary=false classNames="ml-10 inline-block" size="sm"}}
    </div>
  {{/if}}

  <h1>{{title}}</h1>
</section>

{{#if isView}}
  {{#if model.description}}
    {{banner-message color='bg-secondary mb-0 mt-10' message=(linkify model.description)}}
  {{/if}}
{{else}}
  {{form-name-description
    nameDisabled=isEdit
    model=primaryResource
    nameRequired=(not isEdit)
    namePlaceholder="newSecret.name.placeholder"
    descriptionPlaceholder="newSecret.description.placeholder"
  }}
{{/if}}

{{optionally-namespaced isClone=isClone namespaceErrors=namespaceErrors scope=scope mode=mode namespace=namespace model=model}}

<div class="box mt-10">
  <label class="acc-label">{{t 'newSecret.values.label'}}</label>
  {{form-key-value
    allowEmptyValue=true
    initialMap=primaryResource.data
    addActionLabel="newSecret.addActionLabel"
    addInitialEmptyRow=true
    base64Value=true
    concealValue=true
    editing=notView
    changed=(action "updateData")
  }}
</div>

{{#unless isView}}
  {{top-errors errors=errors}}
  {{save-cancel editing=true save="save" cancel="viewEditCancel"}}
{{/unless}}

<section class="header clearfix">
  {{#if isView}}
    <div class="right-buttons pull-right">
      {{badge-state model=model}}
      {{action-menu model=model showPrimary=false classNames="ml-10 inline-block" size="sm"}}
    </div>
  {{/if}}

  <h1>{{title}}</h1>
</section>

{{#if isView}}
  {{#if model.description}}
    {{banner-message color='bg-secondary mb-0 mt-10' message=(linkify model.description)}}
  {{/if}}
{{else}}
  {{form-name-description
    nameDisabled=isEdit
    model=primaryResource
    nameRequired=(not isEdit)
    namePlaceholder="newSecret.name.placeholder"
    descriptionPlaceholder="newSecret.description.placeholder"
  }}
{{/if}}

{{optionally-namespaced namespaceErrors=namespaceErrors scope=scope mode=mode namespace=namespace model=model}}

<div class="box mt-10">
  <label class="acc-label">{{t 'newSecret.values.label'}}</label>
  {{form-key-value
    allowEmptyValue=true
    initialMap=primaryResource.data
    addActionLabel="newSecret.addActionLabel"
    addInitialEmptyRow=true
    base64Value=true
    concealValue=true
    editing=notView
    changed=(action "updateData")
  }}
</div>

{{#unless isView}}
  {{top-errors errors=errors}}
  {{save-cancel editing=true save="save" cancel="viewEditCancel"}}
{{/unless}}

Allow secrets to be cloned into different namespaces
Allow secrets to be cloned into different namespaces

rancher/rancher#14350
