templates/organisation/index.html.twig line 1
{% extends 'base.html.twig' %}
{% block title %}Organisation index{% endblock %}
{% block body %}
<div class="container">
<h1>Organisation index</h1>
<table id="tb" class="table">
<thead>
<tr>
<th>Id</th>
<th>Libelle</th>
<th>Siren</th>
<th>Etablissement</th>
<th>ContactsOrganisation</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for organisation in organisations %}
<tr>
<td>{{ organisation.id }}</td>
<td>{{ organisation.libelle }}</td>
<td>{{ organisation.siren }}</td>
<td></td>
<td></td>
<td>
<button type="button" class="btn btn-sm btn-primary" onclick="openGetInEditor('{{ path('app_organisation_show', {'id': organisation.id}) }}')">show</button>
<button type="button" class="btn btn-sm btn-success" onclick="openGetInEditor('{{ path('app_organisation_edit', {'id': organisation.id}) }}')">edit</button>
</td>
</tr>
{% else %}
<tr>
<td colspan="6">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<button class="btn btn-success" onclick="openGetInEditor('{{ path('app_entreprise_new') }}')">Create new</button>
</div>
<script>
$(document).ready(function () {
paginate("#tb", 10)
})
</script>
{% endblock %}