Przeglądaj źródła

[Backend] Paramètres : isOpenFullTime

feature/module_traiteur_v1
Guillaume 4 lat temu
rodzic
commit
00201f67ca
4 zmienionych plików z 20 dodań i 13 usunięć
  1. +1
    -1
      ShopBundle/Resources/public/js/backend/script/merchant/vuejs-merchant.js
  2. +0
    -1
      ShopBundle/Resources/views/backend/merchant/form.html.twig
  3. +2
    -0
      ShopBundle/Resources/views/backend/merchant/panel_email.html.twig
  4. +17
    -11
      ShopBundle/Resources/views/backend/merchant/panel_order.html.twig

+ 1
- 1
ShopBundle/Resources/public/js/backend/script/merchant/vuejs-merchant.js Wyświetl plik

@@ -9,7 +9,7 @@ appOrder = new Vue({
{
addressType: null,
currentSection:'general',
isOpenFullTime: null,
isOpenFullTime: false,
sectionsArray: [
{
name: 'general',

+ 0
- 1
ShopBundle/Resources/views/backend/merchant/form.html.twig Wyświetl plik

@@ -15,7 +15,6 @@
<span class="glyphicon glyphicon-triangle-bottom"></span>
<i class="fa fa-exclamation-circle invalid-form"></i>
</button>

</li>
</ul>
</div>

+ 2
- 0
ShopBundle/Resources/views/backend/merchant/panel_email.html.twig Wyświetl plik

@@ -18,9 +18,11 @@
<div class="col-12">
{{ form_row(form.merchantConfigs['email-contact']) }}
</div>
{% if form.merchantConfigs['email-from-purchase-order'] is defined %}
<div class="col-12">
{{ form_row(form.merchantConfigs['email-from-purchase-order']) }}
</div>
{% endif %}
{% if form.merchantConfigs['purchase-order-email-content'] is defined %}
<div class="col-12">
{{ form_row(form.merchantConfigs['purchase-order-email-content']) }}

+ 17
- 11
ShopBundle/Resources/views/backend/merchant/panel_order.html.twig Wyświetl plik

@@ -2,13 +2,13 @@

{% import '@LcShop/backend/default/block/macros.html.twig' as macros %}


<script>
window.merchantPanelOrderValues = {
{% if form.type.vars.value %}isOpenFullTime: '{{ form.type.vars.value }}'{% endif %}
{% if form.merchantConfigs['is-open-full-time'] is defined %}isOpenFullTime: {{ form.merchantConfigs['is-open-full-time'].vars.data.value }}{% endif %}
};
</script>

{{ dump(form.merchantConfigs['is-open-full-time']) }}

<div class="row">
<div class="col-8">
@@ -21,7 +21,13 @@
</div>
{% if form.merchantConfigs['is-open-full-time'] is defined %}
<div class="col-12">
{{ form_row(form.merchantConfigs['is-open-full-time'], {'attr': {"v-model" : 'isOpenFullTime'}}) }}
{% for field in form.merchantConfigs['is-open-full-time'] %}
{% if field.vars.name == 'value' %}
{{ form_row(field, {'attr': {"v-model" : 'isOpenFullTime'}}) }}
{% else %}
{{ form_row(field) }}
{% endif %}
{% endfor %}
</div>
{% endif %}
{% if form.merchantConfigs['message-site-opening-background'] is defined %}
@@ -34,32 +40,32 @@
{{ form_row(form.merchantConfigs['message-site-opening']) }}
</div>
{% endif %}
<div class="col-6">
<div v-show="isOpenFullTime == false" class="col-6">
{{ form_row(form.merchantConfigs['order-open-day']) }}
</div>
<div class="col-6">
<div v-show="isOpenFullTime == false" class="col-6">
{{ form_row(form.merchantConfigs['order-open-time']) }}
</div>
{% if form.merchantConfigs['order-open-day-vip'] is defined %}
<div class="col-6">
<div v-show="isOpenFullTime == false" class="col-6">
{{ form_row(form.merchantConfigs['order-open-day-vip']) }}
</div>
{% endif %}
{% if form.merchantConfigs['order-open-time-vip'] is defined %}
<div class="col-6">
<div v-show="isOpenFullTime == false" class="col-6">
{{ form_row(form.merchantConfigs['order-open-time-vip']) }}
</div>
{% endif %}
<div class="col-6">
<div v-show="isOpenFullTime == false" class="col-6">
{{ form_row(form.merchantConfigs['order-close-day']) }}
</div>
<div class="col-6">
<div v-show="isOpenFullTime == false" class="col-6">
{{ form_row(form.merchantConfigs['order-close-time']) }}
</div>
<div class="col-6">
<div v-show="isOpenFullTime == false" class="col-6">
{{ form_row(form.dateBeginHoliday) }}
</div>
<div class="col-6">
<div v-show="isOpenFullTime == false" class="col-6">
{{ form_row(form.dateEndHoliday) }}
</div>
{{ macros.card_end() }}

Ładowanie…
Anuluj
Zapisz