{{#if editing}}
  <div class="clearfix">
    <label class="acc-label pb-5 {{unless allowCreate "pt-5"}}">
      {{t (if isReuse reuseLabel createLabel)}}
      {{field-required}}
    </label>
    {{#if allowCreate}}
      <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>
    {{/if}}
  </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}}
