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" />
|
|
|
|
{{#unless showAdvancedMode}}
|
|
|
|
<div class="table info-table-row-header">
|
|
|
|
<div class="info-table-row thead">
|
|
|
|
<div class="th column is-one-quarter">
|
|
|
|
Key
|
|
|
|
</div>
|
|
|
|
<div class="th column">
|
|
|
|
Value
|
|
|
|
</div>
|
2018-04-03 14:16:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-08-16 17:48:24 +00:00
|
|
|
{{/unless}}
|
|
|
|
</div>
|
2018-10-09 04:22:29 +00:00
|
|
|
<SecretEditDisplay
|
|
|
|
@showAdvancedMode={{showAdvancedMode}}
|
|
|
|
@codemirrorString={{codemirrorString}}
|
|
|
|
@secretData={{secretData}}
|
|
|
|
@editActions={{hash
|
|
|
|
codemirrorUpdated=(action "codemirrorUpdated")
|
|
|
|
formatJSON=(action "formatJSON")
|
|
|
|
handleKeyDown=(action "handleKeyDown")
|
|
|
|
handleChange=(action "handleChange")
|
|
|
|
deleteRow=(action "deleteRow")
|
|
|
|
addRow=(action "addRow")
|
|
|
|
}}
|
|
|
|
/>
|
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>
|