2019-11-05 09:10:23 -05:00
|
|
|
{{#link-to 'adminApiKeys.index' class="go-back"}}
|
|
|
|
{{d-icon 'arrow-left'}}
|
|
|
|
{{i18n 'admin.api.all_api_keys'}}
|
|
|
|
{{/link-to}}
|
|
|
|
|
|
|
|
<div class="api-key">
|
2019-12-12 06:45:00 -05:00
|
|
|
{{#if model.id}}
|
|
|
|
{{#admin-form-row label="admin.api.key"}}
|
|
|
|
<div>{{model.key}}</div>
|
|
|
|
{{/admin-form-row}}
|
|
|
|
{{#admin-form-row}}
|
|
|
|
{{i18n "admin.api.not_shown_again"}}
|
|
|
|
{{/admin-form-row}}
|
|
|
|
{{#admin-form-row}}
|
|
|
|
{{d-button icon="angle-right" label="admin.api.continue" action=(action "continue") class="btn-primary"}}
|
|
|
|
{{/admin-form-row}}
|
|
|
|
{{else}}
|
|
|
|
{{#admin-form-row label="admin.api.description"}}
|
|
|
|
{{input value=model.description maxlength="255" placeholder=(i18n "admin.api.description_placeholder")}}
|
|
|
|
{{/admin-form-row}}
|
2019-11-05 09:10:23 -05:00
|
|
|
|
2019-12-12 06:45:00 -05:00
|
|
|
{{#admin-form-row label="admin.api.user_mode"}}
|
|
|
|
{{combo-box content=userModes value=userMode onSelect=(action "changeUserMode")}}
|
|
|
|
{{/admin-form-row}}
|
2019-11-05 09:10:23 -05:00
|
|
|
|
2019-12-12 06:45:00 -05:00
|
|
|
{{#if showUserSelector}}
|
|
|
|
{{#admin-form-row label="admin.api.user"}}
|
|
|
|
{{user-selector single="true"
|
|
|
|
usernames=model.username
|
|
|
|
placeholderKey="admin.api.user_placeholder"
|
|
|
|
}}
|
|
|
|
{{/admin-form-row}}
|
|
|
|
{{/if}}
|
|
|
|
{{#admin-form-row}}
|
|
|
|
{{d-button icon="check" label="admin.api.save" action=(action "save") class="btn-primary"}}
|
2019-11-05 09:10:23 -05:00
|
|
|
{{/admin-form-row}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|