mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 17:33:44 +08:00
371bbadb92
* Run no-implicit-this codemod for app templates * Run tagless-ember-components-codemod for plugins * Turn on no-implicit-this lint
19 lines
606 B
Handlebars
19 lines
606 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 {{action "edit"}} class="inline-editable-field">
|
|
<span>{{this.value}}</span>
|
|
</a>
|
|
{{/if}}
|
|
</div>
|
|
<div class="controls">
|
|
{{#if this.editing}}
|
|
<DButton @class="btn-default" @action={{action "save"}} @label="admin.user_fields.save" />
|
|
<a href {{action "edit"}}>{{i18n "cancel"}}</a>
|
|
{{else}}
|
|
<DButton @class="btn-default" @action={{action "edit"}} @icon="pencil-alt" />
|
|
{{/if}}
|
|
</div>
|