瀏覽代碼

Pages commandes

feature/export_comptable
Fab 4 年之前
父節點
當前提交
71bb96d638
共有 2 個文件被更改,包括 44 次插入30 次删除
  1. +41
    -30
      ShopBundle/Resources/views/backend/order/edit-cart.html.twig
  2. +3
    -0
      ShopBundle/Resources/views/backend/order/macros.html.twig

+ 41
- 30
ShopBundle/Resources/views/backend/order/edit-cart.html.twig 查看文件

@@ -7,54 +7,65 @@
{% form_theme form_order_reduction_cart '@LcShop/backend/form/custom_bootstrap_4.html.twig' %}
{% form_theme form_add_product_to_order '@LcShop/backend/form/custom_bootstrap_4.html.twig' %}
{% form_theme form_order_reduction_credit '@LcShop/backend/form/custom_bootstrap_4.html.twig' %}
<div class="lc-vue-js-container" id="lc-order-edit">
<div class="lc-vue-js-container" id="lc-order-edit">


<div class="row">
<div class="row">

{{ orderMacros.mainInfo() }}
{{ orderMacros.mainInfo() }}

<template v-if="order.user">
<template v-if="order.user">
{{ orderMacros.addressInfo() }}
</template>
{{ macros.startCard(12, 'OrderShop.resume') }}
</template>
{{ macros.startCard(12, 'OrderShop.resume') }}



{% include '@LcShop/backend/order/form/card_orderproducts.html.twig' %}
{% include '@LcShop/backend/order/form/card_orderproducts.html.twig' %}


{#
{{ macros.startCard(0, 'OrderShop.orderReductionCredit', 'success') }}
{{ form_start(form_order_reduction_credit, {'attr': { 'id' : 'orderReductionCredit'}}) }}
{{ form_end(form_order_reduction_credit) }}
{{ macros.endCard }}#}
{#
{{ macros.startCard(0, 'OrderShop.orderReductionCredit', 'success') }}
{{ form_start(form_order_reduction_credit, {'attr': { 'id' : 'orderReductionCredit'}}) }}
{{ form_end(form_order_reduction_credit) }}
{{ macros.endCard }}#}

{# {% include '@LcShop/backend/order/form/modal_reductioncart.html.twig' %}#}
{# {% include '@LcShop/backend/order/form/modal_reductioncart.html.twig' %}#}


{{ macros.cardOverlay('isLoading') }}
{{ macros.endCard() }}
{{ macros.cardOverlay('isLoading') }}
<div class="col-6">
<h6><strong>Historiques des paiments</strong></h6>
{#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#}{##}{##}
${order.orderPaid}
<ul v-for="(orderPayment, i) in order.orderPayments">
<li>${orderPayment}</li>
</ul>
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#modal-order-payment">
{{ "action.addOrderPayment"|trans }}
</button>
</div>
{{ macros.endCard() }}


{% include '@LcShop/backend/order/form/modal_invoiceaddress.html.twig' %}
{% include '@LcShop/backend/order/form/modal_deliveryaddress.html.twig' %}
{% include '@LcShop/backend/order/form/modal_deliveryavailability.html.twig' %}
{% include '@LcShop/backend/order/form/modal_orderstatus.html.twig' %}
{% include '@LcShop/backend/order/form/modal_reductioncredit.html.twig' %}
{% include '@LcShop/backend/order/form/modal_reductioncart.html.twig' %}
{% include '@LcShop/backend/order/form/modal_addproducttoorder.html.twig' %}
{% include '@LcShop/backend/order/form/modal_invoiceaddress.html.twig' %}
{% include '@LcShop/backend/order/form/modal_deliveryaddress.html.twig' %}
{% include '@LcShop/backend/order/form/modal_deliveryavailability.html.twig' %}
{% include '@LcShop/backend/order/form/modal_orderstatus.html.twig' %}
{% include '@LcShop/backend/order/form/modal_reductioncredit.html.twig' %}
{% include '@LcShop/backend/order/form/modal_reductioncart.html.twig' %}
{% include '@LcShop/backend/order/form/modal_addproducttoorder.html.twig' %}

{# {{ macros.startCard(3, 'OrderShop.addProduct', 'success') }}
{% include '@LcShop/backend/order/form/addproducttoorder.html.twig' %}
{{ macros.endCard(3) }}
{# {{ macros.startCard(3, 'OrderShop.addProduct', 'success') }}
{% include '@LcShop/backend/order/form/addproducttoorder.html.twig' %}
{{ macros.endCard(3) }}

{{ macros.startCard(0, 'OrderShop.orderReductionCart', 'success') }}
{{ form_start(form_order_reduction_cart, {'attr': { 'id' : 'orderReductionCartForm'}}) }}
{{ form_end(form_order_reduction_credit) }}
{{ macros.endCard(3) }}#}
</div>
{{ macros.startCard(0, 'OrderShop.orderReductionCart', 'success') }}
{{ form_start(form_order_reduction_cart, {'attr': { 'id' : 'orderReductionCartForm'}}) }}
{{ form_end(form_order_reduction_credit) }}
{{ macros.endCard(3) }}#}
</div>
</div>
{% endblock %}

{% block script_javascript %}

+ 3
- 0
ShopBundle/Resources/views/backend/order/macros.html.twig 查看文件

@@ -143,6 +143,9 @@
<div class="info-box-content">
<span class="info-box-text">{{ "field.OrderShop.status"|trans({}, 'lcshop') }}</span>
<strong> ${order.orderStatus}</strong>
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#modal-order-status">
{{ "action.edit"|trans }}
</button>
</div>
</div>
</div>

Loading…
取消
儲存