You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

edit-cart.html.twig 3.6KB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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_addreductioncredit.html.twig' %}
  40. {% include '@LcShop/backend/order/form/modal_addreductioncart.html.twig' %}
  41. {% include '@LcShop/backend/order/form/modal_deletereductioncart.html.twig' %}
  42. {% include '@LcShop/backend/order/form/modal_deletereductioncredit.html.twig' %}
  43. {% include '@LcShop/backend/order/form/modal_addproducttoorder.html.twig' %}
  44. {# {{ macros.startCard(3, 'OrderShop.addProduct', 'success') }}
  45. {% include '@LcShop/backend/order/form/addproducttoorder.html.twig' %}
  46. {{ macros.endCard(3) }}
  47. {{ macros.startCard(0, 'OrderShop.orderReductionCart', 'success') }}
  48. {{ form_start(form_order_reduction_cart, {'attr': { 'id' : 'orderReductionCartForm'}}) }}
  49. {{ form_end(form_order_reduction_credit) }}
  50. {{ macros.endCard(3) }}#}
  51. </div>
  52. </div>
  53. {% endblock %}
  54. {% block script_javascript %}
  55. {{ parent() }}
  56. {% include '@LcShop/backend/default/block/script-vuejs.html.twig' %}
  57. <script src="{{ asset('bundles/lcshop/js/backend/script/order/vuejs-order.js') }}"></script>
  58. {% endblock %}