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="box">
<div class="content"> <div class="content">
<strong>Ort:</strong> {{ shift.room.name }}<br> <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>
<div class="is-flex is-justify-content-end"> <div class="is-flex is-justify-content-end">
{% if registered %} {% if registered %}

View File

@ -1,30 +1,33 @@
{% extends "helper_base.html" %} {% extends "helper_base.html" %}
{% block title %}Schichtansicht{% endblock %} {% block title %}Schichtansicht{% endblock %}
{% block content %} {% block content %}
<div class="box"> <div class="box">
{% if is_registered %} {% if is_registered %}
<div>Du bist zu dieser Schicht angemeldet</div> <div class="notification is-info">Du bist zu dieser Schicht angemeldet</div>
{% endif %} {% endif %}
Ort: {{ shift.room.name }}<br> <div class="content">
Start: {{ shift.start_at }}<br> <strong>Ort:</strong> {{ shift.room.name }}<br>
Dauer: {{ shift.duration }}<br> <strong>Beginn:</strong> {{ shift.start_at }}<br>
<strong>Dauer:</strong> {{ shift.duration }}
</div>
{% if can_register %} {% if can_register %}
<form action="" method="post"> <form action="" method="post">
{% csrf_token %} {% csrf_token %}
{{ shift_form.as_p }} {{ shift_form.as_p }}
<input type="submit" class="button is-link" value="Anmelden"> <input type="submit" class="button is-link" value="Anmelden">
</form> </form>
{% endif %} {% endif %}
{% if is_registered %} {% if is_registered %}
{% if can_cancel %} {% if can_cancel %}
<form action="{% url 'cancel' shift.pk %}" method="post"> <form action="{% url 'cancel' shift.pk %}" method="post">
{% csrf_token %} {% csrf_token %}
{{ shift_form.as_p }} {{ shift_form.as_p }}
<input type="submit" class="button is-danger is-small" value="Abmelden"> <input type="submit" class="button is-danger is-small" value="Abmelden">
</form> </form>
{% elif not shift.has_ended %} {% 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 %}
{% endif %} {% endif %}
</div> </div>