File tree 1 file changed +13
-15
lines changed
bakeup/templates/workshop
1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change 12
12
{% endblock %}
13
13
14
14
{% block page_content %}
15
+ {% if messages_sending %}
16
+ < div class ="row ">
17
+ < div class =" col ">
18
+ {% for message in messages_sending %}
19
+ < p > < span class ="badge bg-warning text-dark "> {% if message.is_sending %}SENDING{% elif message.is_planned_sending %}PLANNED SENDING{% endif %}</ span > {{ message.get_orders.count }} emails to users: < small > {{ message }}</ small > </ p >
20
+ {% endfor %}
21
+ </ div >
22
+ </ div >
23
+ < hr >
24
+ {% endif %}
15
25
{{ form.errors }}
16
26
< div class ="row ">
17
27
< div class ="col-sm-10 col ">
59
69
</ form >
60
70
</ div >
61
71
</ div >
62
- {% if messages_sending %}
63
- < div class ="row mt-4 ">
64
- < div class ="col ">
65
- < h2 > Message pipeline< h2 >
66
- </ div >
67
- </ div >
68
- < div class ="row ">
69
- < div class ="col-sm-8 col ">
70
- {% for message in messages_sending %}
71
- < p > < span class ="badge bg-warning text-dark "> {% if message.is_sending %}SENDING{% elif message.is_planned_sending %}PLANNED SENDING{% endif %}</ span > {{ message.get_orders.count }} emails to users: < small > {{ message }}</ small > </ p >
72
- {% endfor %}
73
- </ div >
74
- </ div >
75
- {% endif %}
72
+ < hr >
76
73
{% if messages_sent %}
77
74
< div class ="row mt-4 ">
78
75
< div class ="col ">
@@ -88,7 +85,8 @@ <h2>Message History</h2>
88
85
< p class ="small mb-0 "> {{ message.sent_date }}</ p >
89
86
< h5 > {% if message.error_log %}< i class ="fas fa-exclamation-triangle "> </ i > {% endif %}{{ message }} </ h5 >
90
87
< hr >
91
- < p > {{ message.body|safe }}</ p >
88
+ < a data-bs-toggle ="collapse " href =".email-body-{{ message.pk }} " role ="button " aria-expanded ="false " aria-controls ="collapseExample "> E-mail body</ a >
89
+ < div class ="collapse email-body-{{ message.pk }} "> {{ message.body|safe }}</ div >
92
90
< hr >
93
91
< p > < small >
94
92
< a data-bs-toggle ="collapse " href =".email-log-{{ message.pk }} " role ="button " aria-expanded ="false " aria-controls ="collapseExample "> E-mail send: {{ message.send_log|length }}</ a >
You can’t perform that action at this time.
0 commit comments