2018-12-17 09:28:29 -05:00
|
|
|
<div class='field'>{{i18n name}}</div>
|
|
|
|
<div class='value'>
|
|
|
|
{{#if editing}}
|
2019-10-02 19:01:55 -04:00
|
|
|
{{text-field value=buffer autofocus="autofocus" autocomplete="discourse"}}
|
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}}
|
|
|
|
{{d-button class="btn-default" action=(action "save") label="admin.user_fields.save"}}
|
|
|
|
<a href {{action "edit"}}>{{i18n 'cancel'}}</a>
|
|
|
|
{{else}}
|
2019-01-22 06:02:02 -05:00
|
|
|
{{d-button class="btn-default" action=(action "edit") icon="pencil-alt"}}
|
2018-12-17 09:28:29 -05:00
|
|
|
{{/if}}
|
|
|
|
</div>
|