Browse Source

Merge branch 'dev'

master
Guillaume 3 years ago
parent
commit
ea7116ab48
4 changed files with 19 additions and 14 deletions
  1. +4
    -0
      backend/views/distribution/index.php
  2. +1
    -1
      common/models/Subscription.php
  3. +2
    -2
      frontend/views/site/contact.php
  4. +12
    -11
      producer/views/order/order.php

+ 4
- 0
backend/views/distribution/index.php View File

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


<div class="alert alert-danger" v-if="distribution && !distribution.active && orders && orders.length > 0">
Attention, ce jour de distribution n'est pas activé et vous avez quand même des commandes enregistrées.
</div>

<table class="table table-condensed table-bordered table-hover" v-if="countOrdersByPointSale[idActivePointSale] > 0 || (idActivePointSale == 0 && orders.length > 0)"> <table class="table table-condensed table-bordered table-hover" v-if="countOrdersByPointSale[idActivePointSale] > 0 || (idActivePointSale == 0 && orders.length > 0)">
<thead> <thead>
<tr> <tr>

+ 1
- 1
common/models/Subscription.php View File

'distribution.date' => date('Y-m-d', strtotime($date)) 'distribution.date' => date('Y-m-d', strtotime($date))
]); ]);


if ($distribution && count($this->productSubscription) && $this->id_point_sale) {
if ($distribution && $distribution->active && count($this->productSubscription) && $this->id_point_sale) {
// commande // commande
$order = new Order; $order = new Order;
if (strlen($this->username)) { if (strlen($this->username)) {

+ 2
- 2
frontend/views/site/contact.php View File

<div class="row"> <div class="row">
<div class="col-lg-5"> <div class="col-lg-5">
<h2>par téléphone</h2>
<!--<h2>par téléphone</h2>
<p id="contact-phone"> <p id="contact-phone">
Guillaume Bourgeois<br /> Guillaume Bourgeois<br />
<span class="glyphicon glyphicon-phone"></span> 06 84 59 71 79 <span class="glyphicon glyphicon-phone"></span> 06 84 59 71 79
<br /><br /> <br /><br />
Fabien Normand<br /> Fabien Normand<br />
<span class="glyphicon glyphicon-phone"></span> 07 81 99 97 01 <span class="glyphicon glyphicon-phone"></span> 07 81 99 97 01
</p>
</p>-->
<h2>Par email</h2> <h2>Par email</h2>
<?php $form = ActiveForm::begin(['id' => 'contact-form']); ?> <?php $form = ActiveForm::begin(['id' => 'contact-form']); ?>

+ 12
- 11
producer/views/order/order.php View File

</div> </div>
<div id="calendar"> <div id="calendar">
<v-calendar <v-calendar
is-inline
is-double-paned
is-expanded
v-model="date"
mode="single"
firstDayOfWeek="1"
:formats="calendar.formats"
:theme-styles="calendar.themeStyles"
:attributes="calendar.attrs"
:available-dates="calendar.availableDates"
@dayclick='dayClick'>
is-inline
is-double-paned
is-expanded
v-model="date"
mode="single"
locale="fr"
:locale="{id: 'fr', firstDayOfWeek: 2, masks: { weekdays: 'WW' }}"
:formats="calendar.formats"
:theme-styles="calendar.themeStyles"
:attributes="calendar.attrs"
:available-dates="calendar.availableDates"
@dayclick='dayClick'
></v-calendar> ></v-calendar>
</div> </div>
<?php if($producer->behavior_order_select_distribution == Producer::BEHAVIOR_ORDER_SELECT_DISTRIBUTION_LIST ): ?> <?php if($producer->behavior_order_select_distribution == Producer::BEHAVIOR_ORDER_SELECT_DISTRIBUTION_LIST ): ?>

Loading…
Cancel
Save