{{#if (eq @mode "create")}}

{{#if (get this.validationMessages "path")}} {{/if}} {{#if @modelForData.isFolder}}

The secret path may not end in /

{{/if}} {{#if this.pathWhiteSpaceWarning}}
{{/if}}
{{#if @showAdvancedMode}}
{{else}}
{{#each @secretData as |secret index|}}
{{#if (eq @secretData.length (inc index))}} {{else}} {{/if}}
{{#if this.validationMessages.key}} {{/if}} {{/each}}
{{/if}} {{! must have UPDATE permissions to add secret metadata. Create only will not work }} {{#if (and @isV2 @canUpdateSecretMetadata)}} {{#if this.showMetadata}} {{/if}} {{/if}}
Cancel
{{/if}} {{#if (eq @mode "edit")}} {{! no metadata option because metadata is version agnostic }}
{{#if (eq @canReadSecretData false)}} {{/if}} {{#if this.isCreateNewVersionFromOldVersion}}
{{/if}} {{#if @showAdvancedMode}}
{{else}}
{{#each @secretData as |secret index|}}
{{#if (eq @secretData.length (inc index))}} {{else}} {{/if}}
{{/each}}
{{/if}}
Cancel
{{/if}}