2018-12-17 09:28:29 -05:00
|
|
|
<div class="field">{{i18n name}}</div>
|
|
|
|
<div class="value">
|
|
|
|
{{#if editing}}
|
2022-06-30 06:30:50 -04:00
|
|
|
<TextField @value={{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">
|
|
|
|
<span>{{value}}</span>
|
|
|
|
</a>
|
2018-12-17 09:28:29 -05:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="controls">
|
|
|
|
{{#if 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>
|