|
|
|
@ -7,9 +7,6 @@
|
|
|
|
|
<div class="content">
|
|
|
|
|
<em>{{ shift.description|linebreaksbr }}</em>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if shift.teambackup_set.all.count %}<br>
|
|
|
|
|
<strong>Backup Teammitglied(er): {%for member in shift.teambackup_set.all%}{{member.name}}, {%endfor%}</strong>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if shift.shiftregistration_set.all %}
|
|
|
|
|
<h5 class="subtitle">Helfer*innen</h5>
|
|
|
|
@ -60,4 +57,38 @@
|
|
|
|
|
{% endfor %}
|
|
|
|
|
<button class="button is-link" type="submit">Hinzufügen</button>
|
|
|
|
|
</form>
|
|
|
|
|
<hr>
|
|
|
|
|
{% if shift.teambackup_set.all.count %}<br>
|
|
|
|
|
<strong>Backup Teammitglied(er):</strong>
|
|
|
|
|
<ul>
|
|
|
|
|
{%for member in shift.teambackup_set.all%}
|
|
|
|
|
<li>{{member.name}} <a class="button is-danger is-small" href="{%url 'signage:work_remove' member.pk%}">entfernen</a></li>
|
|
|
|
|
{%endfor%}
|
|
|
|
|
</ul>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<form action="{%url 'signage:work_add' shift.pk%}?redir={{request.path}}" method="post">
|
|
|
|
|
{% csrf_token %}
|
|
|
|
|
{% for field in backup_form%}
|
|
|
|
|
<div class="field">
|
|
|
|
|
{% if field.widget_type == 'checkbox' %}
|
|
|
|
|
<div class="control">
|
|
|
|
|
<label class="checkbox" for="{{ field.id_for_label }}">{{ field }} {{ field.label }}</label>
|
|
|
|
|
</div>
|
|
|
|
|
{% else %}
|
|
|
|
|
<label class="label" for="{{ field.id_for_label }}">{{ field.label }}</label>
|
|
|
|
|
<div class="control">
|
|
|
|
|
{{ field }}
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% for error in field.errors %}
|
|
|
|
|
<p class="help is-danger">{{ error }}</p>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% if field.help_text %}
|
|
|
|
|
<p class="help">{{ field.help_text }}</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
<button class="button is-link" type="submit">Team hinzufuegen</button>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|
|
|
|
|