2018-12-17 22:28:29 +08:00
|
|
|
<div class='field'>{{i18n name}}</div>
|
|
|
|
<div class='value'>
|
|
|
|
{{#if editing}}
|
2019-10-03 07:01:55 +08:00
|
|
|
{{text-field value=buffer autofocus="autofocus" autocomplete="discourse"}}
|
2018-12-17 22:28:29 +08:00
|
|
|
{{else}}
|
2020-02-11 22:55:16 +08:00
|
|
|
<a href {{action "edit"}} class="inline-editable-field">
|
|
|
|
<span>{{value}}</span>
|
|
|
|
</a>
|
2018-12-17 22:28:29 +08:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class='controls'>
|
|
|
|
{{#if editing}}
|
|
|
|
{{d-button class="btn-default" action=(action "save") label="admin.user_fields.save"}}
|
|
|
|
<a href {{action "edit"}}>{{i18n 'cancel'}}</a>
|
|
|
|
{{else}}
|
2019-01-22 19:02:02 +08:00
|
|
|
{{d-button class="btn-default" action=(action "edit") icon="pencil-alt"}}
|
2018-12-17 22:28:29 +08:00
|
|
|
{{/if}}
|
|
|
|
</div>
|