mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 02:23:40 +08:00
1c87bb7fe9
1. Use `this.` instead of `{{action}}` where applicable 2. Use `{{fn}}` instead of `@actionParam` where applicable 3. Use non-`@` versions of class/type/tabindex/aria-controls/aria-expanded 4. Remove `btn` class (it's added automatically to all DButtons) 5. Remove `type="button"` (it's the default) 6. Use `concat-class` helper
27 lines
692 B
Handlebars
27 lines
692 B
Handlebars
<div class="user-fields">
|
|
<h2>{{i18n "admin.user_fields.title"}}</h2>
|
|
|
|
<p class="desc">{{i18n "admin.user_fields.help"}}</p>
|
|
|
|
{{#if this.model}}
|
|
{{#each this.sortedFields as |uf|}}
|
|
<AdminUserFieldItem
|
|
@userField={{uf}}
|
|
@fieldTypes={{this.fieldTypes}}
|
|
@firstField={{this.firstField}}
|
|
@lastField={{this.lastField}}
|
|
@destroyAction={{this.destroyField}}
|
|
@moveUpAction={{this.moveUp}}
|
|
@moveDownAction={{this.moveDown}}
|
|
/>
|
|
{{/each}}
|
|
{{/if}}
|
|
|
|
<DButton
|
|
@disabled={{this.createDisabled}}
|
|
@action={{this.createField}}
|
|
@label="admin.user_fields.create"
|
|
@icon="plus"
|
|
class="btn-primary"
|
|
/>
|
|
</div> |