#42: allow updates to menuitems
This commit is contained in:
parent
0068654885
commit
674adcba60
14 changed files with 258 additions and 7 deletions
35
templates/menu_item/index.html.twig
Normal file
35
templates/menu_item/index.html.twig
Normal file
|
@ -0,0 +1,35 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}MenuItem index{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>MenuItem index</h1>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for menu_item in menu_items %}
|
||||
<tr>
|
||||
<td>{{ menu_item.id }}</td>
|
||||
<td>{{ menu_item.name }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_menu_item_show', {'id': menu_item.id}) }}">show</a>
|
||||
<a href="{{ path('app_menu_item_edit', {'id': menu_item.id}) }}">edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="3">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_menu_item_new') }}">Create new</a>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue