mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 02:54:06 +08:00
1c3cbbe883
Same issue as: 918a0ea3
off is ignored in chrome per: https://bugs.chromium.org/p/chromium/issues/detail?id=587466
17 lines
519 B
Handlebars
17 lines
519 B
Handlebars
<div class='field'>{{i18n name}}</div>
|
|
<div class='value'>
|
|
{{#if editing}}
|
|
{{text-field value=buffer autofocus="autofocus" autocomplete="discourse"}}
|
|
{{else}}
|
|
<span {{action "edit"}}>{{value}}</span>
|
|
{{/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}}
|
|
{{d-button class="btn-default" action=(action "edit") icon="pencil-alt"}}
|
|
{{/if}}
|
|
</div>
|