templates/death_certificate/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{% trans%}DeathCertificate {% endtrans %}{% endblock %}
  3. {% block body %}
  4. <h1>{% trans %}DeathCertificate index{% endtrans %}</h1>
  5. <div class='table-scrollable'>
  6. <table class="">
  7. <thead>
  8. <tr>
  9. <th>{% trans %}Id{% endtrans %}</th>
  10. <th>{% trans %}NameOfTheDeadPerson{% endtrans %}</th>
  11. <th>{% trans %}SurnameOfTheDeadPerson{% endtrans %}</th>
  12. <th>{% trans %}DateOfBirth{% endtrans %}</th>
  13. <th>{% trans %}Sex{% endtrans %}</th>
  14. <th>{% trans %}MaritalStatus{% endtrans %}</th>
  15. <th>{% trans %}Profession{% endtrans %}</th>
  16. <th>{% trans %}PlaceOfResidence{% endtrans %}</th>
  17. <th>{% trans %}Action{% endtrans %}</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. {% for death_certificate in death_certificates %}
  22. <tr>
  23. <td>{{ death_certificate.id }}</td>
  24. <td>{{ death_certificate.nameOfTheDeadPerson }}</td>
  25. <td>{{ death_certificate.surnameOfTheDeadPerson }}</td>
  26. <td>{{ death_certificate.dateOfBirth ? death_certificate.dateOfBirth|date('Y-m-d H:i:s') : '' }}</td>
  27. <td>{{ death_certificate.sex }}</td>
  28. <td>{{ death_certificate.maritalStatus }}</td>
  29. <td>{{ death_certificate.profession }}</td>
  30. <td>{{ death_certificate.placeOfResidence }}</td>
  31. <td>
  32. <a href="{{ path('death_certificate_show', {'id': death_certificate.id}) }}">{% trans %}show{% endtrans %}</a>
  33. <a href="{{ path('death_certificate_edit', {'id': death_certificate.id}) }}">{% trans %}edit{% endtrans %}</a>
  34. </td>
  35. </tr>
  36. {% else %}
  37. <tr>
  38. <td colspan="9">{% trans %} no records found{% endtrans %}</td>
  39. </tr>
  40. {% endfor %}
  41. </tbody>
  42. </table>
  43. </div>
  44. <a href="{{ path('death_certificate_new') }}">{% trans %} Create new {% endtrans %}</a>
  45. {% endblock %}