2023-02-09 03:21:39 +08:00
|
|
|
<div class="form-templates">
|
|
|
|
<FormTemplate::InfoHeader />
|
|
|
|
|
|
|
|
{{#if this.model}}
|
2023-03-02 03:07:13 +08:00
|
|
|
<table class="form-templates__table grid">
|
2023-02-09 03:21:39 +08:00
|
|
|
<thead>
|
|
|
|
<th class="col heading">
|
|
|
|
{{i18n "admin.form_templates.list_table.headings.name"}}
|
|
|
|
</th>
|
2023-03-02 04:37:14 +08:00
|
|
|
<th class="col heading">
|
|
|
|
{{i18n "admin.form_templates.list_table.headings.active_categories"}}
|
|
|
|
</th>
|
2023-02-09 03:21:39 +08:00
|
|
|
<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}}
|
2023-08-31 17:49:35 +08:00
|
|
|
class="btn-primary"
|
2023-02-09 03:21:39 +08:00
|
|
|
/>
|
|
|
|
</div>
|