connexion base et création premier crud
This commit is contained in:
35
templates/droit/index.html.twig
Normal file
35
templates/droit/index.html.twig
Normal file
@@ -0,0 +1,35 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Droit index{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Droit index</h1>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>IdDroit</th>
|
||||
<th>LibDroit</th>
|
||||
<th>actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for droit in droits %}
|
||||
<tr>
|
||||
<td>{{ droit.idDroit }}</td>
|
||||
<td>{{ droit.libDroit }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_droit_show', {'idDroit': droit.idDroit}) }}">show</a>
|
||||
<a href="{{ path('app_droit_edit', {'idDroit': droit.idDroit}) }}">edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="3">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_droit_new') }}">Create new</a>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user