Просмотр исходного кода

[Backend] Paramètres : isOpenFullTime

feature/module_traiteur_v1
Guillaume 4 лет назад
Родитель
Сommit
68bf0a5f4f
2 измененных файлов: 25 добавлений и 1 удалений
  1. +2
    -1
      ShopBundle/Resources/public/js/backend/script/merchant/vuejs-merchant.js
  2. +23
    -0
      ShopBundle/Resources/views/backend/merchant/panel_order.html.twig

+ 2
- 1
ShopBundle/Resources/public/js/backend/script/merchant/vuejs-merchant.js Просмотреть файл

{ {
addressType: null, addressType: null,
currentSection:'general', currentSection:'general',
isOpenFullTime: null,
sectionsArray: [ sectionsArray: [
{ {
name: 'general', name: 'general',
nameDisplay: 'Maintenance' nameDisplay: 'Maintenance'
} }
] ]
}, window.addressValues);
}, window.addressValues, window.merchantPanelOrderValues);
}, },
mounted: function () {}, mounted: function () {},
methods: { methods: {

+ 23
- 0
ShopBundle/Resources/views/backend/merchant/panel_order.html.twig Просмотреть файл



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


<script>
window.merchantPanelOrderValues = {
{% if form.type.vars.value %}isOpenFullTime: '{{ form.type.vars.value }}'{% endif %}
};
</script>

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

<div class="row"> <div class="row">
<div class="col-8"> <div class="col-8">
{{ macros.card_start('Merchant.order','light') }} {{ macros.card_start('Merchant.order','light') }}
<div class="col-6"> <div class="col-6">
{{ form_row(form.merchantConfigs['maximum-order-week']) }} {{ form_row(form.merchantConfigs['maximum-order-week']) }}
</div> </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'}}) }}
</div>
{% endif %}
{% if form.merchantConfigs['message-site-opening-background'] is defined %}
<div v-show="isOpenFullTime == true" class="col-6">
{{ form_row(form.merchantConfigs['message-site-opening-background']) }}
</div>
{% endif %}
{% if form.merchantConfigs['message-site-opening'] is defined %}
<div v-show="isOpenFullTime == true" class="col-6">
{{ form_row(form.merchantConfigs['message-site-opening']) }}
</div>
{% endif %}
<div class="col-6"> <div class="col-6">
{{ form_row(form.merchantConfigs['order-open-day']) }} {{ form_row(form.merchantConfigs['order-open-day']) }}
</div> </div>

Загрузка…
Отмена
Сохранить