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.

66 lines
3.2KB

  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. <button type="button" class="btn btn-default" data-toggle="modal" data-target="#modal-order-payment">
  25. {{ "action.addOrderPayment"|trans }}
  26. </button>
  27. </div>#}
  28. {{ macros.endCard() }}
  29. {% include '@LcShop/backend/order/form/modal_invoiceaddress.html.twig' %}
  30. {% include '@LcShop/backend/order/form/modal_deliveryaddress.html.twig' %}
  31. {% include '@LcShop/backend/order/form/modal_deliveryavailability.html.twig' %}
  32. {% include '@LcShop/backend/order/form/modal_orderstatus.html.twig' %}
  33. {% include '@LcShop/backend/order/form/modal_addreductioncredit.html.twig' %}
  34. {% include '@LcShop/backend/order/form/modal_addreductioncart.html.twig' %}
  35. {% include '@LcShop/backend/order/form/modal_deletereductioncart.html.twig' %}
  36. {% include '@LcShop/backend/order/form/modal_deletereductioncredit.html.twig' %}
  37. {% include '@LcShop/backend/order/form/modal_addproducttoorder.html.twig' %}
  38. {# {{ macros.startCard(3, 'OrderShop.addProduct', 'success') }}
  39. {% include '@LcShop/backend/order/form/addproducttoorder.html.twig' %}
  40. {{ macros.endCard(3) }}
  41. {{ macros.startCard(0, 'OrderShop.orderReductionCart', 'success') }}
  42. {{ form_start(form_order_reduction_cart, {'attr': { 'id' : 'orderReductionCartForm'}}) }}
  43. {{ form_end(form_order_reduction_credit) }}
  44. {{ macros.endCard(3) }}#}
  45. </div>
  46. </div>
  47. {% endblock %}
  48. {% block script_javascript %}
  49. {{ parent() }}
  50. {% include '@LcShop/backend/default/block/script-vuejs.html.twig' %}
  51. <script src="{{ asset('bundles/lcshop/js/backend/script/order/vuejs-order.js') }}"></script>
  52. {% endblock %}