Skip to content
Snippets Groups Projects
Commit af325aa7 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Extend template with view for parents, advances #9.

parent 3c1db933
No related branches found
No related tags found
No related merge requests found
......@@ -116,6 +116,30 @@
</td>
</tr>
</table>
<h3>{% blocktrans %}Kontaktdaten der Erziehungsberechtigten{% endblocktrans %}</h3>
{% for guardian in person.guardians_parents %}
<table class="table table-responsive table-border table-striped">
<tr>
<td><span class="glyphicon glyphicon-user"></span></td>
<td>{{ guardian.given_name }}</td>
<td>{{ guardian.sn }}</td>
</tr>
<tr>
<td><span class="glyphicon glyphicon-home"></span></td>
<td colspan="2">{{ guardian.home_postal_address }}</td>
</tr>
<tr>
<td><span class="glyphicon glyphicon-phone-alt"></span></td>
<td>{{ guardian.mobile }}</td>
<td>{{ person.home_phone }}</td>
</tr>
<tr>
<td><span class="glyphicon glyphicon-envelope"></span></td>
<td colspan="2">{{ guardian.mail }}</td>
</tr>
</table>
{% endfor %}
{% else %}
<h2>{% blocktrans %}Person nicht gefunden{% endblocktrans %}</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment