1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,47 +0,0 @@ |
1 |
-<div hx-get="{{ insert_tag('env::request') }}" hx-headers='{"VR-Ajax": "WaBookedModule"}' hx-trigger="updateWaBooking from:body" class="{{ class }} content-wrapper block"{{ cssID }}{% if style is defined and style is not empty %} style="{{ style }}"{% endif %}> |
|
2 |
- |
|
3 |
- {% block content %} |
|
4 |
- {% if days is defined and days|length %} |
|
5 |
- <div class="list"> |
|
6 |
- {% for day,bookings in days %} |
|
7 |
- <h3 class="toggler-dis u-flex u-items-center mt-2">{{ day|date('d.m.Y') }}</h3> |
|
8 |
- <div class="accordion-dis"> |
|
9 |
- <div class="bookings"> |
|
10 |
- {% for booking in bookings %} |
|
11 |
- <div class="row u-items-center"> |
|
12 |
- <div class="col-2 time icon-uhr-outline"> |
|
13 |
- <span class="t-label">Uhrzeit</span> |
|
14 |
- {{ booking.slot.time|date('H:i') }} |
|
15 |
- </div> |
|
16 |
- <div class="col-3 behaelter icon-behaelter-outline"> |
|
17 |
- <span class="t-label">Gebuchte Behälterkapazität</span> |
|
18 |
- {{ booking.behaelter }} |
|
19 |
- </div> |
|
20 |
- <div class="col-5 rebsorten icon-reben-outline"> |
|
21 |
- <span class="t-label">Anliefernde Sorten</span> |
|
22 |
- {{ booking.sorte|join(', ') }} |
|
23 |
- </div> |
|
24 |
- <div class="col u-text-right action"> |
|
25 |
- <a hx-get="/_ajax/vr_wa/v1/slot?do=booking&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" href="javascript:;" class="btn btn--xs m-0">Anzeigen</a> |
|
26 |
- <a hx-get="/_ajax/vr_wa/v1/slot?do=delete&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" hx-confirm="Sind Sie sicher, dass Sie diese Reservierung löschen möchten?" href="javascript:;" class="btn btn--xs btn-danger m-0">Löschen</a> |
|
27 |
- </div> |
|
28 |
- </div> |
|
29 |
- {% endfor %} |
|
30 |
- </div> |
|
31 |
- </div> |
|
32 |
- {% endfor %} |
|
33 |
- </div> |
|
34 |
- {% else %} |
|
35 |
- <div class="placeholder"> |
|
36 |
- <h6 class="placeholder-title">Sie haben noch keine Anlieferungszeiten reserviert</h6> |
|
37 |
- <div class="placeholder-subtitle">Sobald Sie Anlieferungszeiten reserviert haben, werden diese hier aufgelistet.</div> |
|
38 |
- <div class="placeholder-commands u-center"> |
|
39 |
- <div class="m-1"> |
|
40 |
- <a href="{{ insert_tag('link_url::2') }}" class="btn btn-info">Zur Reservierung</a> |
|
41 |
- </div> |
|
42 |
- </div> |
|
43 |
- </div> |
|
44 |
- {% endif %} |
|
45 |
- {% endblock %} |
|
46 |
- |
|
47 |
-</div> |
... | ... |
@@ -31,6 +31,16 @@ |
31 | 31 |
</div> |
32 | 32 |
{% endfor %} |
33 | 33 |
</div> |
34 |
+ {% else %} |
|
35 |
+ <div class="placeholder"> |
|
36 |
+ <h6 class="placeholder-title">Sie haben noch keine Anlieferungszeiten reserviert</h6> |
|
37 |
+ <div class="placeholder-subtitle">Sobald Sie Anlieferungszeiten reserviert haben, werden diese hier aufgelistet.</div> |
|
38 |
+ <div class="placeholder-commands u-center"> |
|
39 |
+ <div class="m-1"> |
|
40 |
+ <a href="{{ insert_tag('link_url::2') }}" class="btn btn-info">Zur Reservierung</a> |
|
41 |
+ </div> |
|
42 |
+ </div> |
|
43 |
+ </div> |
|
34 | 44 |
{% endif %} |
35 | 45 |
{% endblock %} |
36 | 46 |
|
... | ... |
@@ -23,7 +23,7 @@ |
23 | 23 |
</div> |
24 | 24 |
<div class="col u-text-right action"> |
25 | 25 |
<a hx-get="/_ajax/vr_wa/v1/slot?do=booking&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" href="javascript:;" class="btn btn--xs m-0">Anzeigen</a> |
26 |
- <a hx-get="/_ajax/vr_wa/v1/slot?do=delete&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" href="javascript:;" class="btn btn--xs btn-danger m-0">Löschen</a> |
|
26 |
+ <a hx-get="/_ajax/vr_wa/v1/slot?do=delete&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" hx-confirm="Sind Sie sicher, dass Sie diese Reservierung löschen möchten?" href="javascript:;" class="btn btn--xs btn-danger m-0">Löschen</a> |
|
27 | 27 |
</div> |
28 | 28 |
</div> |
29 | 29 |
{% endfor %} |
... | ... |
@@ -4,7 +4,7 @@ |
4 | 4 |
{% if days is defined and days|length %} |
5 | 5 |
<div class="list"> |
6 | 6 |
{% for day,bookings in days %} |
7 |
- <h3 class="toggler-dis u-flex u-items-center">{{ day|date('d.m.Y') }}</h3> |
|
7 |
+ <h3 class="toggler-dis u-flex u-items-center mt-2">{{ day|date('d.m.Y') }}</h3> |
|
8 | 8 |
<div class="accordion-dis"> |
9 | 9 |
<div class="bookings"> |
10 | 10 |
{% for booking in bookings %} |
... | ... |
@@ -4,28 +4,26 @@ |
4 | 4 |
{% if days is defined and days|length %} |
5 | 5 |
<div class="list"> |
6 | 6 |
{% for day,bookings in days %} |
7 |
- <h3 class="toggler-dis">{{ day|date('d.m.Y') }}</h3> |
|
7 |
+ <h3 class="toggler-dis u-flex u-items-center">{{ day|date('d.m.Y') }}</h3> |
|
8 | 8 |
<div class="accordion-dis"> |
9 | 9 |
<div class="bookings"> |
10 | 10 |
{% for booking in bookings %} |
11 |
- <div class="row"> |
|
12 |
- <div class="flex align-items-center"> |
|
13 |
- <div class="full half-500 third-900 time"> |
|
14 |
- <span class="title">Uhrzeit</span> |
|
15 |
- {{ booking.slot.time|date('H:i') }} |
|
16 |
- </div> |
|
17 |
- <div class="full half-500 fourth-900 behaelter"> |
|
18 |
- <span class="title">Gebuchte Behälterkapazität</span> |
|
19 |
- {{ booking.behaelter }} |
|
20 |
- </div> |
|
21 |
- <div class="full two-third-500 fourth-900 rebsorten"> |
|
22 |
- <span class="title">Anliefernde Sorten</span> |
|
23 |
- {{ booking.sorte|join(', ') }} |
|
24 |
- </div> |
|
25 |
- <div class="full third-500 sixth-900 align-right action"> |
|
26 |
- <a hx-get="/_ajax/vr_wa/v1/slot?do=delete&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" href="javascript:;" class="button error">Löschen</a> |
|
27 |
- <a hx-get="/_ajax/vr_wa/v1/slot?do=booking&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" href="javascript:;" class="button">Anzeigen</a> |
|
28 |
- </div> |
|
11 |
+ <div class="row u-items-center"> |
|
12 |
+ <div class="col-2 time icon-uhr-outline"> |
|
13 |
+ <span class="t-label">Uhrzeit</span> |
|
14 |
+ {{ booking.slot.time|date('H:i') }} |
|
15 |
+ </div> |
|
16 |
+ <div class="col-3 behaelter icon-behaelter-outline"> |
|
17 |
+ <span class="t-label">Gebuchte Behälterkapazität</span> |
|
18 |
+ {{ booking.behaelter }} |
|
19 |
+ </div> |
|
20 |
+ <div class="col-5 rebsorten icon-reben-outline"> |
|
21 |
+ <span class="t-label">Anliefernde Sorten</span> |
|
22 |
+ {{ booking.sorte|join(', ') }} |
|
23 |
+ </div> |
|
24 |
+ <div class="col u-text-right action"> |
|
25 |
+ <a hx-get="/_ajax/vr_wa/v1/slot?do=booking&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" href="javascript:;" class="btn btn--xs m-0">Anzeigen</a> |
|
26 |
+ <a hx-get="/_ajax/vr_wa/v1/slot?do=delete&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" href="javascript:;" class="btn btn--xs btn-danger m-0">Löschen</a> |
|
29 | 27 |
</div> |
30 | 28 |
</div> |
31 | 29 |
{% endfor %} |
... | ... |
@@ -1,4 +1,4 @@ |
1 |
-<div hx-get="{{ insert_tag('env::request') }}" hx-headers='{"VR-Ajax": "WabookingsModule"}' hx-trigger="updateWaList from:body" class="{{ class }} content-wrapper block"{{ cssID }}{% if style is defined and style is not empty %} style="{{ style }}"{% endif %}> |
|
1 |
+<div hx-get="{{ insert_tag('env::request') }}" hx-headers='{"VR-Ajax": "WaBookedModule"}' hx-trigger="updateWaBooking from:body" class="{{ class }} content-wrapper block"{{ cssID }}{% if style is defined and style is not empty %} style="{{ style }}"{% endif %}> |
|
2 | 2 |
|
3 | 3 |
{% block content %} |
4 | 4 |
{% if days is defined and days|length %} |
... | ... |
@@ -24,6 +24,7 @@ |
24 | 24 |
</div> |
25 | 25 |
<div class="full third-500 sixth-900 align-right action"> |
26 | 26 |
<a hx-get="/_ajax/vr_wa/v1/slot?do=delete&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" href="javascript:;" class="button error">Löschen</a> |
27 |
+ <a hx-get="/_ajax/vr_wa/v1/slot?do=booking&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" href="javascript:;" class="button">Anzeigen</a> |
|
27 | 28 |
</div> |
28 | 29 |
</div> |
29 | 30 |
</div> |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,38 @@ |
1 |
+<div hx-get="{{ insert_tag('env::request') }}" hx-headers='{"VR-Ajax": "WabookingsModule"}' hx-trigger="updateWaList from:body" class="{{ class }} content-wrapper block"{{ cssID }}{% if style is defined and style is not empty %} style="{{ style }}"{% endif %}> |
|
2 |
+ |
|
3 |
+ {% block content %} |
|
4 |
+ {% if days is defined and days|length %} |
|
5 |
+ <div class="list"> |
|
6 |
+ {% for day,bookings in days %} |
|
7 |
+ <h3 class="toggler-dis">{{ day|date('d.m.Y') }}</h3> |
|
8 |
+ <div class="accordion-dis"> |
|
9 |
+ <div class="bookings"> |
|
10 |
+ {% for booking in bookings %} |
|
11 |
+ <div class="row"> |
|
12 |
+ <div class="flex align-items-center"> |
|
13 |
+ <div class="full half-500 third-900 time"> |
|
14 |
+ <span class="title">Uhrzeit</span> |
|
15 |
+ {{ booking.slot.time|date('H:i') }} |
|
16 |
+ </div> |
|
17 |
+ <div class="full half-500 fourth-900 behaelter"> |
|
18 |
+ <span class="title">Gebuchte Behälterkapazität</span> |
|
19 |
+ {{ booking.behaelter }} |
|
20 |
+ </div> |
|
21 |
+ <div class="full two-third-500 fourth-900 rebsorten"> |
|
22 |
+ <span class="title">Anliefernde Sorten</span> |
|
23 |
+ {{ booking.sorte|join(', ') }} |
|
24 |
+ </div> |
|
25 |
+ <div class="full third-500 sixth-900 align-right action"> |
|
26 |
+ <a hx-get="/_ajax/vr_wa/v1/slot?do=delete&id={{ booking.id }}" hx-target="body" hx-swap="beforeend" href="javascript:;" class="button error">Löschen</a> |
|
27 |
+ </div> |
|
28 |
+ </div> |
|
29 |
+ </div> |
|
30 |
+ {% endfor %} |
|
31 |
+ </div> |
|
32 |
+ </div> |
|
33 |
+ {% endfor %} |
|
34 |
+ </div> |
|
35 |
+ {% endif %} |
|
36 |
+ {% endblock %} |
|
37 |
+ |
|
38 |
+</div> |