{% extends 'base.html.twig' %}
{% block title %}{% trans%}DeathCertificate {% endtrans %}{% endblock %}
{% block body %}
<h1>{% trans %}DeathCertificate index{% endtrans %}</h1>
<div class='table-scrollable'>
<table class="">
<thead>
<tr>
<th>{% trans %}Id{% endtrans %}</th>
<th>{% trans %}NameOfTheDeadPerson{% endtrans %}</th>
<th>{% trans %}SurnameOfTheDeadPerson{% endtrans %}</th>
<th>{% trans %}DateOfBirth{% endtrans %}</th>
<th>{% trans %}Sex{% endtrans %}</th>
<th>{% trans %}MaritalStatus{% endtrans %}</th>
<th>{% trans %}Profession{% endtrans %}</th>
<th>{% trans %}PlaceOfResidence{% endtrans %}</th>
<th>{% trans %}Action{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for death_certificate in death_certificates %}
<tr>
<td>{{ death_certificate.id }}</td>
<td>{{ death_certificate.nameOfTheDeadPerson }}</td>
<td>{{ death_certificate.surnameOfTheDeadPerson }}</td>
<td>{{ death_certificate.dateOfBirth ? death_certificate.dateOfBirth|date('Y-m-d H:i:s') : '' }}</td>
<td>{{ death_certificate.sex }}</td>
<td>{{ death_certificate.maritalStatus }}</td>
<td>{{ death_certificate.profession }}</td>
<td>{{ death_certificate.placeOfResidence }}</td>
<td>
<a href="{{ path('death_certificate_show', {'id': death_certificate.id}) }}">{% trans %}show{% endtrans %}</a>
<a href="{{ path('death_certificate_edit', {'id': death_certificate.id}) }}">{% trans %}edit{% endtrans %}</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="9">{% trans %} no records found{% endtrans %}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<a href="{{ path('death_certificate_new') }}">{% trans %} Create new {% endtrans %}</a>
{% endblock %}