discourse/app/assets/javascripts/admin/addon/templates/user-fields.hbs
Peter Wagenet 371bbadb92
No implicit this codemod (#17235)
* Run no-implicit-this codemod for app templates
* Run tagless-ember-components-codemod for plugins
* Turn on no-implicit-this lint
2022-07-05 19:41:31 +02:00

22 lines
832 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.sortedFields.firstObject}}
@lastField={{this.sortedFields.lastObject}}
@destroyAction={{action "destroy"}}
@moveUpAction={{action "moveUp"}}
@moveDownAction={{action "moveDown"}}
/>
{{/each}}
{{/if}}
<DButton @disabled={{this.createDisabled}} @class="btn-primary" @action={{action "createField"}} @label="admin.user_fields.create" @icon="plus" />
</div>