mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 20:03:44 +08:00
408de686bb
This change replaces the admin form for adding and editing custom user fields with a new FormKit implementation.
29 lines
790 B
Handlebars
29 lines
790 B
Handlebars
<div class="admin-config-page__main-area">
|
|
<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>
|
|
</div> |