Create {{uppercase policyType}} policy

{{message-error model=model}}
{{input id="fileUploadToggle" type="checkbox" name="fileUploadToggle" class="switch is-rounded is-success is-small" checked=showFileUpload change=(toggle-action "showFileUpload" this) data-test-policy-edit-toggle=true }}
{{#if showFileUpload}} {{text-file inputOnly=true index="" file=file onChange=(action "setPolicyFromFile") }} {{else}} {{ivy-codemirror value=model.policy id="policy" valueUpdated=(action (mut model.policy)) options=(hash lineNumbers=true tabSize=2 mode='ruby' theme='hashi' extraKeys=(hash Shift-Enter=(action "savePolicy" model) ) ) }}

You can use Alt+Tab (Option+Tab on MacOS) in the code editor to skip to the next field

{{/if}}
{{#each model.additionalAttrs as |attr|}} {{form-field data-test-field attr=attr model=model}} {{/each}}
{{#link-to "vault.cluster.policies" replace=true class="button" }} Cancel {{/link-to}}