templates/entreprise/index.html.twig line 1
{% extends 'base.html.twig' %}
{% block title %}Entreprise index{% endblock %}
{% block body %}
<div class="container">
<h1>Entreprise index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>NomCommercial</th>
<th>Usager</th>
<th>FormeJuridique</th>
<th>Siret</th>
<th>Statut</th>
<th>Naf</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for entreprise in entreprises %}
<tr>
<td>{{ entreprise.id }}</td>
<td>{{ entreprise.nomCommercial }}</td>
<td>{{ entreprise.usager.nomComplet }}</td>
<td>{{ entreprise.formeJuridique }}</td>
<td>{{ entreprise.siret }}</td>
<td>{{ entreprise.statut }}</td>
<td>{{ entreprise.naf }}</td>
<td>
<button type="button" class="btn btn-sm btn-primary" onclick="openGetInEditor('{{ path('app_entreprise_show', {'id': entreprise.id}) }}')">show</button>
<button type="button" class="btn btn-sm btn-success" onclick="openGetInEditor('{{ path('app_entreprise_edit', {'id': entreprise.id}) }}')">edit</button>
</td>
</tr>
{% else %}
<tr>
<td colspan="26">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<button class="btn btn-success" onclick="openGetInEditor('{{ path('app_entreprise_new') }}')">Create new</button></div>
{% endblock %}