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

36 lines
1018 B
Handlebars

<tr class="admin-list-item">
<td class="col first">{{@template.name}}</td>
<td class="col categories">
{{#each this.activeCategories as |category|}}
{{category-link category}}
{{/each}}
</td>
<td class="col action">
<DButton
@title="admin.form_templates.list_table.actions.view"
@icon="far-eye"
@action={{fn (mut this.showViewTemplateModal) true}}
class="btn-view-template"
/>
<DButton
@title="admin.form_templates.list_table.actions.edit"
@icon="pencil-alt"
@action={{this.editTemplate}}
class="btn-edit-template"
/>
<DButton
@title="admin.form_templates.list_table.actions.delete"
@icon="far-trash-alt"
@action={{this.deleteTemplate}}
class="btn-danger btn-delete-template"
/>
</td>
</tr>
{{#if this.showViewTemplateModal}}
<Modal::CustomizeFormTemplateView
@closeModal={{fn (mut this.showViewTemplateModal) false}}
@model={{@template}}
@refreshModel={{@refreshModel}}
/>
{{/if}}