Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

edit-cart.html.twig 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {% extends '@LcShop/backend/default/show.html.twig' %}
  2. {% import '@LcShop/backend/default/block/macros.html.twig' as macros %}
  3. {% import '@LcShop/backend/order/macros.html.twig' as orderMacros %}
  4. {% block main %}
  5. {% form_theme form_order_reduction_cart '@LcShop/backend/form/custom_bootstrap_4.html.twig' %}
  6. {% form_theme form_add_product_to_order '@LcShop/backend/form/custom_bootstrap_4.html.twig' %}
  7. {% form_theme form_order_reduction_credit '@LcShop/backend/form/custom_bootstrap_4.html.twig' %}
  8. <div class="lc-vue-js-container" id="lc-order-edit">
  9. <div class="row">
  10. {{ orderMacros.mainInfo() }}
  11. <template v-if="order.user">
  12. {{ orderMacros.addressInfo() }}
  13. </template>
  14. {{ macros.startCard(12, 'OrderShop.resume') }}
  15. {% include '@LcShop/backend/order/form/card_orderproducts.html.twig' %}
  16. {#
  17. {{ macros.startCard(0, 'OrderShop.orderReductionCredit', 'success') }}
  18. {{ form_start(form_order_reduction_credit, {'attr': { 'id' : 'orderReductionCredit'}}) }}
  19. {{ form_end(form_order_reduction_credit) }}
  20. {{ macros.endCard }}#}
  21. {# {% include '@LcShop/backend/order/form/modal_reductioncart.html.twig' %}#}
  22. {{ macros.cardOverlay('isLoading') }}
  23. <div class="col-6">
  24. <h6><strong>Historiques des paiments</strong></h6>
  25. {#TODO: afficher si la commande est règlé et afficher une alerte si le montant des paiments est supérieur au montant total de la commande#}{##}{##}
  26. ${order.orderPaid}
  27. <ul v-for="(orderPayment, i) in order.orderPayments">
  28. <li>${orderPayment}</li>
  29. </ul>
  30. <button type="button" class="btn btn-default" data-toggle="modal" data-target="#modal-order-payment">
  31. {{ "action.addOrderPayment"|trans }}
  32. </button>
  33. </div>
  34. {{ macros.endCard() }}
  35. {% include '@LcShop/backend/order/form/modal_invoiceaddress.html.twig' %}
  36. {% include '@LcShop/backend/order/form/modal_deliveryaddress.html.twig' %}
  37. {% include '@LcShop/backend/order/form/modal_deliveryavailability.html.twig' %}
  38. {% include '@LcShop/backend/order/form/modal_orderstatus.html.twig' %}
  39. {% include '@LcShop/backend/order/form/modal_reductioncredit.html.twig' %}
  40. {% include '@LcShop/backend/order/form/modal_reductioncart.html.twig' %}
  41. {% include '@LcShop/backend/order/form/modal_addproducttoorder.html.twig' %}
  42. {# {{ macros.startCard(3, 'OrderShop.addProduct', 'success') }}
  43. {% include '@LcShop/backend/order/form/addproducttoorder.html.twig' %}
  44. {{ macros.endCard(3) }}
  45. {{ macros.startCard(0, 'OrderShop.orderReductionCart', 'success') }}
  46. {{ form_start(form_order_reduction_cart, {'attr': { 'id' : 'orderReductionCartForm'}}) }}
  47. {{ form_end(form_order_reduction_credit) }}
  48. {{ macros.endCard(3) }}#}
  49. </div>
  50. </div>
  51. {% endblock %}
  52. {% block script_javascript %}
  53. {{ parent() }}
  54. {% include '@LcShop/backend/default/block/script-vuejs.html.twig' %}
  55. <script src="{{ asset('bundles/lcshop/js/backend/script/order/vuejs-order.js') }}"></script>
  56. {% endblock %}