Browse Source

[Frontend] Récap après commande : ajouter infos horaires du point de vente #165

refactoring
Guillaume 2 years ago
parent
commit
dea58e1998
3 changed files with 15 additions and 2 deletions
  1. +8
    -0
      producer/views/order/confirm.php
  2. +3
    -2
      producer/views/order/order.php
  3. +4
    -0
      producer/web/js/vuejs/order-order.js

+ 8
- 0
producer/views/order/confirm.php View File

<br />&nbsp; &nbsp; &nbsp;<span class="locality">à <?= Html::encode($order->pointSale->locality) ?></span><?php endif; ?> <br />&nbsp; &nbsp; &nbsp;<span class="locality">à <?= Html::encode($order->pointSale->locality) ?></span><?php endif; ?>
<?php endif; ?> <?php endif; ?>
</li> </li>
<?php
$strInfos = $order->pointSale->getStrInfos(strtolower(date('l',strtotime($order->distribution->date))));
?>
<?php if(strlen($strInfos) > 0): ?>
<li><span class="glyphicon glyphicon-info-sign"></span>
<span class="infos"><?= $strInfos ?></span>
</li>
<?php endif; ?>
</ul> </ul>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">

+ 3
- 2
producer/views/order/order.php View File

is-expanded is-expanded
v-model="date" v-model="date"
mode="single" mode="single"
locale="fr-FR"
:locale="{ id: 'fr_FR', firstDayOfWeek: 1, masks: { weekdays: 'WW' } }"
locale="fr"
:locale="{ id: 'fr', firstDayOfWeek: 1, masks: { weekdays: 'WW' } }"
:first-day-of-week="1"
:formats="calendar.formats" :formats="calendar.formats"
:theme-styles="calendar.themeStyles" :theme-styles="calendar.themeStyles"
:attributes="calendar.attrs" :attributes="calendar.attrs"

+ 4
- 0
producer/web/js/vuejs/order-order.js View File

}, window.appInitValues); }, window.appInitValues);
}, },
mounted: function() { mounted: function() {

let fr = new Intl.Locale("fr-FR");
console.log(fr);

var dateDefined = $('#order-distribution-date').size() || $('#distribution-date').size() ; var dateDefined = $('#order-distribution-date').size() || $('#distribution-date').size() ;


if(dateDefined) { if(dateDefined) {

Loading…
Cancel
Save