2
0
Fork 0

Style shift detail

This commit is contained in:
Luca 2022-04-22 17:23:25 +02:00
parent 6696bdca24
commit 38a72a97be
2 changed files with 20 additions and 16 deletions

View File

@ -2,7 +2,8 @@
<div class="box">
<div class="content">
<strong>Ort:</strong> {{ shift.room.name }}<br>
<strong>Beginn:</strong> {{ shift.start_at }}
<strong>Beginn:</strong> {{ shift.start_at }}<br>
<strong>Dauer:</strong> {{ shift.duration }}
</div>
<div class="is-flex is-justify-content-end">
{% if registered %}

View File

@ -1,14 +1,17 @@
{% extends "helper_base.html" %}
{% block title %}Schichtansicht{% endblock %}
{% block content %}
<div class="box">
{% if is_registered %}
<div>Du bist zu dieser Schicht angemeldet</div>
<div class="notification is-info">Du bist zu dieser Schicht angemeldet</div>
{% endif %}
Ort: {{ shift.room.name }}<br>
Start: {{ shift.start_at }}<br>
Dauer: {{ shift.duration }}<br>
<div class="content">
<strong>Ort:</strong> {{ shift.room.name }}<br>
<strong>Beginn:</strong> {{ shift.start_at }}<br>
<strong>Dauer:</strong> {{ shift.duration }}
</div>
{% if can_register %}
<form action="" method="post">
{% csrf_token %}
@ -24,7 +27,7 @@ Dauer: {{ shift.duration }}<br>
<input type="submit" class="button is-danger is-small" value="Abmelden">
</form>
{% elif not shift.has_ended %}
Bitte wende dich an den Infopoint, falls du es nicht zu deiner Schicht schaffst.
<div class="content">Bitte wende dich an den Infopoint, falls du es nicht zu deiner Schicht schaffst.</div>
{% endif %}
{% endif %}
</div>