30 lines
1.4 KiB
Twig
30 lines
1.4 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Kontaktperson index{% endblock %}
|
|
|
|
{% block body %}
|
|
<h1 class="headlineFont">Kontaktpersonen</h1>
|
|
{% if minderjaehrig and kontaktpeople is empty %}
|
|
<div class="alert alert-danger" role="alert">Der Schüler ist erst {{ alter }} Jahre alt, es muss mindestens eine Kontaktperson hinzugefügt werden!</div>
|
|
{% elseif not minderjaehrig%}
|
|
<div class="alert alert-primary" role="alert">Der Schüler ist {{ alter }} Jahre alt, das Erfassen von Kontaktpersonen ist freiwillig!</div>
|
|
{% endif %}
|
|
|
|
{{ include('kontaktperson/_showtable.html.twig', {'kontaktpeople': kontaktpeople}) }}
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<a class="btn controlButton buttonFont blankLinkButton pull-left" href="{{ path('kontaktperson_new') }}">Kontaktperson anlegen</a>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
<button type="button" class="btn controlButton buttonFont btn-block blankLinkButton" onclick="window.history.back()">Zurück</button>
|
|
</div>
|
|
<div class="col-lg-6">
|
|
<a class="btn controlButton buttonFont btn-block blankLinkButton {% if minderjaehrig and kontaktpeople is empty %} disabled{% endif %}" {% if minderjaehrig and kontaktpeople is not empty or not minderjaehrig%}href="{{ path('vorbildung_index') }}"{% endif %}>Weiter</a>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|