-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
GitHub Actions Bot
committed
Apr 13, 2024
1 parent
6199662
commit 97d653d
Showing
26 changed files
with
136 additions
and
783 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 3.0.2 | ||
- [chore: increase version](/6199662) | ||
- [fix: code-style, phpstan types](/4c22e53) | ||
- [Add search of mail templates in symfony-bundles (#66)](/330ff48) | ||
- [README: add export command, formatting (#61)](/7255fe1) |
1 change: 1 addition & 0 deletions
1
src/Resources/public/administration/css/frosh-platform-template-mail.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.sw-mail-template-detail__options-info-wrapper .sw-field,.sw-mail-template-detail .sw-code-editor{margin-bottom:5px}.sw-mail-template-detail .sw-code-editor+.sw-label{margin-bottom:32px} |
130 changes: 130 additions & 0 deletions
130
src/Resources/public/administration/js/frosh-platform-template-mail.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
(()=>{var l=`{% block sw_mail_template_list_grid %} | ||
<sw-card | ||
:title="$tc('sw-mail-template.list.titleMailTemplateList')" | ||
position-identifier="sw-mail-template-list" | ||
> | ||
<template> | ||
{% block sw_mail_template_list_grid_empty_state %} | ||
<sw-empty-state | ||
v-if="!isLoading && !showListing" | ||
:title="$tc('sw-mail-template.list.emptyStateTitle')" | ||
:subline="$tc('sw-mail-template.list.emptyStateSubTitle')" | ||
:absolute="false" | ||
> | ||
{% block sw_mail_template_list_grid_empty_state_icon %} | ||
<template #icon> | ||
<img | ||
:src="'/administration/static/img/empty-states/settings-empty-state.svg' | asset" | ||
alt="" | ||
> | ||
</template> | ||
{% endblock %} | ||
</sw-empty-state> | ||
{% endblock %} | ||
</template> | ||
<template #grid> | ||
<sw-entity-listing | ||
v-if="isLoading || showListing" | ||
id="mailTemplateGrid" | ||
class="sw-mail-templates-list-grid" | ||
detail-route="sw.mail.template.detail" | ||
identifier="sw-mail-template-list" | ||
:items="mailTemplates" | ||
:columns="getListColumns()" | ||
:repository="mailTemplateRepository" | ||
:full-page="false" | ||
:is-loading="isLoading" | ||
:allow-view="acl.can('mail_templates.viewer')" | ||
:allow-edit="acl.can('mail_templates.editor')" | ||
:allow-delete="acl.can('mail_templates.deleter')" | ||
:show-selection="acl.can('mail_templates.deleter')" | ||
:skeleton-item-amount="skeletonItemAmount" | ||
@update-records="updateRecords" | ||
> | ||
{% block sw_mail_template_list_grid_columns_frosh_template_mail %} | ||
<template #column-froshTemplateMail="{ item }"> | ||
<sw-label | ||
appearance="circle" | ||
:variant="item.extensions?.froshTemplateMail.subject ? 'success' : 'warning'" | ||
v-tooltip="getFroshTooltip('subject', item.extensions.froshTemplateMail.subject)" | ||
> | ||
<sw-icon name="regular-exclamation-s" small /> | ||
</sw-label> | ||
<sw-label | ||
appearance="circle" | ||
:variant="item.extensions?.froshTemplateMail.plain ? 'success' : 'warning'" | ||
v-tooltip="getFroshTooltip('plain', item.extensions.froshTemplateMail.plain)" | ||
> | ||
<sw-icon name="regular-align-left" small /> | ||
</sw-label> | ||
<sw-label | ||
appearance="circle" | ||
:variant="item.extensions?.froshTemplateMail.html ? 'success' : 'warning'" | ||
v-tooltip="getFroshTooltip('html', item.extensions.froshTemplateMail.html)" | ||
> | ||
<sw-icon name="regular-code" small /> | ||
</sw-label> | ||
</template> | ||
{% endblock %} | ||
{% block sw_mail_template_list_grid_columns_technical_name %} | ||
<template #column-technicalName="{ item }"> | ||
{{ item.extensions.froshTemplateMail.technicalName }} | ||
</template> | ||
{% endblock %} | ||
<template #more-actions="{ item }"> | ||
{% block sw_mail_template_list_grid_columns_actions_duplicate %} | ||
<sw-context-menu-item | ||
class="sw-mail-template-list-grid__duplicate-action" | ||
:disabled="!acl.can('mail_templates.creator')" | ||
@click="onDuplicate(item.id)" | ||
> | ||
{{ $tc('sw-mail-template.list.contextMenuDuplicate') }} | ||
</sw-context-menu-item> | ||
{% endblock %} | ||
</template> | ||
</sw-entity-listing> | ||
</template> | ||
</sw-card> | ||
{% endblock %} | ||
`;Shopware.Component.override("sw-mail-template-list",{template:l,methods:{getListColumns(){let e=this.$super("getListColumns");return e.unshift({property:"froshTemplateMail",label:"sw-mail-template.list.columnTemplateMail",allowResize:!0},{property:"technicalName",label:"sw-mail-template.list.columnTechnicalName",allowResize:!0,visible:!1}),e},getFroshTooltip(e,t){return{message:t?this.$t(`sw-mail-template.frosh.${e}`,{folder:t}):this.$t("sw-mail-template.frosh.noTemplate")}}}});var a=`{% block sw_mail_template_options_form_subject_field %} | ||
{% parent %} | ||
<sw-label | ||
v-if="mailTemplate.extensions.froshTemplateMail" | ||
appearance="circle" | ||
:variant="mailTemplate.extensions.froshTemplateMail.subject ? 'success' : 'warning'" | ||
v-tooltip="getFroshTooltip('subject', mailTemplate.extensions.froshTemplateMail.subject)" | ||
> | ||
<sw-icon name="regular-exclamation-s" small /> | ||
</sw-label> | ||
{% endblock %} | ||
{% block sw_mail_template_mail_text_form_content_plain_field %} | ||
{% parent %} | ||
<sw-label | ||
v-if="mailTemplate.extensions.froshTemplateMail" | ||
appearance="circle" | ||
:variant="mailTemplate.extensions.froshTemplateMail.plain ? 'success' : 'warning'" | ||
v-tooltip="getFroshTooltip('plain', mailTemplate.extensions.froshTemplateMail.plain)" | ||
> | ||
<sw-icon name="regular-align-left" small /> | ||
</sw-label> | ||
{% endblock %} | ||
{% block sw_mail_template_mail_text_form_content_html_field %} | ||
{% parent %} | ||
<sw-label | ||
v-if="mailTemplate.extensions.froshTemplateMail" | ||
appearance="circle" | ||
:variant="mailTemplate.extensions.froshTemplateMail.html ? 'success' : 'warning'" | ||
v-tooltip="getFroshTooltip('html', mailTemplate.extensions.froshTemplateMail.html)" | ||
> | ||
<sw-icon name="regular-code" small /> | ||
</sw-label> | ||
{% endblock %} | ||
`;Shopware.Component.override("sw-mail-template-detail",{template:a,methods:{getFroshTooltip(e,t){return{message:t?this.$t(`sw-mail-template.frosh.${e}`,{folder:t}):this.$t("sw-mail-template.frosh.noTemplate")}}}});})(); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.