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

[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 Просмотреть файл

@@ -9,6 +9,7 @@ appOrder = new Vue({
{
addressType: null,
currentSection:'general',
isOpenFullTime: null,
sectionsArray: [
{
name: 'general',
@@ -39,7 +40,7 @@ appOrder = new Vue({
nameDisplay: 'Maintenance'
}
]
}, window.addressValues);
}, window.addressValues, window.merchantPanelOrderValues);
},
mounted: function () {},
methods: {

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

@@ -2,6 +2,14 @@

{% 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="col-8">
{{ macros.card_start('Merchant.order','light') }}
@@ -11,6 +19,21 @@
<div class="col-6">
{{ form_row(form.merchantConfigs['maximum-order-week']) }}
</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">
{{ form_row(form.merchantConfigs['order-open-day']) }}
</div>

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