2018-10-09 04:22:29 +00:00
|
|
|
<form onsubmit={{action "createOrUpdateKey" "update"}}>
|
2018-10-11 03:42:18 +00:00
|
|
|
<div class="box is-sideless is-fullwidth is-marginless is-paddingless">
|
2018-10-09 04:22:29 +00:00
|
|
|
<MessageError @model={{model}} @errorMessage={{error}} />
|
2018-08-16 17:48:24 +00:00
|
|
|
<NamespaceReminder @mode="edit" @noun="secret" />
|
2018-10-09 04:22:29 +00:00
|
|
|
<SecretEditDisplay
|
|
|
|
@showAdvancedMode={{showAdvancedMode}}
|
|
|
|
@codemirrorString={{codemirrorString}}
|
|
|
|
@secretData={{secretData}}
|
2018-10-15 14:40:54 +00:00
|
|
|
@isV2={{isV2}}
|
2018-10-16 21:08:31 +00:00
|
|
|
@canEditV2Secret={{canEditV2Secret}}
|
|
|
|
@model={{model}}
|
2018-10-09 04:22:29 +00:00
|
|
|
@editActions={{hash
|
|
|
|
codemirrorUpdated=(action "codemirrorUpdated")
|
|
|
|
formatJSON=(action "formatJSON")
|
|
|
|
handleKeyDown=(action "handleKeyDown")
|
|
|
|
handleChange=(action "handleChange")
|
|
|
|
deleteRow=(action "deleteRow")
|
|
|
|
addRow=(action "addRow")
|
|
|
|
}}
|
|
|
|
/>
|
2018-10-15 14:40:54 +00:00
|
|
|
</div>
|
2018-04-03 14:16:57 +00:00
|
|
|
<div class="field is-grouped is-grouped-split is-fullwidth box is-bottomless">
|
|
|
|
<div class="field is-grouped">
|
2018-10-09 04:22:29 +00:00
|
|
|
<div class="control">
|
|
|
|
<button
|
|
|
|
type="submit"
|
|
|
|
disabled={{buttonDisabled}}
|
|
|
|
class="button is-primary"
|
|
|
|
>
|
|
|
|
Save
|
|
|
|
</button>
|
|
|
|
</div>
|
2018-04-03 14:16:57 +00:00
|
|
|
<div class="control">
|
|
|
|
{{#secret-link
|
2018-10-09 04:22:29 +00:00
|
|
|
mode="show"
|
|
|
|
secret=model.id
|
2018-04-03 14:16:57 +00:00
|
|
|
class="button"
|
|
|
|
}}
|
|
|
|
Cancel
|
|
|
|
{{/secret-link}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|