|
2 | 2 | 'published': {'icon': 'success', 'text': 'green'}, |
3 | 3 | 'unpublished': {'icon': 'danger', 'text': 'red'}, |
4 | 4 | 'expired': {'icon': 'info', 'text': 'blue'}, |
5 | | - 'pending': {'icon': 'info', 'text': 'blue'} |
| 5 | + 'pending': {'icon': 'info', 'text': 'blue'}, |
| 6 | + 'sent': {'icon': 'info', 'text': 'blue'}, |
| 7 | + 'sending': {'icon': 'success', 'text': 'green'}, |
6 | 8 | } %} |
7 | 9 |
|
8 | 10 | {# Define the labels based on the combination of status and publishStatus #} |
|
11 | 13 | 'published': 'mautic.core.form.available', |
12 | 14 | 'pending': 'mautic.core.form.not_yet_available', |
13 | 15 | 'expired': 'mautic.core.form.no_longer_available', |
14 | | - 'unpublished': 'mautic.core.form.unavailable' |
| 16 | + 'unpublished': 'mautic.core.form.unavailable', |
| 17 | + 'sent': 'mautic.email.stat.sent', |
| 18 | + 'sending': 'mautic.core.form.sending', |
15 | 19 | }, |
16 | 20 | 'sending': { |
17 | 21 | 'published': 'mautic.core.form.sending', |
18 | 22 | 'pending': 'mautic.core.form.scheduled_to_send', |
19 | 23 | 'expired': 'mautic.core.form.sending_expired', |
20 | | - 'unpublished': 'mautic.core.form.unavailable' |
| 24 | + 'unpublished': 'mautic.core.form.unavailable', |
| 25 | + 'sent': 'mautic.email.stat.sent', |
| 26 | + 'sending': 'mautic.core.form.sending', |
21 | 27 | }, |
22 | 28 | 'active': { |
23 | 29 | 'published': 'mautic.core.form.active', |
24 | 30 | 'pending': 'mautic.core.form.pending', |
25 | 31 | 'expired': 'mautic.core.form.expired', |
26 | | - 'unpublished': 'mautic.core.form.inactive' |
| 32 | + 'unpublished': 'mautic.core.form.inactive', |
| 33 | + 'sent': 'mautic.email.stat.sent', |
| 34 | + 'sending': 'mautic.core.form.sending', |
27 | 35 | } |
28 | 36 | } %} |
29 | 37 |
|
30 | | -{% set labelTextKey = (labelMappings[status|default('active')][entity.getPublishStatus()]) %} |
| 38 | +{% set sendingStatus = sendingStatus|default(entity.getPublishStatus()) %} |
31 | 39 |
|
32 | | -<div class="label label-{{ statusColors[entity.getPublishStatus()].text }} d-inline-flex ai-center gap-xs fw-b"{% if simplified is defined and simplified %} size="sm"{% endif %}> |
| 40 | +{% set labelTextKey = (labelMappings[status|default('active')][sendingStatus]) %} |
| 41 | + |
| 42 | +<div class="label label-{{ statusColors[sendingStatus].text }} d-inline-flex ai-center gap-xs fw-b"{% if simplified is defined and simplified %} size="sm"{% endif %}> |
33 | 43 | {% if not (simplified is defined and simplified) %} |
34 | | - <span aria-hidden="true" focusable="false" class="bg-{{ statusColors[entity.getPublishStatus()].icon }} publishstatus_pulse"> |
| 44 | + <span aria-hidden="true" focusable="false" class="bg-{{ statusColors[sendingStatus].icon }} publishstatus_pulse"> |
35 | 45 | </span> |
36 | 46 | {% endif %} |
37 | 47 | {{ labelTextKey|trans }} |
|
0 commit comments