11{% block sw_mail_template_list_grid %}
2- <sw -card
3- :title =" $tc('sw-mail-template.list.titleMailTemplateList')"
4- position-identifier =" sw-mail-template-list"
5- >
6- <template >
7- {% block sw_mail_template_list_grid_empty_state %}
8- <sw -empty-state
9- v-if =" !isLoading && !showListing"
10- :title =" $tc('sw-mail-template.list.emptyStateTitle')"
11- :subline =" $tc('sw-mail-template.list.emptyStateSubTitle')"
12- :absolute =" false"
13- >
14- {% block sw_mail_template_list_grid_empty_state_icon %}
15- <template #icon >
16- <img
17- :src =" '/administration/static/img/empty-states/settings-empty-state.svg' | asset"
18- alt
19- />
20- </template >
21- {% endblock %}
22- </sw -empty-state >
2+ <sw -card
3+ :title =" $tc('sw-mail-template.list.titleMailTemplateList')"
4+ position-identifier =" sw-mail-template-list"
5+ >
6+ <template >
7+ {% block sw_mail_template_list_grid_empty_state %}
8+ <sw -empty-state
9+ v-if =" !isLoading && !showListing"
10+ :title =" $tc('sw-mail-template.list.emptyStateTitle')"
11+ :subline =" $tc('sw-mail-template.list.emptyStateSubTitle')"
12+ :absolute =" false"
13+ >
14+ {% block sw_mail_template_list_grid_empty_state_icon %}
15+ <template #icon >
16+ <img
17+ :src =" '/administration/static/img/empty-states/settings-empty-state.svg' | asset"
18+ alt
19+ />
20+ </template >
2321 {% endblock %}
24- </template >
22+ </sw -empty-state >
23+ {% endblock %}
24+ </template >
2525
26- <template #grid >
27- <sw -entity-listing
28- v-if =" isLoading || showListing"
29- id =" mailTemplateGrid"
30- class =" sw-mail-templates-list-grid"
31- detail-route =" sw.mail.template.detail"
32- identifier =" sw-mail-template-list"
33- :items =" mailTemplates"
34- :columns =" getListColumns()"
35- :repository =" mailTemplateRepository"
36- :full-page =" false"
37- :is-loading =" isLoading"
38- :allow-view =" acl.can('mail_templates.viewer')"
39- :allow-edit =" acl.can('mail_templates.editor')"
40- :allow-delete =" acl.can('mail_templates.deleter')"
41- :show-selection =" acl.can('mail_templates.deleter')"
42- :skeleton-item-amount =" skeletonItemAmount"
43- @update-records =" updateRecords"
44- >
45- {% block sw_mail_template_list_grid_columns_frosh_template_mail %}
46- <template #column-froshTemplateMail =" { item }" >
47- <sw -label
48- appearance =" circle"
49- :variant =" item.extensions?.froshTemplateMail.subject ? 'success' : 'warning'"
50- v-tooltip =" getFroshTooltip('subject', item.extensions.froshTemplateMail.subject)"
51- >
52- <sw -icon
53- name =" regular-exclamation-s"
54- small
55- />
56- </sw -label >
57- <sw -label
58- appearance =" circle"
59- :variant =" item.extensions?.froshTemplateMail.plain ? 'success' : 'warning'"
60- v-tooltip =" getFroshTooltip('plain', item.extensions.froshTemplateMail.plain)"
61- >
62- <sw -icon
63- name =" regular-align-left"
64- small
65- />
66- </sw -label >
67- <sw -label
68- appearance =" circle"
69- :variant =" item.extensions?.froshTemplateMail.html ? 'success' : 'warning'"
70- v-tooltip =" getFroshTooltip('html', item.extensions.froshTemplateMail.html)"
71- >
72- <sw -icon
73- name =" regular-code"
74- small
75- />
76- </sw -label >
77- </template >
78- {% endblock %}
26+ <template #grid >
27+ <sw -entity-listing
28+ v-if =" isLoading || showListing"
29+ id =" mailTemplateGrid"
30+ class =" sw-mail-templates-list-grid"
31+ detail-route =" sw.mail.template.detail"
32+ identifier =" sw-mail-template-list"
33+ :items =" mailTemplates"
34+ :columns =" getListColumns()"
35+ :repository =" mailTemplateRepository"
36+ :full-page =" false"
37+ :is-loading =" isLoading"
38+ :allow-view =" acl.can('mail_templates.viewer')"
39+ :allow-edit =" acl.can('mail_templates.editor')"
40+ :allow-delete =" acl.can('mail_templates.deleter')"
41+ :show-selection =" acl.can('mail_templates.deleter')"
42+ :skeleton-item-amount =" skeletonItemAmount"
43+ @update-records =" updateRecords"
44+ >
45+ {% block sw_mail_template_list_grid_columns_frosh_template_mail %}
46+ <template #column-froshTemplateMail =" { item }" >
47+ <sw -label
48+ appearance =" circle"
49+ :variant =" item.extensions?.froshTemplateMail.subject ? 'success' : 'warning'"
50+ v-tooltip =" getFroshTooltip('subject', item.extensions.froshTemplateMail.subject)"
51+ >
52+ <sw -icon
53+ name =" regular-exclamation-s"
54+ small
55+ />
56+ </sw -label >
57+ <sw -label
58+ appearance =" circle"
59+ :variant =" item.extensions?.froshTemplateMail.plain ? 'success' : 'warning'"
60+ v-tooltip =" getFroshTooltip('plain', item.extensions.froshTemplateMail.plain)"
61+ >
62+ <sw -icon
63+ name =" regular-align-left"
64+ small
65+ />
66+ </sw -label >
67+ <sw -label
68+ appearance =" circle"
69+ :variant =" item.extensions?.froshTemplateMail.html ? 'success' : 'warning'"
70+ v-tooltip =" getFroshTooltip('html', item.extensions.froshTemplateMail.html)"
71+ >
72+ <sw -icon
73+ name =" regular-code"
74+ small
75+ />
76+ </sw -label >
77+ </template >
78+ {% endblock %}
7979
8080 {% block sw_mail_template_list_grid_columns_technical_name %}
81- <template #column-technicalName =" { item }" >
82- {{ item .extensions .froshTemplateMail .technicalName }}
83- </template >
81+ <template #column-technicalName =" { item }" >
82+ {{ item .extensions .froshTemplateMail .technicalName }}
83+ </template >
84+ {% endblock %}
85+
86+ <template #more-actions =" { item }" >
87+ {% block sw_mail_template_list_grid_columns_actions_duplicate %}
88+ <sw -context-menu-item
89+ class =" sw-mail-template-list-grid__duplicate-action"
90+ :disabled =" !acl.can('mail_templates.creator')"
91+ @click =" onDuplicate(item.id)"
92+ >
93+ {{ $tc(' sw-mail-template.list.contextMenuDuplicate' ) }}
94+ </sw -context-menu-item >
8495 {% endblock %}
85- <template #more-actions =" { item }" >
86- {% block sw_mail_template_list_grid_columns_actions_duplicate %}
87- <sw -context-menu-item
88- class =" sw-mail-template-list-grid__duplicate-action"
89- :disabled =" !acl.can('mail_templates.creator')"
90- @click =" onDuplicate(item.id)"
91- >
92- {{ $tc(' sw-mail-template.list.contextMenuDuplicate' ) }}
93- </sw -context-menu-item >
94- {% endblock %}
95- </template >
96- </sw -entity-listing >
97- </template >
98- </sw -card >
96+ </template >
97+ </sw -entity-listing >
98+ </template >
99+ </sw -card >
99100{% endblock %}
0 commit comments