templates/organisation/index.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block title %}Organisation index{% endblock %}
  3. {% block body %}
  4.     <div class="container">
  5.         <h1>Organisation index</h1>
  6.         <table id="tb" class="table">
  7.             <thead>
  8.             <tr>
  9.                 <th>Id</th>
  10.                 <th>Libelle</th>
  11.                 <th>Siren</th>
  12.                 <th>Etablissement</th>
  13.                 <th>ContactsOrganisation</th>
  14.                 <th>actions</th>
  15.             </tr>
  16.             </thead>
  17.             <tbody>
  18.             {% for organisation in organisations %}
  19.                 <tr>
  20.                     <td>{{ organisation.id }}</td>
  21.                     <td>{{ organisation.libelle }}</td>
  22.                     <td>{{ organisation.siren }}</td>
  23.                     <td></td>
  24.                     <td></td>
  25.                     <td>
  26.                         <button type="button" class="btn btn-sm btn-primary" onclick="openGetInEditor('{{ path('app_organisation_show', {'id': organisation.id}) }}')">show</button>
  27.                         <button type="button" class="btn btn-sm btn-success" onclick="openGetInEditor('{{ path('app_organisation_edit', {'id': organisation.id}) }}')">edit</button>
  28.                     </td>
  29.                 </tr>
  30.             {% else %}
  31.                 <tr>
  32.                     <td colspan="6">no records found</td>
  33.                 </tr>
  34.             {% endfor %}
  35.             </tbody>
  36.         </table>
  37.         <button class="btn btn-success" onclick="openGetInEditor('{{ path('app_entreprise_new') }}')">Create new</button>
  38.     </div>
  39.     <script>
  40.          $(document).ready(function () {
  41.              paginate("#tb", 10)
  42.          })
  43.     </script>
  44. {% endblock %}