mirror of
https://github.com/discourse/discourse.git
synced 2025-02-26 23:45:42 +08:00
22 lines
802 B
Handlebars
22 lines
802 B
Handlebars
<div class="user-fields">
|
|
<h2>{{i18n "admin.user_fields.title"}}</h2>
|
|
|
|
<p class="desc">{{i18n "admin.user_fields.help"}}</p>
|
|
|
|
{{#if model}}
|
|
{{#each sortedFields as |uf|}}
|
|
<AdminUserFieldItem @userField={{uf}}
|
|
@fieldTypes={{fieldTypes}}
|
|
@firstField={{sortedFields.firstObject}}
|
|
@lastField={{sortedFields.lastObject}}
|
|
@destroyAction={{action "destroy"}}
|
|
@moveUpAction={{action "moveUp"}}
|
|
@moveDownAction={{action "moveDown"}}
|
|
/>
|
|
{{/each}}
|
|
{{/if}}
|
|
|
|
<DButton @disabled={{createDisabled}} @class="btn-primary" @action={{action "createField"}} @label="admin.user_fields.create" @icon="plus" />
|
|
|
|
</div>
|