templates/hospital/index.html_1.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{% trans %}Hospital index{%endtrans%} {% endblock %}
  3. {% block body %}
  4. <h1>{% trans %}Hospital index{% endtrans %}</h1>
  5. <div class='table-scrollable'>
  6. <table >
  7. <thead>
  8. <tr>
  9. <th>{% trans %}Id{% endtrans %}</th>
  10. <th>{% trans %}Name{% endtrans %}</th>
  11. <th>{% trans %}Description{% endtrans %}</th>
  12. <th>{% trans %}City{% endtrans %}</th>
  13. <th>{% trans %}Subdivision{% endtrans %}</th>
  14. <th>{% trans %}Category{% endtrans %}</th>
  15. <th>{% trans %}actions{% endtrans %}</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. {% for hospital in hospitals %}
  20. <tr>
  21. <td>{{ hospital.id }}</td>
  22. <td>{{ hospital.name }}</td>
  23. <td>{{ hospital.description }}</td>
  24. <td>{{ hospital.municipality.subdivision.city }}</td>
  25. <td>{{ hospital.municipality }}</td>
  26. <td>{{ hospital.hospitalCategory }}</td>
  27. <td>
  28. <a href="{{ path('hospital_show', {'id': hospital.id}) }}" class=" w3-btn w3-teal w3-animate-fading w3-small w3-round-xlarge"><span class="fa fa-eye"></span>{% trans %}show{% endtrans %}</a>
  29. {% if (is_granted('ROLE_HABITECH')) %}
  30. <a href="{{ path('hospital_edit', {'id': hospital.id}) }}" class=" w3-btn w3-green w3-animate-fading w3-small w3-round-xlarge"><span class="fa fa-edit"></span>{% trans %}edit{% endtrans %}</a>
  31. <a href="{{ path('child_hospital_index', {'id': hospital.id}) }}" class=" w3-btn w3-blue w3-animate-fading w3-small w3-round-xlarge"><span class="fa fa-child"></span>{% trans %}see children{% endtrans %}</a>
  32. {% endif %}
  33. </td>
  34. </tr>
  35. {% else %}
  36. <tr>
  37. <td colspan="5">{% trans %} no records found{% endtrans %}</td>
  38. </tr>
  39. {% endfor %}
  40. </tbody>
  41. </table>
  42. </div>
  43. {% if is_granted('ROLE_HABITECH') %}
  44. <a href="{{ path('hospital_new') }}">{% trans %} Create new {% endtrans %}</a>
  45. {% endif %}
  46. {% endblock %}