discourse/app/assets/javascripts/admin/addon/templates/customize-form-templates-in...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
952 B
Handlebars
Raw Normal View History

2023-02-08 14:21:39 -05:00
<div class="form-templates">
<FormTemplate::InfoHeader />
{{#if this.model}}
<table class="form-templates__table grid">
2023-02-08 14:21:39 -05:00
<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>
2023-02-08 14:21:39 -05: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
@class="btn-primary"
@label="admin.form_templates.new_template"
@title="admin.form_templates.new_template"
@icon="plus"
@action={{this.newTemplate}}
/>
</div>