mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 15:43:43 +08:00
a914d3230b
Followup to 7d8974d02f
Co-authored-by: David Taylor <david@taylorhq.com>
26 lines
649 B
Handlebars
26 lines
649 B
Handlebars
<div class="field">{{i18n this.name}}</div>
|
|
<div class="value">
|
|
{{#if this.editing}}
|
|
<TextField
|
|
@value={{this.buffer}}
|
|
@autofocus="autofocus"
|
|
@autocomplete="off"
|
|
/>
|
|
{{else}}
|
|
<a href {{on "click" this.edit}} class="inline-editable-field">
|
|
<span>{{this.value}}</span>
|
|
</a>
|
|
{{/if}}
|
|
</div>
|
|
<div class="controls">
|
|
{{#if this.editing}}
|
|
<DButton
|
|
class="btn-default"
|
|
@action={{this.save}}
|
|
@label="admin.user_fields.save"
|
|
/>
|
|
<a href {{on "click" this.edit}}>{{i18n "cancel"}}</a>
|
|
{{else}}
|
|
<DButton class="btn-default" @action={{this.edit}} @icon="pencil" />
|
|
{{/if}}
|
|
</div> |