$this->addAsset('css','css/screen.css'); | $this->addAsset('css','css/screen.css'); | ||||
// js | // js | ||||
$this->addAsset('js','js/lechatdesnoisettes.js'); | |||||
$this->addAsset('js','js/boulange.js'); | |||||
} | } | ||||
} | } |
/* | |||||
* To change this license header, choose License Headers in Project Properties. | |||||
* To change this template file, choose Tools | Templates | |||||
* and open the template in the editor. | |||||
*/ | |||||
$(document).ready(function() | |||||
{ | |||||
boulange_signup() ; | |||||
boulange_add_boulangerie() ; | |||||
}); | |||||
function boulange_scroll(id) { | |||||
if($("#"+id).size()) | |||||
$('html,body').animate({ | |||||
scrollTop: $("#"+id).offset().top}, | |||||
1000); | |||||
} | |||||
function boulange_add_boulangerie() | |||||
{ | |||||
$('#bloc-add-etablissement .panel-heading').click(function() { | |||||
var panel_body = $(this).parent().find('.panel-body') ; | |||||
if(panel_body.css('display') == 'none') | |||||
panel_body.fadeIn() ; | |||||
else | |||||
panel_body.hide() ; | |||||
}) ; | |||||
$('#addetablissementform-id_etablissement,#signupform-id_etablissement').change(function() { | |||||
if($(this).find('option:selected').hasClass('lock')) { | |||||
$('#bloc-code-acces').fadeIn() ; | |||||
} | |||||
else { | |||||
$('#bloc-code-acces').hide() ; | |||||
} | |||||
}) ; | |||||
if($('#addetablissementform-id_etablissement option:selected,#signupform-id_etablissement option:selected').hasClass('lock')) { | |||||
$('#bloc-code-acces').show() ; | |||||
} | |||||
else { | |||||
$('#bloc-code-acces').hide() ; | |||||
} | |||||
if($('#bloc-add-etablissement').size()) { | |||||
if($('#bloc-add-etablissement .has-error').size()) { | |||||
$('#bloc-add-etablissement .panel-body').show() ; | |||||
} | |||||
} | |||||
} | |||||
function boulange_signup() | |||||
{ | |||||
if($('#form-signup').size()) | |||||
{ | |||||
boulange_signup_champs_boulanger() ; | |||||
$('#option-client, #option-boulanger').change(function() { | |||||
boulange_signup_champs_boulanger() ; | |||||
}) ; | |||||
} | |||||
} | |||||
function boulange_signup_champs_boulanger() | |||||
{ | |||||
if($('#option-boulanger').prop('checked')) | |||||
{ | |||||
$('#champs-boulanger').fadeIn() ; | |||||
$('#champs-client').hide() ; | |||||
} | |||||
else { | |||||
$('#champs-boulanger').hide() ; | |||||
$('#champs-client').fadeIn() ; | |||||
} | |||||
} | |||||
/* French initialisation for the jQuery UI date picker plugin. */ | |||||
/* Written by Keith Wood (kbwood{at}iinet.com.au), | |||||
Stéphane Nahmani (sholby@sholby.net), | |||||
Stéphane Raimbault <stephane.raimbault@gmail.com> */ | |||||
(function( factory ) { | |||||
if ( typeof define === "function" && define.amd ) { | |||||
// AMD. Register as an anonymous module. | |||||
define([ "../jquery.ui.datepicker" ], factory ); | |||||
} else { | |||||
// Browser globals | |||||
factory( jQuery.datepicker ); | |||||
} | |||||
}(function( datepicker ) { | |||||
datepicker.regional['fr'] = { | |||||
closeText: 'Fermer', | |||||
prevText: 'Précédent', | |||||
nextText: 'Suivant', | |||||
currentText: 'Aujourd\'hui', | |||||
monthNames: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', | |||||
'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'], | |||||
monthNamesShort: ['janv.', 'févr.', 'mars', 'avril', 'mai', 'juin', | |||||
'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'], | |||||
dayNames: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'], | |||||
dayNamesShort: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'], | |||||
dayNamesMin: ['D','L','M','M','J','V','S'], | |||||
weekHeader: 'Sem.', | |||||
dateFormat: 'dd/mm/yy', | |||||
firstDay: 1, | |||||
isRTL: false, | |||||
showMonthAfterYear: false, | |||||
yearSuffix: ''}; | |||||
datepicker.setDefaults(datepicker.regional['fr']); | |||||
return datepicker.regional['fr']; | |||||
})); | |||||
$(document).ready(function() { | |||||
//chat_scroll() ; | |||||
chat_tabs_gamme_saison() ; | |||||
//chat_slideshow() ; | |||||
$('[data-toggle="tooltip"]').tooltip() ; | |||||
chat_systeme_commande() ; | |||||
chat_profil_user() ; | |||||
}) ; | |||||
function chat_profil_user() { | |||||
if($('#profil-user').size()) { | |||||
if($('#user-no_mail').is(':checked')) { | |||||
$('#mails-jours-prod').hide() ; | |||||
} | |||||
$('#user-no_mail').change(function() { | |||||
if($('#user-no_mail').is(':checked')) { | |||||
$('#mails-jours-prod').hide() ; | |||||
} | |||||
else { | |||||
$('#mails-jours-prod').fadeIn() ; | |||||
} | |||||
}) ; | |||||
} | |||||
} | |||||
function chat_event_click_point_vente(id, force) { | |||||
if($('.point-vente-'+id).data('code') == 1) { | |||||
$('#modal-code #id-point-vente').val(id) ; | |||||
$('#modal-code').modal('show') ; | |||||
} | |||||
else { | |||||
$('#commande-id_point_vente').val(id) ; | |||||
$('#points-vente .point-vente').removeClass('selected') ; | |||||
$('.point-vente-'+id).addClass('selected') ; | |||||
$('.point-vente-'+id).hide().fadeIn('fast') ; | |||||
var pain = parseInt($('.point-vente-'+id).data('pain')) ; | |||||
var vrac = parseInt($('.point-vente-'+id).data('vrac')) ; | |||||
if(pain) { | |||||
$('#pain .table').show() ; | |||||
$('#pain .indisponible').hide() ; | |||||
} | |||||
else { | |||||
$('#pain .table').hide() ; | |||||
$('#pain .indisponible').show() ; | |||||
} | |||||
if(vrac) { | |||||
$('#vrac .table').show() ; | |||||
$('#vrac .indisponible').hide() ; | |||||
} | |||||
else { | |||||
$('#vrac .table').hide() ; | |||||
$('#vrac .indisponible').show() ; | |||||
} | |||||
$('#produits, .valider-commande, .btn-commentaire, #bar-fixed').fadeIn() ; | |||||
// credit pain | |||||
chat_systeme_commande_credit_pain_event(chat_systeme_commande_maj_table_prix()) ; | |||||
// scroll | |||||
if(!force) | |||||
boulange_scroll('step-choix-produits') ; | |||||
} | |||||
} | |||||
function chat_init_horaire_point_vente(date) { | |||||
$('#points-vente .horaires .jour').hide() ; | |||||
var selector_jour = '#points-vente .horaires .jour-'+date.getDay() ; | |||||
$(selector_jour).show() ; | |||||
// on cache les points de vente si la livraison n'est pas cochée | |||||
/*$('#points-vente .point-vente').show() ; | |||||
if($('#livraison').val() == 0) { | |||||
$('#points-vente .point-vente').hide() ; | |||||
$('#points-vente .point-vente').each(function() { | |||||
if($(this).find('.nom').html() == 'Le Chat des Noisettes') { | |||||
$(this).show() ; | |||||
} | |||||
}) ; | |||||
}*/ | |||||
// on cache les points de vente qui sont fermés | |||||
//$('#points-vente .point-vente').removeClass('disabled') ; | |||||
/*$(selector_jour).each(function() { | |||||
if($(this).html() == 'Fermé') { | |||||
//$(this).parent().parent().parent().addClass('disabled') ; | |||||
$(this).parent().parent().parent().hide() ; | |||||
} | |||||
}) ;*/ | |||||
} | |||||
function chat_systeme_commande() { | |||||
if($('.commande-form').size()) { | |||||
// scroll initial | |||||
if($('.boulangerie.selected').size()) | |||||
{ | |||||
boulange_scroll('step-choix-date') ; | |||||
} | |||||
// affichage des différentes parties du formulaire | |||||
if(!$('#commande-id_production').val()) { | |||||
$('#depots, #points-vente, #produits, .valider-commande, #info-horaire-retrait-commande, .btn-commentaire, #bar-fixed').hide() ; | |||||
} | |||||
else if(!$('#commande-id_point_vente').val()) { | |||||
$('#produits, .valider-commande, .btn-commentaire, #bar-fixed').hide() ; | |||||
} | |||||
// points de vente | |||||
if($('#commande-id_point_vente').val()) | |||||
chat_event_click_point_vente($('#commande-id_point_vente').val(), true) ; | |||||
$('#modal-code form').submit(function() { | |||||
var id_pv = $('#modal-code #id-point-vente').val() ; | |||||
var code = $('#modal-code #code').val() ; | |||||
$.get('index.php',{ | |||||
r: 'commande/verif-code-point-vente', | |||||
id_point_vente: id_pv, | |||||
code: code | |||||
}, function(ok) { | |||||
if(ok) { | |||||
$('.point-vente-'+id_pv).data('code',0) ; | |||||
$('.point-vente-'+id_pv+' .glyphicon').remove() ; | |||||
$('input[name="code_point_vente_'+id_pv+'"]').val(code) ; | |||||
$('#modal-code').modal('hide') ; | |||||
chat_event_click_point_vente($('#modal-code #id-point-vente').val()) ; | |||||
} | |||||
else { | |||||
$('#modal-code .field-code').addClass('has-error') ; | |||||
$('#modal-code .help-block-error').hide().fadeIn() ; | |||||
} | |||||
}) ; | |||||
return false ; | |||||
}) ; | |||||
$('#points-vente .point-vente').click(function() { | |||||
var id = parseInt($(this).find('.id').html()) ; | |||||
chat_event_click_point_vente(id) ; | |||||
}) ; | |||||
// datepicker | |||||
var dates_production = [] ; | |||||
$('#dates div').each(function() { | |||||
dates_production.push($(this).find('.date').html()) ; | |||||
}) ; | |||||
//var var_datepicker = $.datepicker ; | |||||
$('#datepicker-production').datepicker({ | |||||
beforeShowDay: function(date){ | |||||
var string = $.datepicker.formatDate('dd/mm/yy', date); | |||||
for(var i=0; i<dates_production.length; i++) { | |||||
//alert(dates_production[i]+' '+string) ; | |||||
if(dates_production[i] == string) | |||||
return [1] ; | |||||
} | |||||
return [0] ; | |||||
// désactivé car internet explorer plante | |||||
//return [ dates_production.indexOf(string) != -1 ] ; | |||||
}, | |||||
onSelect: function(selectedDate) { | |||||
// on remet tout les prix à zéro | |||||
chat_systeme_commande_reset_table_prix() ; | |||||
$('#has-commande-en-cours').hide() ; | |||||
var tab_date = selectedDate.split('/') ; | |||||
var date = new Date(tab_date[2],tab_date[1]-1,tab_date[0]) ; | |||||
// set id production | |||||
var id_production = 0 ; | |||||
$('#dates div .date').each(function() { | |||||
if($(this).html() == selectedDate) { | |||||
id_production = $(this).parent().find('.id_production').html() ; | |||||
} | |||||
}); | |||||
$('#commande-id_production').val(id_production) ; | |||||
// verif si le gars a une commande en cours pour cette production | |||||
var has_commande_en_cours = false ; | |||||
$('#commandes-en-cours .commande').each(function() { | |||||
if($(this).data('idproduction') == id_production) { | |||||
//alert('bada') ; | |||||
$('#has-commande-en-cours a').attr('href',$(this).data('href')) ; | |||||
$('#has-commande-en-cours').show() ; | |||||
has_commande_en_cours = true ; | |||||
$('#depots, #points-vente, #produits, #info-horaire-retrait-commande').hide() ; | |||||
} | |||||
}) ; | |||||
if(!has_commande_en_cours) { | |||||
chat_systeme_commande_produits_dispos(tab_date[2]+'-'+tab_date[1]+'-'+tab_date[0], date) ; | |||||
$('#produits, .valider-commande, .btn-commentaire, #bar-fixed').hide() ; | |||||
// déselection points de vente | |||||
$('#points-vente .point-vente').removeClass('selected') ; | |||||
$('#commande-id_point_vente').val('') ; | |||||
// affichage points de vente | |||||
$('#depots, #points-vente, #info-horaire-retrait-commande').fadeIn() ; | |||||
// scroll | |||||
boulange_scroll('step-choix-depot') ; | |||||
} | |||||
} | |||||
}) ; | |||||
if($('#commande-id_production').val()) { | |||||
$("#dates .id_production").each(function() { | |||||
if($(this).html() == $('#commande-id_production').val()) { | |||||
var tab_date = $(this).parent().find('.date').html().split('/') ; | |||||
var date = new Date(tab_date[2],tab_date[1]-1,tab_date[0]); | |||||
$('#datepicker-production').datepicker('setDate',date) ; | |||||
chat_systeme_commande_produits_dispos(tab_date[2]+'-'+tab_date[1]+'-'+tab_date[0], date) ; | |||||
chat_init_horaire_point_vente(date) ; | |||||
} | |||||
}) ; | |||||
} | |||||
// tableau produits | |||||
$('.commande-form .move-quantity').click(function() { | |||||
var vrac = ($(this).parent().parent().parent().parent().parent().parent().parent().attr('id') == 'vrac') ; | |||||
if(vrac) { | |||||
var quantite = parseInt($(this).parent().parent().find('input.quantity').val()) ; | |||||
if($(this).hasClass('moins') && quantite != 0) | |||||
quantite -= 500 ; | |||||
if($(this).hasClass('plus')) | |||||
quantite += 500 ; | |||||
$(this).parent().parent().find('input.quantity').val(quantite) ; | |||||
chat_systeme_commande_maj_table_prix(); | |||||
} | |||||
else { | |||||
var quantite_totale = 0 ; | |||||
$('.quantity').each(function() { | |||||
quantite_totale += parseInt($(this).val()) ; | |||||
}) ; | |||||
var quantite = parseInt($(this).parent().parent().find('input.quantity').val()) ; | |||||
var quantite_restante = parseInt($(this).parent().parent().parent().find('.quantite-restante .nb').html()) ; | |||||
var quantite_max = $(this).parent().parent().parent().parent().data('quantite-max') ; | |||||
var no_limit = $(this).parent().parent().parent().parent().data('no-limit') ; | |||||
if($(this).hasClass('moins') && quantite != 0) { | |||||
quantite -- ; | |||||
quantite_restante ++ ; | |||||
} | |||||
if($(this).hasClass('plus') ){ | |||||
if(quantite_restante > 0 || no_limit) { | |||||
quantite ++ ; | |||||
quantite_restante -- ; | |||||
} | |||||
} | |||||
$(this).parent().parent().parent().find('.quantite-restante .nb').html(quantite_restante) ; | |||||
if(quantite_restante <= 5 && quantite_restante > 0) { | |||||
$(this).parent().parent().parent().find('.quantite-restante').fadeIn() ; | |||||
} | |||||
else { | |||||
$(this).parent().parent().parent().find('.quantite-restante').hide() ; | |||||
} | |||||
if(quantite_restante == 0 && !no_limit) { | |||||
$(this).parent().parent().parent().find('.epuise').fadeIn() ; | |||||
} | |||||
else { | |||||
$(this).parent().parent().parent().find('.epuise').hide() ; | |||||
} | |||||
$(this).parent().parent().find('input.quantity').val(quantite) ; | |||||
chat_systeme_commande_maj_table_prix(); | |||||
} | |||||
}) ; | |||||
chat_systeme_commande_maj_table_prix() ; | |||||
chat_systeme_commande_credit_pain(); | |||||
} | |||||
// commentaire commande | |||||
$('.commande-form .btn-commentaire').click(function() { | |||||
if($('.field-commande-commentaire').css('display') == 'none') { | |||||
$('.field-commande-commentaire').slideDown() ; | |||||
} | |||||
else { | |||||
$('.field-commande-commentaire').slideUp() ; | |||||
} | |||||
return false ; | |||||
}) ; | |||||
// bar fixed | |||||
if($('#bar-fixed').size()) { | |||||
$(window).scroll(function (event) { | |||||
var scroll = $(window).scrollTop() + $(window).height(); | |||||
var pos_bottom_produits = $('#table-produits').offset().top + $('#table-produits').height() + 100 ; | |||||
if(scroll > pos_bottom_produits) { | |||||
if(!$('#bar-fixed').hasClass('not-fixed')) { | |||||
$('#bar-fixed').addClass('not-fixed') ; | |||||
} | |||||
} | |||||
else { | |||||
$('#bar-fixed').removeClass('not-fixed') ; | |||||
} | |||||
}); | |||||
} | |||||
} | |||||
function chat_systeme_commande_produits_dispos(str_date, date) { | |||||
// produits dispos à la vente à cette date | |||||
$.get('index.php',{ | |||||
r: 'commande/infos-production', | |||||
id_production: $('#commande-id_production').val() | |||||
}, function(data) { | |||||
if(data.produits_dispos) { | |||||
$.each(data.produits_dispos, function( id_produit, produit ) { | |||||
if(produit.actif) $('.produit-'+id_produit).show() ; | |||||
else $('.produit-'+id_produit).hide() ; | |||||
var quantite_restante = produit.quantite_max - produit.quantite_commandee ; | |||||
var no_limit = 0 ; | |||||
if(!produit.quantite_max) | |||||
no_limit = 1 ; | |||||
$('.produit-'+id_produit).attr('data-no-limit',no_limit) ; | |||||
$('.produit-'+id_produit).attr('data-quantite-max',produit.quantite_max) ; | |||||
$('.produit-'+id_produit+' .quantite-restante .nb').html(quantite_restante) ; | |||||
if(produit.quantite_max && (!quantite_restante || quantite_restante < 0 || produit.epuise)) { | |||||
$('.produit-'+id_produit+' .epuise').show() ; | |||||
if(!$('#id-commande').val() && $('.produit-'+id_produit+' .quantity').val() == 0) | |||||
{ | |||||
$('.produit-'+id_produit+' .quantite-restante').hide() ; | |||||
$('.produit-'+id_produit+' .input-group').hide() ; | |||||
} | |||||
} | |||||
else { | |||||
$('.produit-'+id_produit+' .epuise').hide() ; | |||||
$('.produit-'+id_produit+' .input-group').show() ; | |||||
$('.produit-'+id_produit+' .quantite-restante .nb').html(quantite_restante) ; | |||||
} | |||||
if($('.produit-'+id_produit+' .quantite-restante').size()) { | |||||
if(parseInt($('.produit-'+id_produit+' .quantite-restante .nb').html()) > 5 || | |||||
parseInt($('.produit-'+id_produit+' .quantite-restante .nb').html()) <= 0) { | |||||
$('.produit-'+id_produit+' .quantite-restante').hide() ; | |||||
} | |||||
else { | |||||
$('.produit-'+id_produit+' .quantite-restante').show() ; | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
$('#points-vente .point-vente').hide() ; | |||||
// init affichage points de vente | |||||
$.each(data.points_vente, function(key, livraison) { | |||||
console.log(key+' | '+livraison) ; | |||||
if(livraison) { | |||||
$('.point-vente-'+key).fadeIn() ; | |||||
} | |||||
else { | |||||
$('.point-vente-'+key).hide() ; | |||||
} | |||||
}) ; | |||||
chat_init_horaire_point_vente(date) ; | |||||
}, 'json') ; | |||||
} | |||||
function chat_systeme_commande_reset_table_prix() { | |||||
$('#table-produits tr .colonne-quantite .quantity').each(function() { | |||||
$(this).val(0) ; | |||||
}) ; | |||||
chat_systeme_commande_maj_table_prix() ; | |||||
} | |||||
function chat_systeme_commande_maj_table_prix() { | |||||
// produits pain | |||||
var prix = 0 ; | |||||
$('.commande-form #table-produits tbody tr').each(function() { | |||||
var quantite = parseInt($(this).find('.quantity').val()) ; | |||||
var prix_produit = parseFloat($(this).find('.prix').html()) ; | |||||
var prix_total_produit = quantite * prix_produit ; | |||||
if(prix_total_produit) | |||||
$(this).find('.total').html(formate_prix(prix_total_produit)+' €') ; | |||||
else | |||||
$(this).find('.total').html('--') ; | |||||
if(quantite > 0) | |||||
prix += prix_total_produit ; | |||||
}) ; | |||||
$('#total-commande strong').html(formate_prix(prix)+' €') ; | |||||
var prix_global = prix ; | |||||
// produits vrac | |||||
var prix = 0 ; | |||||
$('.commande-form #table-produits-vrac tbody tr').each(function() { | |||||
var quantite = parseInt($(this).find('.quantity').val()) ; | |||||
var prix_produit = parseFloat($(this).find('.prix').html()) ; | |||||
var prix_total_produit = quantite/1000 * prix_produit ; | |||||
if(prix_total_produit) | |||||
$(this).find('.total').html(formate_prix(prix_total_produit)+' €') ; | |||||
else | |||||
$(this).find('.total').html('--') ; | |||||
if(quantite > 0) | |||||
prix += prix_total_produit ; | |||||
}) ; | |||||
$('#total-commande-vrac strong').html(formate_prix(prix)+' €') ; | |||||
prix_global += prix ; | |||||
$('#total-commande-bottom span').html(formate_prix(prix_global)) ; | |||||
if(prix_global) | |||||
$('#total-commande-bottom').fadeIn() ; | |||||
else | |||||
$('#total-commande-bottom').hide() ; | |||||
// maj credit pain | |||||
chat_systeme_commande_credit_pain_event(prix_global) ; | |||||
return prix_global ; | |||||
} | |||||
function chat_systeme_commande_credit_pain() { | |||||
$('input[name=credit_pain]').change(function() { | |||||
var prix_global = chat_systeme_commande_maj_table_prix() ; | |||||
chat_systeme_commande_credit_pain_event(prix_global) ; | |||||
}) ; | |||||
} | |||||
function chat_systeme_commande_credit_pain_event(prix_global) { | |||||
var html = '' ; | |||||
var use_credit_pain = $('input[name=credit_pain]').prop('checked') ; | |||||
var credit_pain = parseFloat($('#montant-credit-pain').val()) ; | |||||
var credit_pain_dispo = credit_pain ; | |||||
var montant_paye = 0 | |||||
if($('#montant-paye').size() && $('#montant-paye').val()) | |||||
montant_paye = parseFloat($('#montant-paye').val()) ; | |||||
if($('#id-commande').size() && $('#id-commande').val()) { | |||||
credit_pain_dispo = credit_pain + montant_paye ; | |||||
} | |||||
var credit_pain_active = $('.point-vente.selected').data('credit-pain') ; | |||||
if(credit_pain_active || montant_paye) { | |||||
$('#checkbox-credit-pain #info-credit-vide').show() ; | |||||
$('#checkbox-credit-pain label').show() ; | |||||
$('#checkbox-credit-pain #credit-pain-disabled').hide() ; | |||||
if(prix_global > credit_pain_dispo) { | |||||
var reste_payer = prix_global - credit_pain_dispo ; | |||||
if(use_credit_pain) { | |||||
if(montant_paye) { | |||||
html += '<span class="montant-paye">'+montant_paye+' € déjà payé</span><br />' ; | |||||
} | |||||
html += '<strong>'+credit_pain+' €</strong> seront débités<br />' ; | |||||
html += 'Restera <strong>'+reste_payer+' €</strong> à payer à la boulangerie' ; | |||||
$('#checkbox-credit-pain .info').html(html) ; | |||||
} | |||||
else { | |||||
$('#checkbox-credit-pain .info').html('') ; | |||||
} | |||||
} | |||||
else { | |||||
$('#checkbox-credit-pain').removeClass('paiement-impossible') ; | |||||
$('input[name=credit_pain]').removeAttr('disabled') ; | |||||
if(use_credit_pain) { | |||||
var html = '' ; | |||||
// à payer | |||||
if(prix_global > montant_paye) | |||||
{ | |||||
montant = prix_global - montant_paye ; | |||||
if(montant_paye) { | |||||
html += '<span class="montant-paye">'+montant_paye+' € déjà payé</span><br />' ; | |||||
} | |||||
html += '<strong>'+montant+' €</strong> seront débités' ; | |||||
$('#checkbox-credit-pain .info').html(html) ; | |||||
} | |||||
// remboursé | |||||
else if(prix_global < montant_paye) { | |||||
montant = montant_paye - prix_global ; | |||||
if(montant_paye) { | |||||
html += '<span class="montant-paye">'+montant_paye+' € déjà payé</span><br />' ; | |||||
} | |||||
html += '<strong>'+montant+' €</strong> seront remboursés' ; | |||||
$('#checkbox-credit-pain .info').html(html) ; | |||||
} | |||||
else { | |||||
if(montant_paye > 0) | |||||
$('#checkbox-credit-pain .info').html('<span class="montant-paye">'+montant_paye+' € déjà payé</span>') ; | |||||
else | |||||
$('#checkbox-credit-pain .info').html('') ; | |||||
} | |||||
} | |||||
else { | |||||
$('#checkbox-credit-pain .info').html('') | |||||
} | |||||
} | |||||
} | |||||
else { | |||||
$('#checkbox-credit-pain #info-credit-vide').hide() ; | |||||
$('#checkbox-credit-pain label').hide() ; | |||||
$('#checkbox-credit-pain #credit-pain-disabled').show() ; | |||||
} | |||||
} | |||||
function formate_prix(prix) { | |||||
return prix.toFixed(2).replace( ".", "," ) ; | |||||
} | |||||
function chat_slideshow() { | |||||
if($('body').hasClass('home')) { | |||||
var base_url = $('#base_url').val() ; | |||||
$.vegas('slideshow', { | |||||
backgrounds:[ | |||||
//{ src:'./img/background/back2.jpg' }, | |||||
{ src:base_url+'/img/background/four.jpg' }, | |||||
{ src:base_url+'/img/background/gueulard.jpg' } | |||||
], | |||||
walk: function() { | |||||
$('.vegas-loading').css('display','none') ; | |||||
$('.vegas-background').css('position','absolute') ; | |||||
} | |||||
})('overlay'); | |||||
} | |||||
} | |||||
function chat_scroll() { | |||||
if($('body').hasClass('home')) { | |||||
$('#header nav ul a[href^="#"]').click(function(){ | |||||
var the_id = $(this).attr("href"); | |||||
$('html, body').animate({ | |||||
scrollTop: $(the_id).offset().top - 100 | |||||
}, 'normal'); | |||||
return false; | |||||
}); | |||||
$(window).scroll(function() { | |||||
chat_event_scroll() ; | |||||
}) ; | |||||
chat_event_scroll() ; | |||||
} | |||||
} | |||||
function chat_event_scroll() { | |||||
var scroll_top = $(window).scrollTop() ; | |||||
//console.log(scroll_top + ' '+ ($('#horaires').offset().top-100)) ; | |||||
$('#header nav ul a').each(function() { | |||||
var top = $($(this).attr('href')).offset().top ; | |||||
var test = top + $($(this).attr('href')).height() - 150 ; | |||||
//console.log($(this).attr('href')+' : '+scroll_top+ ' | '+ test) ; | |||||
if(scroll_top <= top + $($(this).attr('href')).height() - 150) { | |||||
$('#header a').removeClass('selec') ; | |||||
$(this).addClass('selec') ; | |||||
} | |||||
}) ; | |||||
} | |||||
function chat_tabs_gamme_saison() { | |||||
$('#tab-gamme-saison a').click(function (e) { | |||||
e.preventDefault(); | |||||
$(this).tab('show'); | |||||
}); | |||||
} | |||||
$this->addAsset('css','css/screen.css'); | $this->addAsset('css','css/screen.css'); | ||||
// js | // js | ||||
$this->addAsset('js','js/lechatdesnoisettes.js'); | |||||
$this->addAsset('js','js/boulange.js'); | $this->addAsset('js','js/boulange.js'); | ||||
} | } | ||||
} | } |
class ProducerView extends \common\components\MyView { | class ProducerView extends \common\components\MyView { | ||||
var $producer ; | |||||
public function getProducer() { | |||||
$etablissement = Etablissement::findOne(['slug' => Yii::$app->getRequest()->getQueryParam('slug_producer')]) ; | |||||
if($etablissement) | |||||
return $etablissement; | |||||
else | |||||
throw new \yii\web\HttpException(404, 'Etablissement introuvable'); | |||||
} | |||||
} | } |
namespace producer\controllers; | namespace producer\controllers; | ||||
class CommandeController extends CommonController { | |||||
class CommandeController extends ProducerBaseController { | |||||
public function behaviors() { | public function behaviors() { | ||||
return [ | return [ | ||||
return json_encode([]); | return json_encode([]); | ||||
} | } | ||||
public static function initForm($commande = null) { | |||||
public function initForm($commande = null) { | |||||
// etablissements | // etablissements | ||||
$etablissements = Yii::$app->user->identity->getEtablissementsFavoris(); | $etablissements = Yii::$app->user->identity->getEtablissementsFavoris(); | ||||
$id_etablissement = Yii::$app->request->get('id_etablissement', 0); | |||||
$id_etablissement = $this->getProducer()->id; | |||||
$etablissement_paiement_ok = false; | $etablissement_paiement_ok = false; | ||||
if ($id_etablissement) { | if ($id_etablissement) { | ||||
} else { | } else { | ||||
$credit = 0; | $credit = 0; | ||||
} | } | ||||
return [ | return [ | ||||
'points_vente' => $arr_points_vente, | 'points_vente' => $arr_points_vente, | ||||
'jours_production' => $arr_jours_production, | 'jours_production' => $arr_jours_production, | ||||
]; | ]; | ||||
} | } | ||||
public function actionIndex() { | |||||
public function actionHistorique() { | |||||
$model_form_etablissement = new AddEtablissementForm(); | $model_form_etablissement = new AddEtablissementForm(); | ||||
if ($model_form_etablissement->load(Yii::$app->request->post()) && $model_form_etablissement->validate()) { | if ($model_form_etablissement->load(Yii::$app->request->post()) && $model_form_etablissement->validate()) { | ||||
foreach ($commandes as $c) | foreach ($commandes as $c) | ||||
$c->init(); | $c->init(); | ||||
return $this->render('index', [ | |||||
return $this->render('historique', [ | |||||
'commandes' => $commandes, | 'commandes' => $commandes, | ||||
'commande_ok' => Yii::$app->getRequest()->get('commande_ok', false), | 'commande_ok' => Yii::$app->getRequest()->get('commande_ok', false), | ||||
'annule_ok' => Yii::$app->getRequest()->get('annule_ok', false), | 'annule_ok' => Yii::$app->getRequest()->get('annule_ok', false), | ||||
$this->redirect(['commande/index']); | $this->redirect(['commande/index']); | ||||
} | } | ||||
public function actionCreate($id_etablissement = 0) { | |||||
public function actionCreate() { | |||||
$id_etablissement = $this->getProducer()->id ; | |||||
$commande = new Commande; | $commande = new Commande; | ||||
$posts = Yii::$app->request->post(); | $posts = Yii::$app->request->post(); | ||||
$this->gestionForm($commande); | $this->gestionForm($commande); | ||||
} | } | ||||
return $this->render('create', array_merge(self::initForm($commande), [ | |||||
return $this->render('create', array_merge($this->initForm($commande), [ | |||||
'model' => $commande | 'model' => $commande | ||||
])); | ])); | ||||
} | } | ||||
} | } | ||||
return $this->render('update', array_merge(self::initForm($commande), [ | |||||
return $this->render('update', array_merge($this->initForm($commande), [ | |||||
'model' => $commande, | 'model' => $commande, | ||||
'commande_introuvable' => !$commande, | 'commande_introuvable' => !$commande, | ||||
])); | ])); | ||||
} | } | ||||
// redirection | // redirection | ||||
$this->redirect(Yii::$app->urlManager->createUrl(['commande/index', 'commande_ok' => true, 'pate_deja_petrie' => $pate_deja_petrie])); | |||||
$this->redirect(Yii::$app->urlManager->createUrl(['commande/historique', 'commande_ok' => true, 'pate_deja_petrie' => $pate_deja_petrie])); | |||||
} else { | } else { | ||||
if (!count($produits)) | if (!count($produits)) | ||||
Yii::$app->session->setFlash('error', "Vous n'avez choisi aucun produit"); | Yii::$app->session->setFlash('error', "Vous n'avez choisi aucun produit"); |
<?php | |||||
namespace producer\controllers; | |||||
class ProducerBaseController extends CommonController { | |||||
var $producer ; | |||||
/** | |||||
* @inheritdoc | |||||
*/ | |||||
public function behaviors() { | |||||
return []; | |||||
} | |||||
public function actions() { | |||||
return [ | |||||
'error' => [ | |||||
'class' => 'yii\web\ErrorAction', | |||||
], | |||||
]; | |||||
} | |||||
public function getProducer() { | |||||
if($this->producer) { | |||||
return $this->producer ; | |||||
} | |||||
else { | |||||
$producer = Etablissement::findOne(['slug' => Yii::$app->getRequest()->getQueryParam('slug_producer')]) ; | |||||
if($producer) { | |||||
$this->producer = $producer ; | |||||
return $this->producer ; | |||||
} | |||||
else { | |||||
throw new \yii\web\HttpException(404, 'Établissement introuvable'); | |||||
} | |||||
} | |||||
} | |||||
} | |||||
?> |
namespace producer\controllers; | namespace producer\controllers; | ||||
class ProducerController extends CommonController { | |||||
class ProducerController extends ProducerBaseController { | |||||
/** | /** | ||||
* @inheritdoc | * @inheritdoc |
/* @var $form ActiveForm */ | /* @var $form ActiveForm */ | ||||
?> | ?> | ||||
<div class="commande-form"> | <div class="commande-form"> | ||||
<h2 id="step-choix-etablissement">Je choisis mon producteur</h2> | |||||
<?php if(count($etablissements)): ?> | |||||
<?= | |||||
$this->render('_liste_etablissements.php',[ | |||||
'etablissements' => $etablissements, | |||||
'context' => 'commande', | |||||
'id_etablissement' => $id_etablissement, | |||||
'etablissement_paiement_ok' => $etablissement_paiement_ok, | |||||
]) ; | |||||
?> | |||||
<div class="clr"></div> | |||||
<?php else: ?> | |||||
<div class="alert alert-info">Veuiller <a href="<?= Yii::$app->urlManager->createUrl(['commande/index']) ; ?>">ajouter un producteur</a> à votre tableau de bord avant de passer commande.</div> | |||||
<?php endif; ?> | |||||
<?php | <?php | ||||
$form = ActiveForm::begin([ | $form = ActiveForm::begin([ | ||||
</div> | </div> | ||||
<div class="col-md-6"> | <div class="col-md-6"> | ||||
<?php if(strlen($etablissement->infos_commande)): ?> | <?php if(strlen($etablissement->infos_commande)): ?> | ||||
<h2>Infos du producteur</h2> | |||||
<div id="infos-commande"> | <div id="infos-commande"> | ||||
<?= nl2br(Html::encode($etablissement->infos_commande)) ?> | <?= nl2br(Html::encode($etablissement->infos_commande)) ?> | ||||
</div> | </div> |
$this->title = 'Passer une commande'; | $this->title = 'Passer une commande'; | ||||
?> | ?> | ||||
<div class="commande-create"> | <div class="commande-create"> | ||||
<h1 class="title-systeme-commande"><span class="glyphicon glyphicon-plus"></span> <?= Html::encode($this->title) ?></h1> | |||||
<?= $this->render('_form', [ | <?= $this->render('_form', [ | ||||
'model' => $model, | 'model' => $model, |
<div id="index-commande"> | <div id="index-commande"> | ||||
<h1 class="title-systeme-commande"><span class="glyphicon glyphicon-th-list"></span> Tableau de bord</h1> | |||||
<h2>Producteurs</h2> | |||||
<?php if($commande_ok): ?> | <?php if($commande_ok): ?> | ||||
<div class="alert alert-success"> | <div class="alert alert-success"> | ||||
<div class="icon"></div> | <div class="icon"></div> | ||||
<?php endif; ?> | <?php endif; ?> | ||||
<div id="liste-boulangeries"> | <div id="liste-boulangeries"> | ||||
<?= | <?= | ||||
$this->render('_liste_etablissements.php',[ | $this->render('_liste_etablissements.php',[ | ||||
'etablissements' => $etablissements, | 'etablissements' => $etablissements, | ||||
'context' => 'index' | 'context' => 'index' | ||||
]) ; | ]) ; | ||||
?> | ?> | ||||
<div class="col-md-6" id="bloc-add-etablissement"> | <div class="col-md-6" id="bloc-add-etablissement"> | ||||
<div class="panel panel-default"> | <div class="panel panel-default"> | ||||
<div class="panel-heading"> | <div class="panel-heading"> | ||||
<div class="clr"></div> | <div class="clr"></div> | ||||
</div> | </div> | ||||
<h2>Historique</h2> | |||||
<h2 class="first">Historique</h2> | |||||
<?php if(count($commandes)): ?> | <?php if(count($commandes)): ?> | ||||
<p>Retrouvez ici vos dernières commandes.</p> | <p>Retrouvez ici vos dernières commandes.</p> |
'commandes_en_cours' => $commandes_en_cours, | 'commandes_en_cours' => $commandes_en_cours, | ||||
'produits_vrac' => $produits_vrac, | 'produits_vrac' => $produits_vrac, | ||||
'etablissements' => $etablissements, | 'etablissements' => $etablissements, | ||||
'etablissement' => $etablissement, | |||||
'id_etablissement' => $id_etablissement, | 'id_etablissement' => $id_etablissement, | ||||
'etablissement_paiement_ok' => $etablissement_paiement_ok, | 'etablissement_paiement_ok' => $etablissement_paiement_ok, | ||||
'credit' => $credit | 'credit' => $credit |
\common\assets\CommonAsset::register($this); | \common\assets\CommonAsset::register($this); | ||||
\producer\assets\AppAsset::register($this); | \producer\assets\AppAsset::register($this); | ||||
$producer = $this->getProducer() ; | |||||
$producer = $this->context->getProducer() ; | |||||
?> | ?> | ||||
<?php $this->beginPage() ?> | <?php $this->beginPage() ?> | ||||
], | ], | ||||
[ | [ | ||||
'label' => '<span class="glyphicon glyphicon-plus"></span> Commander', | 'label' => '<span class="glyphicon glyphicon-plus"></span> Commander', | ||||
'url' => Yii::$app->urlManager->createUrl(['commande/index']), | |||||
'url' => Yii::$app->urlManager->createUrl(['commande/create']), | |||||
'visible' => !Yii::$app->user->isGuest, | 'visible' => !Yii::$app->user->isGuest, | ||||
'active' => $this->getControllerAction() == 'commande/index', | |||||
'active' => $this->getControllerAction() == 'commande/create' || $this->getControllerAction() == 'commande/update', | |||||
], | ], | ||||
[ | [ | ||||
'label' => '<span class="glyphicon glyphicon-folder-open"></span> Historique', | 'label' => '<span class="glyphicon glyphicon-folder-open"></span> Historique', |
<?php | <?php | ||||
$producer = $this->getProducer() ; | |||||
$producer = $this->context->getProducer() ; | |||||
$this->setTitle(Html::encode($producer->type.' à '.$producer->ville)) ; | $this->setTitle(Html::encode($producer->type.' à '.$producer->ville)) ; | ||||
?> | ?> | ||||
width: 100%; | width: 100%; | ||||
max-width: 500px; | max-width: 500px; | ||||
} | } | ||||
/* line 4, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form, | |||||
.commande-update .commande-form { | |||||
min-height: 600px; | |||||
padding-bottom: 60px; | |||||
} | |||||
/* line 9, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form h2, | |||||
.commande-update .commande-form h2 { | |||||
font-family: "myriadpro-regular"; | |||||
} | |||||
/* line 13, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #infos-importantes.alert-warning, | |||||
.commande-update .commande-form #infos-importantes.alert-warning { | |||||
float: right; | |||||
} | |||||
/* line 19, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #datepicker-production .ui-datepicker, | |||||
.commande-update .commande-form #datepicker-production .ui-datepicker { | |||||
float: left; | |||||
margin-right: 20px; | |||||
font-size: 20px; | |||||
} | |||||
/* line 25, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #datepicker-production .ui-datepicker-header, | |||||
.commande-update .commande-form #datepicker-production .ui-datepicker-header { | |||||
background-color: #BB8757; | |||||
} | |||||
/* line 29, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #datepicker-production .ui-datepicker-title, | |||||
.commande-update .commande-form #datepicker-production .ui-datepicker-title { | |||||
color: white; | |||||
} | |||||
/* line 35, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #datepicker-production .ui-datepicker-prev:hover, | |||||
.commande-create .commande-form #datepicker-production .ui-datepicker-next:hover, | |||||
.commande-update .commande-form #datepicker-production .ui-datepicker-prev:hover, | |||||
.commande-update .commande-form #datepicker-production .ui-datepicker-next:hover { | |||||
border: 0px none; | |||||
background: none; | |||||
} | |||||
/* line 41, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #datepicker-production .ui-helper-clearfix:after, | |||||
.commande-update .commande-form #datepicker-production .ui-helper-clearfix:after { | |||||
clear: none; | |||||
} | |||||
/* line 46, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #datepicker-production .ui-datepicker-calendar a, | |||||
.commande-update .commande-form #datepicker-production .ui-datepicker-calendar a { | |||||
text-decoration: none; | |||||
background-color: #F8F1DD; | |||||
} | |||||
/* line 49, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #datepicker-production .ui-datepicker-calendar a.ui-state-hover, .commande-create .commande-form #datepicker-production .ui-datepicker-calendar a.ui-state-active, | |||||
.commande-update .commande-form #datepicker-production .ui-datepicker-calendar a.ui-state-hover, | |||||
.commande-update .commande-form #datepicker-production .ui-datepicker-calendar a.ui-state-active { | |||||
background-color: #BB8757; | |||||
color: white; | |||||
border-color: #cdc3b7; | |||||
} | |||||
/* line 58, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .date-commande, | |||||
.commande-update .commande-form .date-commande { | |||||
margin-bottom: 53px; | |||||
} | |||||
/* line 60, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .date-commande span, | |||||
.commande-update .commande-form .date-commande span { | |||||
background-color: #BB8757; | |||||
color: white; | |||||
-moz-border-radius: 10px; | |||||
-webkit-border-radius: 10px; | |||||
border-radius: 10px; | |||||
padding: 10px; | |||||
font-family: "myriadpro-regular"; | |||||
font-size: 20px; | |||||
} | |||||
/* line 70, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #has-commande-en-cours, | |||||
.commande-update .commande-form #has-commande-en-cours { | |||||
margin-top: 15px; | |||||
} | |||||
/* line 73, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #has-commande-en-cours a, | |||||
.commande-update .commande-form #has-commande-en-cours a { | |||||
color: #a94442; | |||||
text-decoration: none; | |||||
font-weight: bold; | |||||
} | |||||
/* line 80, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .field-commande-id_production, | |||||
.commande-update .commande-form .field-commande-id_production { | |||||
display: none; | |||||
} | |||||
/* line 84, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .field-commande-id_point_vente, | |||||
.commande-update .commande-form .field-commande-id_point_vente { | |||||
margin-top: 30px; | |||||
} | |||||
/* line 88, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .field-commande-id_production, | |||||
.commande-update .commande-form .field-commande-id_production { | |||||
margin-bottom: 0px; | |||||
} | |||||
/* line 90, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .field-commande-id_production label, | |||||
.commande-update .commande-form .field-commande-id_production label { | |||||
margin-bottom: 0px; | |||||
} | |||||
/* line 94, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .field-commande-id_production .help-block, | |||||
.commande-update .commande-form .field-commande-id_production .help-block { | |||||
margin-bottom: 0px; | |||||
} | |||||
/* line 99, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .field-commande-id_point_vente, | |||||
.commande-update .commande-form .field-commande-id_point_vente { | |||||
display: none; | |||||
} | |||||
/* line 103, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .blocs, | |||||
.commande-update .commande-form .blocs { | |||||
list-style-type: none; | |||||
margin: 0px; | |||||
padding: 0px; | |||||
} | |||||
/* line 108, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .blocs .bloc, | |||||
.commande-update .commande-form .blocs .bloc { | |||||
text-decoration: none; | |||||
width: 268px; | |||||
height: 130px; | |||||
float: left; | |||||
padding: 20px; | |||||
margin-right: 20px; | |||||
margin-bottom: 8px; | |||||
cursor: pointer; | |||||
float: left; | |||||
background-color: #f9f9f9; | |||||
background-color: white; | |||||
border: 1px solid #d8d8d8; | |||||
} | |||||
/* line 123, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .blocs .bloc .nom, | |||||
.commande-update .commande-form .blocs .bloc .nom { | |||||
font-family: "comfortaalight"; | |||||
font-size: 20px; | |||||
} | |||||
/* line 129, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .blocs .bloc .adresse, | |||||
.commande-update .commande-form .blocs .bloc .adresse { | |||||
color: gray; | |||||
font-size: 13px; | |||||
line-height: 16px; | |||||
} | |||||
/* line 135, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .blocs .bloc .horaires, | |||||
.commande-update .commande-form .blocs .bloc .horaires { | |||||
margin-top: 7px; | |||||
} | |||||
/* line 137, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .blocs .bloc .horaires .jour, | |||||
.commande-update .commande-form .blocs .bloc .horaires .jour { | |||||
font-weight: bold; | |||||
display: none; | |||||
} | |||||
/* line 144, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .blocs .bloc.selected, | |||||
.commande-update .commande-form .blocs .bloc.selected { | |||||
border-left: solid 5px #BB8757; | |||||
} | |||||
/* line 147, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .blocs .bloc.selected .contenu, | |||||
.commande-update .commande-form .blocs .bloc.selected .contenu { | |||||
position: relative; | |||||
left: -4px; | |||||
} | |||||
/* line 153, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .blocs .bloc:hover, | |||||
.commande-update .commande-form .blocs .bloc:hover { | |||||
-moz-box-shadow: 0px 0px 5px #d8d8d8; | |||||
-webkit-box-shadow: 0px 0px 5px #d8d8d8; | |||||
box-shadow: 0px 0px 5px #d8d8d8; | |||||
} | |||||
/* line 158, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .blocs .bloc.disabled, | |||||
.commande-update .commande-form .blocs .bloc.disabled { | |||||
display: none; | |||||
} | |||||
/* line 163, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .blocs .bloc .commentaire, | |||||
.commande-update .commande-form .blocs .bloc .commentaire { | |||||
margin-top: 5px; | |||||
} | |||||
/* line 165, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form .blocs .bloc .commentaire span, | |||||
.commande-update .commande-form .blocs .bloc .commentaire span { | |||||
background-color: #BB8757; | |||||
-moz-border-radius: 5px; | |||||
-webkit-border-radius: 5px; | |||||
border-radius: 5px; | |||||
color: white; | |||||
font-weight: bold; | |||||
padding: 3px 10px; | |||||
} | |||||
/* line 176, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits, | |||||
.commande-update .commande-form #produits { | |||||
margin-top: 15px; | |||||
} | |||||
/* line 179, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits #label-produits, | |||||
.commande-update .commande-form #produits #label-produits { | |||||
display: block; | |||||
margin-bottom: 5px; | |||||
} | |||||
/* line 184, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table, | |||||
.commande-update .commande-form #produits .table { | |||||
margin-top: 7px; | |||||
} | |||||
/* line 187, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table .illu, | |||||
.commande-update .commande-form #produits .table .illu { | |||||
float: left; | |||||
height: auto; | |||||
width: 70px; | |||||
margin-right: 15px; | |||||
} | |||||
/* line 194, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table .photo, | |||||
.commande-update .commande-form #produits .table .photo { | |||||
padding: 0px; | |||||
width: 120px; | |||||
} | |||||
/* line 199, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table .th-photo, .commande-create .commande-form #produits .table .td-photo, | |||||
.commande-update .commande-form #produits .table .th-photo, | |||||
.commande-update .commande-form #produits .table .td-photo { | |||||
width: 120px; | |||||
} | |||||
/* line 203, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table .nom, | |||||
.commande-update .commande-form #produits .table .nom { | |||||
font-family: "comfortaalight"; | |||||
font-weight: bold; | |||||
text-transform: uppercase; | |||||
font-size: 18px; | |||||
} | |||||
/* line 210, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table .description, | |||||
.commande-update .commande-form #produits .table .description { | |||||
font-style: italic; | |||||
} | |||||
/* line 214, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table .recette, | |||||
.commande-update .commande-form #produits .table .recette { | |||||
font-size: 12px; | |||||
} | |||||
/* line 218, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table .input-group, | |||||
.commande-update .commande-form #produits .table .input-group { | |||||
width: 133px; | |||||
} | |||||
/* line 220, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table .input-group .quantity, | |||||
.commande-update .commande-form #produits .table .input-group .quantity { | |||||
text-align: center; | |||||
} | |||||
/* line 225, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table .colonne-quantite, .commande-create .commande-form #produits .table .prix-unit, .commande-create .commande-form #produits .table .total, | |||||
.commande-update .commande-form #produits .table .colonne-quantite, | |||||
.commande-update .commande-form #produits .table .prix-unit, | |||||
.commande-update .commande-form #produits .table .total { | |||||
width: 150px; | |||||
text-align: center; | |||||
} | |||||
/* line 230, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table td#total-commande, .commande-create .commande-form #produits .table td#total-commande-vrac, .commande-create .commande-form #produits .table td.total, | |||||
.commande-update .commande-form #produits .table td#total-commande, | |||||
.commande-update .commande-form #produits .table td#total-commande-vrac, | |||||
.commande-update .commande-form #produits .table td.total { | |||||
text-align: center; | |||||
} | |||||
/* line 234, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table .epuise, | |||||
.commande-update .commande-form #produits .table .epuise { | |||||
display: none; | |||||
text-transform: uppercase; | |||||
color: #B32815; | |||||
font-weight: bold; | |||||
font-size: 16px; | |||||
text-align: center; | |||||
} | |||||
/* line 243, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table .quantite-restante, | |||||
.commande-update .commande-form #produits .table .quantite-restante { | |||||
font-size: 12px; | |||||
margin-top: 8px; | |||||
} | |||||
/* line 247, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table .quantite-restante .nb, | |||||
.commande-update .commande-form #produits .table .quantite-restante .nb { | |||||
font-weight: bold; | |||||
} | |||||
/* line 252, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table td.produit, .commande-create .commande-form #produits .table th.produit, | |||||
.commande-update .commande-form #produits .table td.produit, | |||||
.commande-update .commande-form #produits .table th.produit { | |||||
width: 70%; | |||||
} | |||||
/* line 256, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table td.prix-unit, .commande-create .commande-form #produits .table th.prix-unit, | |||||
.commande-update .commande-form #produits .table td.prix-unit, | |||||
.commande-update .commande-form #produits .table th.prix-unit { | |||||
width: 10%; | |||||
} | |||||
/* line 260, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table td.colonne-quantite, .commande-create .commande-form #produits .table th.colonne-quantite, | |||||
.commande-update .commande-form #produits .table td.colonne-quantite, | |||||
.commande-update .commande-form #produits .table th.colonne-quantite { | |||||
width: 10%; | |||||
} | |||||
/* line 264, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #produits .table td.total, .commande-create .commande-form #produits .table th.total, | |||||
.commande-update .commande-form #produits .table td.total, | |||||
.commande-update .commande-form #produits .table th.total { | |||||
width: 10%; | |||||
} | |||||
/* line 270, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed, | |||||
.commande-update .commande-form #bar-fixed { | |||||
display: none; | |||||
position: fixed; | |||||
bottom: 0px; | |||||
z-index: 100; | |||||
background-color: white; | |||||
padding: 15px; | |||||
margin-bottom: 0px; | |||||
-moz-box-shadow: 0 0 5px gray; | |||||
-webkit-box-shadow: 0 0 5px gray; | |||||
box-shadow: 0 0 5px gray; | |||||
-moz-border-radius: 10px 10px 0px 0px; | |||||
-webkit-border-radius: 10px; | |||||
border-radius: 10px 10px 0px 0px; | |||||
border-top: solid 1px #e0e0e0; | |||||
background-color: #F9F9F9; | |||||
background-color: #F8F1DD; | |||||
text-align: center; | |||||
} | |||||
/* line 287, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed .container, | |||||
.commande-update .commande-form #bar-fixed .container { | |||||
min-height: auto; | |||||
background: none; | |||||
border: 0px none; | |||||
} | |||||
/* line 293, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed.not-fixed, | |||||
.commande-update .commande-form #bar-fixed.not-fixed { | |||||
position: relative; | |||||
-moz-box-shadow: none; | |||||
-webkit-box-shadow: none; | |||||
box-shadow: none; | |||||
-moz-border-radius: 0px; | |||||
-webkit-border-radius: 0px; | |||||
border-radius: 0px; | |||||
border: solid 1px #e0e0e0; | |||||
padding-right: 20px; | |||||
} | |||||
/* line 302, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed.no-credit-pain #bloc-valider-commande, | |||||
.commande-update .commande-form #bar-fixed.no-credit-pain #bloc-valider-commande { | |||||
margin-top: 0px; | |||||
float: right; | |||||
} | |||||
/* line 308, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed #total-commande-bottom, | |||||
.commande-update .commande-form #bar-fixed #total-commande-bottom { | |||||
background-color: white; | |||||
-moz-border-radius: 20px; | |||||
-webkit-border-radius: 20px; | |||||
border-radius: 20px; | |||||
padding: 5px 25px; | |||||
border: solid 1px #e0e0e0; | |||||
} | |||||
/* line 315, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed .btn-commentaire, | |||||
.commande-update .commande-form #bar-fixed .btn-commentaire { | |||||
float: left; | |||||
} | |||||
/* line 323, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed .btn-commentaire, | |||||
.commande-update .commande-form #bar-fixed .btn-commentaire { | |||||
margin-right: 10px; | |||||
} | |||||
/* line 327, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed #bloc-valider-commande, | |||||
.commande-update .commande-form #bar-fixed #bloc-valider-commande { | |||||
text-align: right; | |||||
margin-top: 20px; | |||||
} | |||||
/* line 331, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed #bloc-valider-commande button, | |||||
.commande-update .commande-form #bar-fixed #bloc-valider-commande button { | |||||
width: 340px; | |||||
margin-right: 10px; | |||||
} | |||||
/* line 337, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed #checkbox-credit-pain, | |||||
.commande-update .commande-form #bar-fixed #checkbox-credit-pain { | |||||
float: right; | |||||
width: 340px; | |||||
padding: 3px 11px; | |||||
background-color: white; | |||||
border: solid 1px #ccc; | |||||
-moz-border-radius: 5px; | |||||
-webkit-border-radius: 5px; | |||||
border-radius: 5px; | |||||
margin-right: 10px; | |||||
text-shadow: 0 1px 0 #fff; | |||||
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 1px 1px rgba(0, 0, 0, 0.075); | |||||
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 1px 1px rgba(0, 0, 0, 0.075); | |||||
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 1px 1px rgba(0, 0, 0, 0.075); | |||||
} | |||||
/* line 348, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed #checkbox-credit-pain.paiement-impossible, | |||||
.commande-update .commande-form #bar-fixed #checkbox-credit-pain.paiement-impossible { | |||||
background-color: #e0e0e0; | |||||
} | |||||
/* line 352, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed #checkbox-credit-pain .info, | |||||
.commande-update .commande-form #bar-fixed #checkbox-credit-pain .info { | |||||
color: gray; | |||||
font-weight: normal; | |||||
} | |||||
/* line 357, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed #checkbox-credit-pain .the-credit, | |||||
.commande-update .commande-form #bar-fixed #checkbox-credit-pain .the-credit { | |||||
background-color: #BB8757; | |||||
color: white; | |||||
padding: 2px 8px; | |||||
-moz-border-radius: 5px; | |||||
-webkit-border-radius: 5px; | |||||
border-radius: 5px; | |||||
} | |||||
/* line 364, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed #checkbox-credit-pain .montant-paye, | |||||
.commande-update .commande-form #bar-fixed #checkbox-credit-pain .montant-paye { | |||||
color: #BB8757; | |||||
} | |||||
/* line 368, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed #checkbox-credit-pain #info-credit-vide, | |||||
.commande-update .commande-form #bar-fixed #checkbox-credit-pain #info-credit-vide { | |||||
font-size: 12px; | |||||
} | |||||
/* line 372, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed #checkbox-credit-pain #credit-pain-disabled, | |||||
.commande-update .commande-form #bar-fixed #checkbox-credit-pain #credit-pain-disabled { | |||||
display: none; | |||||
font-size: 12px; | |||||
} | |||||
/* line 378, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed .btn-retour, .commande-create .commande-form #bar-fixed .annuler-commande, | |||||
.commande-update .commande-form #bar-fixed .btn-retour, | |||||
.commande-update .commande-form #bar-fixed .annuler-commande { | |||||
float: left; | |||||
margin-right: 5px; | |||||
} | |||||
/* line 383, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed .annuler-commande, | |||||
.commande-update .commande-form #bar-fixed .annuler-commande { | |||||
color: #b92c28; | |||||
background-color: white; | |||||
} | |||||
/* line 388, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed #total-commande-bottom, | |||||
.commande-update .commande-form #bar-fixed #total-commande-bottom { | |||||
display: none; | |||||
font-weight: bold; | |||||
font-family: "comfortaalight"; | |||||
font-size: 24px; | |||||
} | |||||
/* line 395, ../sass/commande/_form.scss */ | |||||
.commande-create .commande-form #bar-fixed .field-commande-commentaire, | |||||
.commande-update .commande-form #bar-fixed .field-commande-commentaire { | |||||
display: none; | |||||
} | |||||
/* line 403, ../sass/commande/_form.scss */ | |||||
.commande-create .ui-datepicker .ui-widget-header, | |||||
.commande-update .ui-datepicker .ui-widget-header { | |||||
background: none; | |||||
background-color: gray; | |||||
border: 0px none; | |||||
color: black; | |||||
font-weight: normal; | |||||
} | |||||
/* line 411, ../sass/commande/_form.scss */ | |||||
.commande-create .ui-datepicker .ui-datepicker-current-day a, | |||||
.commande-create .ui-datepicker a.ui-state-hover, | |||||
.commande-update .ui-datepicker .ui-datepicker-current-day a, | |||||
.commande-update .ui-datepicker a.ui-state-hover { | |||||
background: none; | |||||
background-color: gray; | |||||
border-color: black; | |||||
color: black; | |||||
} | |||||
/* line 4, ../sass/commande/_historique.scss */ | |||||
.commande-historique #liste-boulangeries { | |||||
display: none; | |||||
} |
$(document).ready(function() | $(document).ready(function() | ||||
{ | { | ||||
producer_dropdown() ; | |||||
boulange_signup() ; | boulange_signup() ; | ||||
boulange_add_boulangerie() ; | boulange_add_boulangerie() ; | ||||
}); | }); | ||||
function producer_dropdown() { | |||||
$(".dropdown-toggle").dropdown(); | |||||
} | |||||
function boulange_scroll(id) { | function boulange_scroll(id) { | ||||
if($("#"+id).size()) | if($("#"+id).size()) | ||||
$('html,body').animate({ | $('html,body').animate({ |
.commande-create, | |||||
.commande-update { | |||||
.commande-form { | |||||
min-height: 600px ; | |||||
padding-bottom: 60px ; | |||||
h2 { | |||||
font-family: "myriadpro-regular" ; | |||||
} | |||||
#infos-importantes.alert-warning { | |||||
float: right ; | |||||
} | |||||
#datepicker-production { | |||||
.ui-datepicker { | |||||
float: left ; | |||||
margin-right: 20px ; | |||||
font-size: 20px ; | |||||
} | |||||
.ui-datepicker-header { | |||||
background-color: $color1 ; | |||||
} | |||||
.ui-datepicker-title { | |||||
color: white | |||||
} | |||||
.ui-datepicker-prev, | |||||
.ui-datepicker-next { | |||||
&:hover { | |||||
border: 0px none ; | |||||
background: none ; | |||||
} | |||||
} | |||||
.ui-helper-clearfix:after { | |||||
clear: none ; | |||||
} | |||||
.ui-datepicker-calendar { | |||||
a { | |||||
text-decoration: none ; | |||||
background-color: $color2 ; | |||||
&.ui-state-hover, &.ui-state-active { | |||||
background-color: $color1 ; | |||||
color: white ; | |||||
border-color: #cdc3b7 ; | |||||
} | |||||
} | |||||
} | |||||
} | |||||
.date-commande { | |||||
margin-bottom: 53px ; | |||||
span { | |||||
background-color: $color1 ; | |||||
color: white ; | |||||
@include border-radius(10px) ; | |||||
padding: 10px ; | |||||
font-family: "myriadpro-regular"; | |||||
font-size: 20px ; | |||||
} | |||||
} | |||||
#has-commande-en-cours { | |||||
margin-top: 15px ; | |||||
a { | |||||
color: #a94442 ; | |||||
text-decoration: none ; | |||||
font-weight: bold ; | |||||
} | |||||
} | |||||
.field-commande-id_production { | |||||
display: none ; | |||||
} | |||||
.field-commande-id_point_vente { | |||||
margin-top: 30px ; | |||||
} | |||||
.field-commande-id_production { | |||||
margin-bottom: 0px ; | |||||
label { | |||||
margin-bottom: 0px ; | |||||
} | |||||
.help-block { | |||||
margin-bottom: 0px ; | |||||
} | |||||
} | |||||
.field-commande-id_point_vente { | |||||
display: none ; | |||||
} | |||||
.blocs { | |||||
list-style-type: none ; | |||||
margin: 0px ; | |||||
padding: 0px ; | |||||
.bloc { | |||||
text-decoration: none ; | |||||
width: 268px ; | |||||
height: 130px ; | |||||
float: left ; | |||||
padding: 20px ; | |||||
margin-right: 20px ; | |||||
margin-bottom: 8px ; | |||||
cursor: pointer ; | |||||
float: left ; | |||||
background-color: #f9f9f9 ; | |||||
background-color: white ; | |||||
border: 1px solid #d8d8d8 ; | |||||
.nom { | |||||
//text-align: center ; | |||||
font-family: "comfortaalight" ; | |||||
font-size: 20px ; | |||||
} | |||||
.adresse { | |||||
color: gray ; | |||||
font-size: 13px ; | |||||
line-height: 16px ; | |||||
} | |||||
.horaires { | |||||
margin-top: 7px ; | |||||
.jour { | |||||
font-weight: bold ; | |||||
display: none ; | |||||
} | |||||
} | |||||
&.selected { | |||||
border-left: solid 5px $color1 ; | |||||
//@include box-shadow(0px 0px 5px #d8d8d8) ; | |||||
.contenu { | |||||
position: relative ; | |||||
left: -4px ; | |||||
} | |||||
} | |||||
&:hover { | |||||
@include box-shadow(0px 0px 5px #d8d8d8) ; | |||||
//@include box-shadow(none) ; | |||||
} | |||||
&.disabled { | |||||
display: none ; | |||||
//color: gray ; | |||||
} | |||||
.commentaire { | |||||
margin-top: 5px ; | |||||
span { | |||||
background-color: $color1 ; | |||||
@include border-radius(5px) ; | |||||
color: white ; | |||||
font-weight: bold ; | |||||
padding: 3px 10px ; | |||||
} | |||||
} | |||||
} | |||||
} | |||||
#produits { | |||||
margin-top: 15px ; | |||||
#label-produits { | |||||
display: block ; | |||||
margin-bottom: 5px ; | |||||
} | |||||
.table { | |||||
margin-top: 7px ; | |||||
.illu { | |||||
float: left ; | |||||
height: auto ; | |||||
width: 70px ; | |||||
margin-right: 15px ; | |||||
} | |||||
.photo { | |||||
padding: 0px ; | |||||
width: 120px ; | |||||
} | |||||
.th-photo, .td-photo { | |||||
width: 120px ; | |||||
} | |||||
.nom { | |||||
font-family: "comfortaalight" ; | |||||
font-weight: bold ; | |||||
text-transform: uppercase ; | |||||
font-size: 18px ; | |||||
} | |||||
.description { | |||||
font-style: italic; | |||||
} | |||||
.recette { | |||||
font-size: 12px ; | |||||
} | |||||
.input-group { | |||||
width: 133px ; | |||||
.quantity { | |||||
text-align: center ; | |||||
} | |||||
} | |||||
.colonne-quantite, .prix-unit, .total { | |||||
width: 150px ; | |||||
text-align: center ; | |||||
} | |||||
td#total-commande, td#total-commande-vrac, td.total { | |||||
text-align: center ; | |||||
} | |||||
.epuise { | |||||
display: none ; | |||||
text-transform: uppercase ; | |||||
color: #B32815 ; | |||||
font-weight: bold ; | |||||
font-size: 16px ; | |||||
text-align: center ; | |||||
} | |||||
.quantite-restante { | |||||
font-size: 12px ; | |||||
margin-top: 8px ; | |||||
.nb { | |||||
font-weight: bold ; | |||||
} | |||||
} | |||||
td.produit, th.produit { | |||||
width: 70% ; | |||||
} | |||||
td.prix-unit, th.prix-unit { | |||||
width: 10% ; | |||||
} | |||||
td.colonne-quantite, th.colonne-quantite { | |||||
width: 10% ; | |||||
} | |||||
td.total, th.total { | |||||
width: 10% ; | |||||
} | |||||
} | |||||
} | |||||
#bar-fixed { | |||||
display: none ; | |||||
position: fixed ; | |||||
bottom: 0px ; | |||||
//left: 0px ; | |||||
z-index: 100 ; | |||||
//width: 100% ; | |||||
background-color: white ; | |||||
padding: 15px ; | |||||
margin-bottom: 0px ; | |||||
@include box-shadow(0 0 5px gray) ; | |||||
@include border-radius(10px 10px 0px 0px) ; | |||||
border-top: solid 1px #e0e0e0 ; | |||||
background-color: #F9F9F9 ; | |||||
background-color: $color2 ; | |||||
text-align: center ; | |||||
.container { | |||||
min-height: auto ; | |||||
background: none ; | |||||
border: 0px none ; | |||||
} | |||||
&.not-fixed { | |||||
position: relative ; | |||||
@include box-shadow(none) ; | |||||
@include border-radius(0px) ; | |||||
border: solid 1px #e0e0e0 ; | |||||
padding-right: 20px ; | |||||
} | |||||
&.no-credit-pain { | |||||
#bloc-valider-commande { | |||||
margin-top: 0px ; | |||||
float: right ; | |||||
} | |||||
} | |||||
#total-commande-bottom { | |||||
background-color: white ; | |||||
@include border-radius(20px) ; | |||||
padding: 5px 25px ; | |||||
border: solid 1px #e0e0e0 ; | |||||
} | |||||
.btn-commentaire { | |||||
float: left ; | |||||
} | |||||
.valider-commande { | |||||
//float: left; | |||||
} | |||||
.btn-commentaire { | |||||
margin-right: 10px ; | |||||
} | |||||
#bloc-valider-commande { | |||||
text-align: right ; | |||||
margin-top: 20px ; | |||||
button { | |||||
width: 340px ; | |||||
margin-right: 10px ; | |||||
} | |||||
} | |||||
#checkbox-credit-pain { | |||||
float: right ; | |||||
width: 340px ; | |||||
padding: 3px 11px ; | |||||
background-color: white ; | |||||
border: solid 1px #ccc ; | |||||
@include border-radius(5px) ; | |||||
margin-right: 10px ; | |||||
@include text-shadow(0 1px 0 #fff) ; | |||||
@include box-shadow(0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 1px 1px rgba(0, 0, 0, 0.075)) ; | |||||
&.paiement-impossible { | |||||
background-color: #e0e0e0 ; | |||||
} | |||||
.info { | |||||
color: gray ; | |||||
font-weight: normal | |||||
} | |||||
.the-credit { | |||||
background-color: $color1 ; | |||||
color: white ; | |||||
padding: 2px 8px; | |||||
@include border-radius(5px) ; | |||||
} | |||||
.montant-paye { | |||||
color: $color1 ; | |||||
} | |||||
#info-credit-vide { | |||||
font-size: 12px ; | |||||
} | |||||
#credit-pain-disabled { | |||||
display: none ; | |||||
font-size: 12px ; | |||||
} | |||||
} | |||||
.btn-retour, .annuler-commande { | |||||
float: left ; | |||||
margin-right: 5px ; | |||||
} | |||||
.annuler-commande { | |||||
color: #b92c28 ; | |||||
background-color: white ; | |||||
} | |||||
#total-commande-bottom { | |||||
display: none ; | |||||
font-weight: bold ; | |||||
font-family: "comfortaalight" ; | |||||
font-size: 24px ; | |||||
} | |||||
.field-commande-commentaire { | |||||
display: none ; | |||||
} | |||||
} | |||||
} | |||||
.ui-datepicker { | |||||
//@include border-radius(0px) ; | |||||
.ui-widget-header { | |||||
background: none ; | |||||
background-color: gray ; | |||||
border: 0px none ; | |||||
color: black ; | |||||
font-weight: normal ; | |||||
} | |||||
.ui-datepicker-current-day a, | |||||
a.ui-state-hover { | |||||
background: none ; | |||||
//background-color: #fdd44b ; | |||||
background-color: gray ; | |||||
border-color: black ; | |||||
color: black ; | |||||
} | |||||
} | |||||
} | |||||
.commande-historique { | |||||
#liste-boulangeries { | |||||
display: none ; | |||||
} | |||||
} |
@import "compass/reset"; | @import "compass/reset"; | ||||
@import "_layout.scss"; | @import "_layout.scss"; | ||||
@import "producer/_index.scss"; | @import "producer/_index.scss"; | ||||
@import "commande/_form.scss"; | |||||
@import "commande/_historique.scss"; |