discourse/app/assets/javascripts/admin/templates/user-fields.hbs

19 lines
475 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 model as |uf|}}
{{admin-user-field-item userField=uf fieldTypes=fieldTypes destroyAction="destroy"}}
{{/each}}
{{/if}}
{{d-button disabled=createDisabled
class="btn-primary"
action="createField"
label="admin.user_fields.create"
icon="plus"}}
</div>