bebe/templates/timeline.html

20 lines
651 B
HTML
Raw Normal View History

<h1>Tajmlajn za {{ date }} ({{ vkupno_izedeno }}ml)</h1>
<div class="timeline-item inverse">
<span>AKCIJA</span>
<span>POCNATO</span>
<span>ZAVRSENO</span>
<span>PODATOCI</span>
<span>IZBRISI</span>
</div>
{% for event in timeline %}
<div class="timeline-item">
<span><b>{{ event.event_type.value }}</b></span>
<span>{{ event.start_time.time() }}</span>
<span>{{ event.end_time.time() if event.end_time }}</span>
<span>{{ event.data['value'] or "" }} {{ event.data['unit'] or "" }}</span>
<span>
<button hx-delete="/event/{{ event.id }}" hx-target="#timeline">X</button>
</span>
</div>
{% endfor %}