templates/higotrigo/ht_menu/index.html.twig line 1

Open in your IDE?
  1. {% extends 'higotrigo/base-higotrigo.html.twig' %}
  2. {% block breadcrumbs %}
  3. <ul class="breadcrumb">
  4.     <li><a href="/"><i class="icon-home2 position-left"></i>{% trans %}Home{% endtrans %}</a></li>
  5.     <li class="active"><i class="icon-user-plus position-left"></i>{% trans %}Menu List{% endtrans %}</li>
  6. </ul>
  7. {% endblock %}
  8. {% block content %}
  9.     <div class="panel">
  10.         <div class="panel-heading">
  11.             <div class="row">
  12.                 <h1 class="panel-title col-xs-12 col-md-9">
  13.                     <strong>{% trans %}
  14.                         Indice de Menús
  15.                         {% endtrans %}<a class="heading-elements-toggle">
  16.                             <i class="icon-more"></i>
  17.                         </a>
  18.                     </strong>
  19.                 </h1>
  20.                 <div class="col-md-3 col-xs-12" style="padding-top: 5px; padding-left: 15px;padding-right: 15px">
  21.                     <div class="form-group form-group-material">
  22.                         <div class="input-group teal">
  23.                             <span class="input-group-addon bg-teal-800"><i class="icon-floppy-disk"></i></span>
  24.                             <a href="{{ path('app_ht_menu_new') }}" class="btn bg-green-600 btn-block">Agregar un nuevo Menú</a>
  25.                         </div>
  26.                     </div>
  27.                 </div>
  28.             </div>
  29.         </div>
  30.         <div class="panel-body">
  31.             <table class="table datatable-responsive">
  32.                 <thead>
  33.                     <tr>
  34.                         <th>Nombre</th>
  35.                         <th>Beneficio</th>
  36.                         <th>Precio Total</th>
  37.                         <th>Acciones</th>
  38.                     </tr>
  39.                 </thead>
  40.                 <tbody>
  41.                     {% for ht_menu in ht_menus %}
  42.                         <tr>
  43.                             <td>{{ ht_menu.name }}</td>
  44.                             <td>{{ ht_menu.beneficio }}</td>
  45.                             <td>{{ ht_menu.totalPrice }}</td>
  46.                             <td>
  47.                                 <a href="{{ path('app_ht_menu_edit', {'id': ht_menu.id}) }}">Editar</a>
  48.                             </td>
  49.                         </tr>
  50.                     {% else %}
  51.                         <tr>
  52.                             <td colspan="4">No se encontraron registros</td>
  53.                         </tr>
  54.                     {% endfor %}
  55.                 </tbody>
  56.             </table>
  57.         </div>
  58.     </div>
  59. {% endblock %}
  60. {% block javascripts %}
  61.     {{ parent() }}
  62.     <script type="text/javascript" src="{{ asset('assets/js/plugins/tables/datatables/datatables.min.js') }}"></script>
  63.     <script type="text/javascript" src="{{ asset('assets/js/plugins/tables/datatables/extensions/responsive.min.js') }}"></script>
  64.     <script type="text/javascript" src="{{ asset('assets/js/pages/datatables_responsive.js') }}"></script>
  65.     <script type="text/javascript" src="{{ asset('assets/js/pages/datatables_advanced.js') }}"></script>
  66. {% endblock %}