2022-07-05 13:41:31 -04:00
|
|
|
<div class="field">{{i18n this.name}}</div>
|
2018-12-17 09:28:29 -05:00
|
|
|
<div class="value">
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.editing}}
|
|
|
|
<TextField @value={{this.buffer}} @autofocus="autofocus" @autocomplete="off" />
|
2018-12-17 09:28:29 -05:00
|
|
|
{{else}}
|
2020-02-11 09:55:16 -05:00
|
|
|
<a href {{action "edit"}} class="inline-editable-field">
|
2022-07-05 13:41:31 -04:00
|
|
|
<span>{{this.value}}</span>
|
2020-02-11 09:55:16 -05:00
|
|
|
</a>
|
2018-12-17 09:28:29 -05:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="controls">
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.editing}}
|
2022-06-30 06:30:50 -04:00
|
|
|
<DButton @class="btn-default" @action={{action "save"}} @label="admin.user_fields.save" />
|
2018-12-17 09:28:29 -05:00
|
|
|
<a href {{action "edit"}}>{{i18n "cancel"}}</a>
|
|
|
|
{{else}}
|
2022-06-30 06:30:50 -04:00
|
|
|
<DButton @class="btn-default" @action={{action "edit"}} @icon="pencil-alt" />
|
2018-12-17 09:28:29 -05:00
|
|
|
{{/if}}
|
|
|
|
</div>
|