Bugfix in Mailer

This commit is contained in:
m.scherg 2026-01-22 19:28:03 +01:00
parent 4c33b726be
commit ab39a78f2e

View File

@ -7,7 +7,7 @@
<table class="table table-hover"> <table class="table table-hover">
<tbody> <tbody>
<tr> <tr>
<th style="text-align:left; width: 30%;">Name (gesamt):</th> <th style="text-align:left; width: 30%;">Name:</th>
<td>{{ schueler.rufname }} {{ schueler.nachname }}</td> <td>{{ schueler.rufname }} {{ schueler.nachname }}</td>
</tr> </tr>
</tbody> </tbody>
@ -18,7 +18,13 @@
<tbody> <tbody>
<tr> <tr>
<th style="text-align:left; width: 30%;">Beruf:</th> <th style="text-align:left; width: 30%;">Beruf:</th>
<td>{{ ausbildung.beruf.bezeichnung }}</td> <td>
{% if ausbildung and ausbildung.beruf and ausbildung.beruf.bezeichnung %}
{{ ausbildung.beruf.bezeichnung }}
{% else %}
Ohne
{% endif %}
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>