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