File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -281,6 +281,10 @@ class ColumnBlocks(StreamBlock):
281
281
282
282
class ProductionDaysBlock (StructBlock ):
283
283
production_day_limit = IntegerBlock (default = 4 , required = False )
284
+ text_no_production_day = RichTextBlock (
285
+ required = False ,
286
+ help_text = "This text is displayed if no production day is planned." ,
287
+ )
284
288
cta_button_text = CharBlock (
285
289
default = "Zum Backtag" , required = False , label = "Button Text (Zum Backtag)"
286
290
)
Original file line number Diff line number Diff line change
1
+ {% load wagtailcore_tags %}
1
2
< div class ="row gy-4 ">
2
3
3
4
{% for production_day in production_days %}
4
5
< div class ="col-12 col-md-6 ">
5
6
{% include 'shop/includes/production_day_card.html' %}
6
7
</ div >
7
8
{% empty %}
8
- < div class ="col ">
9
- < p > Aktuell sind keine weiteren Backtage geplant.</ p >
10
- </ div >
9
+ {% if value.text_no_production_day %}
10
+ < div class ="col ">
11
+ {{ value.text_no_production_day|richtext }}
12
+ </ div >
13
+ {% else %}
14
+ < div class ="col ">
15
+ < p > Aktuell sind keine weiteren Backtage geplant.</ p >
16
+ </ div >
17
+ {% endif %}
11
18
{% endfor %}
12
19
</ div >
You can’t perform that action at this time.
0 commit comments