2
0
Fork 0

Add shift description to detail pages

This commit is contained in:
Luca 2022-05-12 19:21:50 +02:00
parent 5fdba3492d
commit 2d699c8a69
2 changed files with 8 additions and 2 deletions

View File

@ -16,7 +16,8 @@
<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 }}<br> <strong>Beginn:</strong> {{ shift.start_at }}<br>
<strong>Dauer:</strong> {{ shift.duration }} <strong>Dauer:</strong> {{ shift.duration }}<br>
<em>{{ shift.description|linebreaksbr }}</em>
</div> </div>
{% if can_register and not shift.deleted %} {% if can_register and not shift.deleted %}
<form action="" method="post"> <form action="" method="post">

View File

@ -2,7 +2,12 @@
{% block title %}Schichtdetails{% endblock %} {% block title %}Schichtdetails{% endblock %}
{% block content %} {% block content %}
<h3 class="title is-spaced">{% if shift.deleted %}(gelöscht) {% endif %}{{ shift.room.name }} {{ shift.start_at }} ({{ shift.shiftregistration_set.count }}/{{ shift.required_helpers|default:shift.room.required_helpers }})</h3> <h3 class="title">{% if shift.deleted %}(gelöscht) {% endif %}{{ shift.room.name }} {{ shift.start_at }} ({{ shift.shiftregistration_set.count }}/{{ shift.required_helpers|default:shift.room.required_helpers }})</h3>
{% if shift.description %}
<div class="content">
<em>{{ shift.description|linebreaksbr }}</em>
</div>
{% endif %}
{% if shift.shiftregistration_set.all %} {% if shift.shiftregistration_set.all %}
<h5 class="subtitle">Helfer*innen</h5> <h5 class="subtitle">Helfer*innen</h5>
<div class="columns is-multiline"> <div class="columns is-multiline">