{% extends 'higotrigo/base-higotrigo.html.twig' %}
{% block breadcrumbs %}
<ul class="breadcrumb">
<li><a href="/"><i class="icon-home2 position-left"></i>{% trans %}Home{% endtrans %}</a></li>
<li class="active"><i class="icon-user-plus position-left"></i>{% trans %}Menu List{% endtrans %}</li>
</ul>
{% endblock %}
{% block content %}
<div class="panel">
<div class="panel-heading">
<div class="row">
<h1 class="panel-title col-xs-12 col-md-9">
<strong>{% trans %}
Indice de Menús
{% endtrans %}<a class="heading-elements-toggle">
<i class="icon-more"></i>
</a>
</strong>
</h1>
<div class="col-md-3 col-xs-12" style="padding-top: 5px; padding-left: 15px;padding-right: 15px">
<div class="form-group form-group-material">
<div class="input-group teal">
<span class="input-group-addon bg-teal-800"><i class="icon-floppy-disk"></i></span>
<a href="{{ path('app_ht_menu_new') }}" class="btn bg-green-600 btn-block">Agregar un nuevo Menú</a>
</div>
</div>
</div>
</div>
</div>
<div class="panel-body">
<table class="table datatable-responsive">
<thead>
<tr>
<th>Nombre</th>
<th>Beneficio</th>
<th>Precio Total</th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
{% for ht_menu in ht_menus %}
<tr>
<td>{{ ht_menu.name }}</td>
<td>{{ ht_menu.beneficio }}</td>
<td>{{ ht_menu.totalPrice }}</td>
<td>
<a href="{{ path('app_ht_menu_edit', {'id': ht_menu.id}) }}">Editar</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="4">No se encontraron registros</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type="text/javascript" src="{{ asset('assets/js/plugins/tables/datatables/datatables.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/js/plugins/tables/datatables/extensions/responsive.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/js/pages/datatables_responsive.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/js/pages/datatables_advanced.js') }}"></script>
{% endblock %}