Add shift description to detail pages

pull/1/head
Luca 3 years ago
parent 5fdba3492d
commit 2d699c8a69

@ -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">

@ -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">

Loading…
Cancel
Save