templates/edit_order.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block body %}
  3. <div id="main-contents" class="edit-order two-thirds">
  4. <h1>{{ page_title }}</h1>
  5. <h2>Orden del día {{ order.supplydate | date('d/m/Y')}}</h2>
  6. {{ form_start(form) }}
  7. <table class="vlv-table dt" id="edit-picklist">
  8. <thead>
  9. <tr class="vlv-row vlv-header">
  10. <td class="vlv-cell">Producto</td>
  11. <td class="vlv-cell">Cantidad a reponer</td>
  12. </tr>
  13. </thead>
  14. <tbody>
  15. {% for od in odata %}
  16. {% if od.production_type == 'dly' %}
  17. {% set requested_qty_field = attribute(form, 'requested_qty_' ~ od.pt_id ) %}
  18. <tr class="vlv-row {{ cycle(['odd', 'even'], loop.index0 ) }}">
  19. <td>{{ od.name }} </td>
  20. <td class="vlv-cell">{{ form_widget(requested_qty_field) }}</td>
  21. </tr>
  22. {% endif %}
  23. {% endfor %}
  24. </tbody>
  25. </table>
  26. <div class="button-group-container">
  27. <div class="vlv-button-group">
  28. <div class="vlv-button square">
  29. <a href="{{ path('browse_order') }}"><i class="fas fa-undo fa-1x"></i>&nbsp;Volver</a>
  30. </div>
  31. {% if order.id %}
  32. <div class="vlv-button square">
  33. <a href="{{ path('send_order', {'date': order.supplydate | date('Y-m-d')}) }}"><i class="fas fa-upload fa-1x"></i>&nbsp;Enviar</a>
  34. </div>
  35. {% endif %}
  36. <div class="vlv-button">
  37. {{ form_widget(form.save, {'name': 'Guardar'}) }}
  38. </div>
  39. </div>
  40. </div>
  41. {{ form_end(form) }}
  42. </div>
  43. {% endblock %}