templates/callcenter/pedido.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Pedidio{% endblock %}
  3. {% block bodyclass %}pedido{% endblock %}
  4. {% block body %}
  5. {% if cabecera.estado == 'EDICION' %}
  6.   <div class="alert alert-warning mb-0" role="alert">
  7.     <strong>MODO EDICIÓN!</strong> Es importante terminar el proceso completo.
  8.   </div>
  9. {% endif %}
  10. <main class="container-fluid bg-dark" {{ stimulus_controller('content-loader') }}>
  11.   <div class="row">
  12.     <div class="col-6 rounded-end-1 bg-white">
  13.       <div class="container p-3">
  14.         <div class="row justify-content-center">
  15.           <div class="col-5">
  16.             <button type="button"
  17.                     class="btn btn-outline-secondary shadow-sm w-100"
  18.                     data-action="click->content-loader#loadModal"
  19.                     data-sucursal="{{ cabecera.sucursal }}"
  20.                     data-url="{{ path('load_modal', { modalType: 'search' }) }}"
  21.                     data-modal=".searchModal">
  22.               <i class="bi bi-search"></i> Buscar Producto
  23.             </button>
  24.           </div>
  25.           <div class="col-1">
  26.             {% if top %}
  27.               <button
  28.                 type="button"
  29.                 class="btn btn-outline-secondary shadow-sm w-100"
  30.                 data-bs-toggle="modal"
  31.                 data-bs-target="#topModal"
  32.               >
  33.                 <i class="bi bi-stars"></i>
  34.               </button>
  35.             {% endif %}
  36.           </div>
  37.         </div>
  38.       </div>
  39.       <div class="row">
  40.         <div class="col-6 border p-0">
  41.             <div class="px-3 py-2 border-bottom border-5 bg-light">
  42.               <span class="fs-6 fw-semibold"><strong>Favoritos</strong></span>
  43.             </div>
  44.             <div class="list-group list-group-flush border-bottom scrollarea" style="height: calc(100vh - 171px);">
  45.               {{ include('callcenter/_fav.html.twig', { items: favoritos, sucursal: cabecera.sucursal }) }}
  46.             </div>
  47.         </div>
  48.         <div class="col-6 border border-start-0 p-0">
  49.           <div class="px-3 py-2 border-bottom border-5 bg-light">
  50.             <span class="fs-6 fw-semibold"><strong>Articulos</strong></span>
  51.           </div>
  52.           <div data-content-loader-target="articulos"></div>
  53.         </div>
  54.       </div>
  55.     </div>
  56.     <div class="col-6 bg-dark position-sticky" id="cabecera" data-cabecera="{{ cabecera.id }}">
  57.       {{ include('callcenter/_cabecera.html.twig', { cabecera: cabecera}) }}
  58.       <div data-content-loader-target="pedido">{{ include('callcenter/_lineas.html.twig', { cabecera: cabecera}) }}</div>
  59.       <div class="d-grid gap-2">
  60.         <a href="{{ path('cc_confirmarpedido', { id: cabecera.id }) }}" class="btn btn-success btn-lg">Hacer Pedido</a>
  61.       </div>
  62.     </div>
  63.   </div>
  64.   {{ include('callcenter/_modal.html.twig', {
  65.     modalTitle: 'Agregar nuevo producto',
  66.   }) }}
  67. </main>
  68. {{ include('callcenter/top_modal.html.twig') }}
  69. {% endblock %}