update happy hour layout
This commit is contained in:
parent
67f9f4ed83
commit
abdf5e91f6
@ -26,10 +26,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% block test %}
|
{% block test %}
|
||||||
<div class="text-center bg-warning pb-2">
|
<div class="text-center bg-warning pb-2" style="font-size: 12px !important;">
|
||||||
<h4>Hinweis: Diese Seite dient <strong>nur</strong> zu Testzwecken.
|
<p>Hinweis: Diese Seite dient <strong>nur</strong> zu Testzwecken.
|
||||||
Wir garantieren weder die Vollständigkeit, noch
|
Wir garantieren weder die Vollständigkeit, noch
|
||||||
die Korrektheit der dargestellten Daten.</h4>
|
die Korrektheit der dargestellten Daten.</p>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|||||||
@ -17,26 +17,20 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col p-2">
|
<div class="col p-2">
|
||||||
<div class="p-3 border border-dark rounded bg-light text-dark">
|
<div class="p-3 border border-dark rounded bg-light text-dark">
|
||||||
<h2>Happy Hours Guide von Feki.de</h2>
|
<h2>Happy Hour Guide von Feki.de</h2>
|
||||||
{% if happy_hours %}
|
{% if happy_hours %}
|
||||||
<table class="table">
|
<div class="row">
|
||||||
<thead class="thead-inverse">
|
<div class="col-4">Location</div>
|
||||||
<tr>
|
<div class="col-4">Time</div>
|
||||||
<th>Location</th>
|
<div class="col-4">Description</div>
|
||||||
<th>Time</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{% for happy_hour in happy_hours %}
|
{% for happy_hour in happy_hours %}
|
||||||
<tr>
|
<div class="row">
|
||||||
<td>{{ happy_hour.location }}</td>
|
<div class="col-4">{{ happy_hour.location }}</div>
|
||||||
<td>{{ happy_hour.starttime.strftime('%H:%M') }} - {{ happy_hour.endtime.strftime('%H:%M') }}</td>
|
<div class="col-4">{{ happy_hour.starttime.strftime('%H:%M') }} - {{ happy_hour.endtime.strftime('%H:%M') }}</div>
|
||||||
<td>{{ happy_hour.description }}</td>
|
<div class="col-4">{{ happy_hour.description }}</div>
|
||||||
</tr>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</div>
|
||||||
</table>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>Leider gibt es heute keine Happy Hours :(</p>
|
<p>Leider gibt es heute keine Happy Hours :(</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@ -19,24 +19,18 @@
|
|||||||
<div class="p-3 border border-dark rounded bg-light text-dark">
|
<div class="p-3 border border-dark rounded bg-light text-dark">
|
||||||
<h2>Happy Hour Guide von Feki.de</h2>
|
<h2>Happy Hour Guide von Feki.de</h2>
|
||||||
{% if happy_hours %}
|
{% if happy_hours %}
|
||||||
<table class="table">
|
<div class="row">
|
||||||
<thead class="thead-inverse">
|
<div class="col-4">Location</div>
|
||||||
<tr>
|
<div class="col-4">Time</div>
|
||||||
<th>Location</th>
|
<div class="col-4">Description</div>
|
||||||
<th>Time</th>
|
|
||||||
<th>Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{% for happy_hour in happy_hours %}
|
{% for happy_hour in happy_hours %}
|
||||||
<tr>
|
<div class="row">
|
||||||
<td>{{ happy_hour.location }}</td>
|
<div class="col-4">{{ happy_hour.location }}</div>
|
||||||
<td>{{ happy_hour.time }}</td>
|
<div class="col-4">{{ happy_hour.starttime.strftime('%H:%M') }} - {{ happy_hour.endtime.strftime('%H:%M') }}</div>
|
||||||
<td>{{ happy_hour.description }}</td>
|
<div class="col-4">{{ happy_hour.description }}</div>
|
||||||
</tr>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</div>
|
||||||
</table>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>Leider gibt es heute keine Happy Hours :(</p>
|
<p>Leider gibt es heute keine Happy Hours :(</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user