display shift and room description in team view
This commit is contained in:
parent
56d4202b56
commit
5c60b5165e
|
@ -21,12 +21,16 @@
|
||||||
<strong>Treffpunkt:</strong> {{ shift.room.meeting_location|linebreaksbr }}
|
<strong>Treffpunkt:</strong> {{ shift.room.meeting_location|linebreaksbr }}
|
||||||
</p>
|
</p>
|
||||||
{% if shift.room.description %}
|
{% if shift.room.description %}
|
||||||
|
<div class="description">
|
||||||
<strong>Beschreibung:</strong>
|
<strong>Beschreibung:</strong>
|
||||||
<p>{{ shift.room.description|linebreaksbr }}</p>
|
<p>{{ shift.room.description|linebreaksbr|safe }}</p>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if shift.description %}
|
{% if shift.description %}
|
||||||
|
<div class="description">
|
||||||
<strong>Zusatzinfo:</strong>
|
<strong>Zusatzinfo:</strong>
|
||||||
<p>{{ shift.description|linebreaksbr }}</p>
|
<p>{{ shift.description|linebreaksbr }}</p>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if can_register and not shift.deleted %}
|
{% if can_register and not shift.deleted %}
|
||||||
|
|
|
@ -27,6 +27,10 @@
|
||||||
--background: #fff;
|
--background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.description {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
.sticky-nav {
|
.sticky-nav {
|
||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
margin: 0 -0.75rem;
|
margin: 0 -0.75rem;
|
||||||
|
|
|
@ -4,9 +4,16 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h3 class="title is-spaced">{% if shift.deleted %}(gelöscht) {% endif %}{{ shift.room.name }} {{ shift.start_at }} ({{ shift.registration_count }}/{{ shift.required_helpers|default:shift.room.required_helpers }})</h3>
|
<h3 class="title is-spaced">{% if shift.deleted %}(gelöscht) {% endif %}{{ shift.room.name }} {{ shift.start_at }} ({{ shift.registration_count }}/{{ shift.required_helpers|default:shift.room.required_helpers }})</h3>
|
||||||
|
{% if shift.room.description %}
|
||||||
|
<div class="description">
|
||||||
|
<strong>Beschreibung:</strong>
|
||||||
|
<p>{{ shift.room.description|safe|linebreaksbr }}</p>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% if shift.description %}
|
{% if shift.description %}
|
||||||
<div class="content">
|
<div class="description">
|
||||||
<em>{{ shift.description|linebreaksbr }}</em>
|
<strong>Zusatzinfo:</strong>
|
||||||
|
<p>{{ shift.description|linebreaksbr }}</p>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if shift.shiftregistration_set.all %}
|
{% if shift.shiftregistration_set.all %}
|
||||||
|
|
Loading…
Reference in New Issue