templates/entreprise/index.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block title %}Entreprise index{% endblock %}
  3. {% block body %}
  4. <div class="container">
  5. <h1>Entreprise index</h1>
  6.     <table class="table">
  7.         <thead>
  8.             <tr>
  9.                 <th>Id</th>
  10.                 <th>NomCommercial</th>
  11.                 <th>Usager</th>
  12.                 <th>FormeJuridique</th>
  13.                 <th>Siret</th>
  14.                 <th>Statut</th>
  15.                 <th>Naf</th>
  16.                 <th>Actions</th>
  17.             </tr>
  18.         </thead>
  19.         <tbody>
  20.         {% for entreprise in entreprises %}
  21.             <tr>
  22.                 <td>{{ entreprise.id }}</td>
  23.                 <td>{{ entreprise.nomCommercial }}</td>
  24.                 <td>{{ entreprise.usager.nomComplet }}</td>
  25.                 <td>{{ entreprise.formeJuridique }}</td>
  26.                 <td>{{ entreprise.siret }}</td>
  27.                 <td>{{ entreprise.statut }}</td>
  28.                 <td>{{ entreprise.naf }}</td>
  29.                 <td>
  30.                     <button type="button" class="btn btn-sm btn-primary" onclick="openGetInEditor('{{ path('app_entreprise_show', {'id': entreprise.id}) }}')">show</button>
  31.                     <button type="button" class="btn btn-sm btn-success" onclick="openGetInEditor('{{ path('app_entreprise_edit', {'id': entreprise.id}) }}')">edit</button>
  32.                 </td>
  33.             </tr>
  34.         {% else %}
  35.             <tr>
  36.                 <td colspan="26">no records found</td>
  37.             </tr>
  38.         {% endfor %}
  39.         </tbody>
  40.     </table>
  41.     <button class="btn btn-success" onclick="openGetInEditor('{{ path('app_entreprise_new') }}')">Create new</button></div>
  42. {% endblock %}