mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 02:36:18 +08:00
1c87bb7fe9
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
35 lines
951 B
Handlebars
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> |