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.

89 lines
4.1KB

  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. {{ macros.cardOverlay('isLoading') }}
  17. <div class="col-6">
  18. <h6><strong>Historiques des paiments</strong></h6>
  19. {#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#}
  20. ${order.orderPaid}
  21. <ul v-for="(orderPayment, i) in order.orderPayments">
  22. <li>${orderPayment}</li>
  23. </ul>
  24. </div>
  25. {{ macros.endCard() }}
  26. <button type="button" class="btn btn-default" data-toggle="modal" data-target="#modal-order-payment">
  27. {{ "action.addOrderPayment"|trans }}
  28. </button>
  29. {% if form_order_invoice_address is defined %}
  30. {% include '@LcShop/backend/order/form/modal_invoiceaddress.html.twig' %}
  31. {% endif %}
  32. {% if form_order_delivery_address is defined %}
  33. {% include '@LcShop/backend/order/form/modal_deliveryaddress.html.twig' %}
  34. {% endif %}
  35. {% if form_order_delivery_availability is defined %}
  36. {% include '@LcShop/backend/order/form/modal_deliveryavailability.html.twig' %}
  37. {% endif %}
  38. {% if form_order_status is defined %}
  39. {% include '@LcShop/backend/order/form/modal_orderstatus.html.twig' %}
  40. {% endif %}
  41. {% if form_add_order_reduction_credit is defined %}
  42. {% include '@LcShop/backend/order/form/modal_addreductioncredit.html.twig' %}
  43. {% endif %}
  44. {% if form_add_order_reduction_cart is defined %}
  45. {% include '@LcShop/backend/order/form/modal_addreductioncart.html.twig' %}
  46. {% endif %}
  47. {% if form_delete_order_reduction_cart is defined %}
  48. {% include '@LcShop/backend/order/form/modal_deletereductioncart.html.twig' %}
  49. {% endif %}
  50. {% if form_delete_order_reduction_credit is defined %}
  51. {% include '@LcShop/backend/order/form/modal_deletereductioncredit.html.twig' %}
  52. {% endif %}
  53. {% if form_add_product_to_order is defined %}
  54. {% include '@LcShop/backend/order/form/modal_addproducttoorder.html.twig' %}
  55. {% endif %}
  56. {% if form_order_payment is defined %}
  57. {% include '@LcShop/backend/order/form/modal_orderpayment.html.twig' %}
  58. {% endif %}
  59. {# {{ macros.startCard(3, 'OrderShop.addProduct', 'success') }}
  60. {% include '@LcShop/backend/order/form/addproducttoorder.html.twig' %}
  61. {{ macros.endCard(3) }}
  62. {{ macros.startCard(0, 'OrderShop.orderReductionCart', 'success') }}
  63. {{ form_start(form_order_reduction_cart, {'attr': { 'id' : 'orderReductionCartForm'}}) }}
  64. {{ form_end(form_order_reduction_credit) }}
  65. {{ macros.endCard(3) }}#}
  66. </div>
  67. </div>
  68. {% endblock %}
  69. {% block script_javascript %}
  70. {{ parent() }}
  71. {% include '@LcShop/backend/default/block/script-vuejs.html.twig' %}
  72. <script src="{{ asset('bundles/lcshop/js/backend/script/order/vuejs-order.js') }}"></script>
  73. {% endblock %}