discourse/app/assets/javascripts/admin/addon/templates/customize-form-templates-index.hbs
Jarek Radosz 1c87bb7fe9
DEV: Update DButton uses (#23333)
1. Use `this.` instead of `{{action}}` where applicable
2. Use `{{fn}}` instead of `@actionParam` where applicable
3. Use non-`@` versions of class/type/tabindex/aria-controls/aria-expanded
4. Remove `btn` class (it's added automatically to all DButtons)
5. Remove `type="button"` (it's the default)
6. Use `concat-class` helper
2023-08-31 11:49:35 +02:00

35 lines
951 B
Handlebars

<div class="form-templates">
<FormTemplate::InfoHeader />
{{#if this.model}}
<table class="form-templates__table grid">
<thead>
<th class="col heading">
{{i18n "admin.form_templates.list_table.headings.name"}}
</th>
<th class="col heading">
{{i18n "admin.form_templates.list_table.headings.active_categories"}}
</th>
<th class="col heading sr-only">
{{i18n "admin.form_templates.list_table.headings.actions"}}
</th>
</thead>
<tbody>
{{#each this.model as |template|}}
<FormTemplate::RowItem
@template={{template}}
@refreshModel={{this.reload}}
/>
{{/each}}
</tbody>
</table>
{{/if}}
<DButton
@label="admin.form_templates.new_template"
@title="admin.form_templates.new_template"
@icon="plus"
@action={{this.newTemplate}}
class="btn-primary"
/>
</div>