discourse/app/assets/javascripts/admin/templates/user-fields.hbs
Robin Ward ac2f5cbdab FIX: Admin user fields weren't showing errors
Also updated it to remove deprecations and item controller
2015-07-10 12:31:30 -04:00

17 lines
472 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}}
<button {{bind-attr disabled="createDisabled"}} class='btn btn-primary' {{action "createField"}}>
{{fa-icon "plus"}}
{{i18n 'admin.user_fields.create'}}
</button>
</div>