ajout des cotroleur avec template pour les entitys
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Menu{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Menu</h1>
|
||||
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<td>{{ menu.id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<td>{{ menu.nom }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>DateDeCreation</th>
|
||||
<td>{{ menu.dateDeCreation ? menu.dateDeCreation|date('Y-m-d H:i:s') : '' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_menu_index') }}">back to list</a>
|
||||
|
||||
<a href="{{ path('app_menu_edit', {'id': menu.id}) }}">edit</a>
|
||||
|
||||
{{ include('menu/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user