Skip to content

Commit 4647c9d

Browse files
authored
Merge pull request mautic#15292 from andersonjeccel/content-block-empty-states
Add content block empty states for Projects and improve Category labels
2 parents 554427f + ffe3663 commit 4647c9d

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

app/bundles/CategoryBundle/Translations/en_US/messages.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ mautic.category.header.new="New Category"
99
mautic.category.menu.index="Categories"
1010
mautic.category.noresults.tip="Categories help organize and group items together. In many of the filters, you can type category:{alias} (replace {alias} with the real deal) to show the items within a specific category."
1111
mautic.category.contentblock.heading="Bring order to your resources"
12-
mautic.category.contentblock.subheading="Keep your marketing campaigns, emails, assets, forms, and other elements neatly organized."
13-
mautic.category.contentblock.copy="Categories help you group related items together, making them easier to find, manage, and report on - like folders for your marketing initiatives."
12+
mautic.category.contentblock.subheading="Add clarity and classification to your campaigns, emails, assets, and other elements."
13+
mautic.category.contentblock.copy="Categories act as high-level labels that help you identify related items, making them easier to differentiate and report on. Contacts can also select their interests by category in the preference centre."
1414
mautic.category.permissions.categories="Categories - User has access to"
1515
mautic.category.permissions.header="Category Permissions"
1616
mautic.global.global="Global"

app/bundles/ProjectBundle/Resources/views/Project/list.html.twig

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
{% block content %}
1010
{% if isIndex %}
11-
<div id="page-list-wrapper" class="panel panel-default">
11+
<div id="page-list-wrapper" class="{% if items|length > 0 or searchValue is not empty %}panel {% endif %} panel-default">
1212
{{ include('@MauticCore/Helper/list_toolbar.html.twig', {
1313
'searchValue': searchValue,
1414
'action': currentRoute,
@@ -140,6 +140,25 @@
140140
</div>
141141
</div>
142142
{% else %}
143-
{{ include('@MauticCore/Helper/noresults.html.twig') }}
143+
{% if searchValue is not empty %}
144+
{{ include('@MauticCore/Helper/noresults.html.twig') }}
145+
{% else %}
146+
<div class="mt-80 col-md-offset-2 col-lg-offset-3 col-md-8 col-lg-5 height-auto">
147+
{% set childContainer %}
148+
<div class="mt-32 mb-md">
149+
{% include '@MauticCore/Components/pictogram.html.twig' with {
150+
'pictogram': 'asset-management',
151+
'size': '80'
152+
} %}
153+
</div>
154+
{% endset %}
155+
{{ include('@MauticCore/Components/content-block.html.twig', {
156+
heading: 'mautic.project.contentblock.heading'|trans,
157+
subheading: 'mautic.project.contentblock.subheading'|trans,
158+
copy: 'mautic.project.contentblock.copy'|trans,
159+
childContainer: childContainer,
160+
}) }}
161+
</div>
162+
{% endif %}
144163
{% endif %}
145164
{% endblock %}

app/bundles/ProjectBundle/Translations/en_US/messages.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ mautic.project.popover.updated.on="Updated on %date%"
1919
mautic.project.popover.view.details="View details"
2020
mautic.project.popover.edit="Edit"
2121
mautic.project.popover.footer.label="Project"
22+
mautic.project.contentblock.heading="Turn your marketing plans into action"
23+
mautic.project.contentblock.subheading="One goal. One folder. All your related resources."
24+
mautic.project.contentblock.copy="Projects are the simplest way to keep everything for a campaign in one spot. Streamline your workflow, manage items as a group, and see how all the pieces fit together."

0 commit comments

Comments
 (0)