Pārlūkot izejas kodu

Système de code d'accès pour sécuriser l'ajout des boulangeries sur le tableau de bord

Mise à jour du PDF avec le code d'accès configuré dans l'établissement.
Possibilité pour le boulanger de modifier le code d'accès dans ses paramètres.
Modification du formulaire d'ajout de boulangerie dans le tableau de bord utilisateur
pour prendre en compte le le code et non l'id.
Modification du formulaire d'inscription pour générer un premier code d'accès à l'inscription du boulanger.
master
keun pirms 8 gadiem
vecāks
revīzija
a6d7fc8c0d
15 mainītis faili ar 196 papildinājumiem un 134 dzēšanām
  1. +9
    -40
      backend/controllers/CommuniquerController.php
  2. +1
    -1
      backend/views/communiquer/index.php
  3. +3
    -1
      backend/views/communiquer/mode_emploi.php
  4. +1
    -1
      backend/views/communiquer/mode_emploi_multi.php
  5. +2
    -2
      backend/views/etablissement/update.php
  6. +13
    -2
      common/models/Etablissement.php
  7. +28
    -0
      console/migrations/m161117_094154_add_champs_code_boulangerie.php
  8. +1
    -1
      frontend/controllers/CommandeController.php
  9. +27
    -10
      frontend/models/AddEtablissementForm.php
  10. +18
    -1
      frontend/models/SignupForm.php
  11. +3
    -2
      frontend/views/commande/index.php
  12. +12
    -5
      frontend/views/layouts/main.php
  13. Binārs
      frontend/web/.sass-cache/e1a48ee3204d3a535cdbe440c2995954a615ac19/_systeme_commandes.scssc
  14. +73
    -68
      frontend/web/css/screen.css
  15. +5
    -0
      frontend/web/sass/_systeme_commandes.scss

+ 9
- 40
backend/controllers/CommuniquerController.php Parādīt failu

@@ -10,6 +10,7 @@ use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use kartik\mpdf\Pdf;
use common\models\Etablissement;

/**
* UserController implements the CRUD actions for User model.
@@ -43,54 +44,22 @@ class CommuniquerController extends BackendController
public function actionIndex()
{
return $this->render('index') ;
}
public function actionAffiche()
{
// get your HTML raw content without any layouts or scripts
$content = $this->renderPartial('affiche',[
]);

$pdf = new Pdf([
// set to use core fonts only
'mode' => Pdf::MODE_UTF8,
// A4 paper format
'format' => Pdf::FORMAT_A4,
// portrait orientation
'orientation' => Pdf::ORIENT_LANDSCAPE,
// stream to browser inline
'destination' => Pdf::DEST_BROWSER,
// your html content input
'content' => $content,
// format content from your own css file if needed or use the
// enhanced bootstrap css built by Krajee for mPDF formatting
//'cssFile' => '@vendor/kartik-v/yii2-mpdf/assets/kv-mpdf-bootstrap.min.css',
// any css to be embedded if required
//'cssInline' => '.kv-heading-1{font-size:18px}',
// set mPDF properties on the fly
//'options' => ['title' => 'Krajee Report Title'],
// call mPDF methods on the fly
/*'methods' => [
'SetHeader'=>['Commandes du '.$date_str],
'SetFooter'=>['{PAGENO}'],
]*/
]);

// return the pdf output as per the destination setting
return $pdf->render();
$etablissement = Etablissement::findOne(['id' => Yii::$app->user->identity->id_etablissement]) ;
return $this->render('index', [
'etablissement' => $etablissement,
]) ;
}
public function actionModeemploi()
{
$etablissement = Etablissement::findOne(['id' => Yii::$app->user->identity->id_etablissement]) ;
// get your HTML raw content without any layouts or scripts
$content = $this->renderPartial('mode_emploi_multi',[
'pdf' => true
'pdf' => true,
'etablissement' => $etablissement
]);

$pdf = new Pdf([

+ 1
- 1
backend/views/communiquer/index.php Parādīt failu

@@ -15,6 +15,6 @@ $this->title = 'Communiquer' ;
<h1><?= Html::encode($this->title) ; ?></h1>

<p>Imprimez ce petit encart pour expliquer à vos clients comment passer leurs commandes.</p>
<?php echo $this->render('mode_emploi') ; ?>
<?php echo $this->render('mode_emploi', ['etablissement' => $etablissement]) ; ?>
<p><?php echo Html::a('<span class="glyphicon glyphicon-download-alt"></span> Télécharger', ['communiquer/modeemploi'], ['class'=>'btn btn-primary']) ?></p>


+ 3
- 1
backend/views/communiquer/mode_emploi.php Parādīt failu

@@ -1,5 +1,7 @@
<?php

use yii\helpers\Html ;

?>

<div class="communiquer-mode-emploi<?php if(isset($pdf) && $pdf): ?> communiquer-mode-emploi-pdf<?php endif; ?><?php if(!isset($pdf)): ?> communiquer-mode-emploi-encart<?php endif; ?>">
@@ -16,7 +18,7 @@
<ol>
<li>Inscrivez-vous sur <strong>www.laboiteapain.net</strong></li>
<li>Ajoutez la boulangerie grâce au code :<br /> <div class="code"><strong>3RMV4Z</strong></div></li>
<li>Ajoutez la boulangerie grâce au code :<br /> <div class="code"><strong><?= Html::encode($etablissement->code) ?></strong> <?php if(!isset($pdf)): echo Html::a('<span class="glyphicon glyphicon-pencil"></span>', ['etablissement/update'], ['class'=> 'btn btn-default btn-xs']); endif; ?></div></li>
<li>Passez votre commande</li>
</ol>
</div>

+ 1
- 1
backend/views/communiquer/mode_emploi_multi.php Parādīt failu

@@ -4,6 +4,6 @@

<?php for($i = 0; $i < 8; $i++): ?>
<div class="bloc-mode-emploi-pdf<?php if($i%2 == 0): ?> bloc-mode-emploi-border<?php endif; ?><?php if($i == 6 || $i == 7): ?> bloc-mode-emploi-bottom<?php endif; ?>">
<?php echo $this->render('mode_emploi',['pdf' => true]) ; ?>
<?php echo $this->render('mode_emploi',['pdf' => true, 'etablissement' => $etablissement]) ; ?>
</div>
<?php endfor; ?>

+ 2
- 2
backend/views/etablissement/update.php Parādīt failu

@@ -10,14 +10,14 @@ $this->title = 'Paramètres';
$this->params['breadcrumbs'][] = 'Paramètres';
?>
<div class="user-update">

<h1><?= Html::encode($this->title) ?></h1>

<div class="user-form">
<?php $form = ActiveForm::begin(); ?>
<div class="">
<?= $form->field($model, 'code_postal') ?>
<?= $form->field($model, 'ville') ?>
<?= $form->field($model, 'code')->hint("Ce code est à communiquer à vos client pour qu'ils puissent ajouter votre boulangerie à leur tableau de bord.<br />"
. "<a href=\"".Yii::$app->urlManager->createUrl(['communiquer/index'])."\">Cliquez ici</a> pour télécharger un mode d'emploi comprenant ce code à distribuer à vos clients.") ?>
<?php //$form->field($model, 'description')->textarea(['rows' => 10]) ?>
<?= $form->field($model, 'photo')->fileInput() ?>
<?php

+ 13
- 2
common/models/Etablissement.php Parādīt failu

@@ -39,9 +39,20 @@ class Etablissement extends \yii\db\ActiveRecord
public function rules()
{
return [
[['nom', 'siret'], 'required'],
[['nom', 'siret','code'], 'required'],
['code', function($attribute, $params)
{
$code = $this->$attribute ;
$etablissement = Etablissement::findOne(['code' => $code]) ;
if($etablissement && $etablissement->id != $this->id)
{
$this->addError($attribute, 'Ce code est déjà utilisé par une autre boulangerie.');
}
}],
[['description'], 'string'],
[['nom', 'siret', 'logo', 'photo', 'code_postal', 'ville'], 'string', 'max' => 255],
[['nom', 'siret', 'logo', 'photo', 'code_postal', 'ville','code'], 'string', 'max' => 255],
];
}


+ 28
- 0
console/migrations/m161117_094154_add_champs_code_boulangerie.php Parādīt failu

@@ -0,0 +1,28 @@
<?php

use yii\db\Migration;
use yii\db\Schema ;

class m161117_094154_add_champs_code_boulangerie extends Migration
{
public function up()
{
$this->addColumn('etablissement', 'code', Schema::TYPE_STRING) ;
}

public function down()
{
$this->dropColumn('etablissement', 'code') ;
}

/*
// Use safeUp/safeDown to run migration code within a transaction
public function safeUp()
{
}

public function safeDown()
{
}
*/
}

+ 1
- 1
frontend/controllers/CommandeController.php Parādīt failu

@@ -152,7 +152,7 @@ class CommandeController extends \yii\web\Controller {
&& $model_form_etablissement->validate())
{
$model_form_etablissement->add() ;
$model_form_etablissement->id_etablissement = 0 ;
$model_form_etablissement->code = '' ;
}
// liste des etablissements

+ 27
- 10
frontend/models/AddEtablissementForm.php Parādīt failu

@@ -5,6 +5,8 @@ namespace frontend\models;
use Yii;
use yii\base\Model;
use common\models\UserEtablissement;
use common\models\Etablissement ;
use yii\helpers\Html ;

/**
* ContactForm is the model behind the contact form.
@@ -12,6 +14,7 @@ use common\models\UserEtablissement;
class AddEtablissementForm extends Model
{
public $id_etablissement;
public $code ;

/**
* @inheritdoc
@@ -19,7 +22,7 @@ class AddEtablissementForm extends Model
public function rules()
{
return [
['id_etablissement', 'required', 'message' => 'Champs obligatoire'],
['code', 'required', 'message' => 'Champs obligatoire'],
];
}

@@ -29,7 +32,7 @@ class AddEtablissementForm extends Model
public function attributeLabels()
{
return [
'id_etablissement' => 'Ajouter une boulangerie',
'code' => 'Code',
];
}

@@ -41,16 +44,30 @@ class AddEtablissementForm extends Model
*/
public function add()
{
$user_etablissement_exist = UserEtablissement::find()
->where(['id_user'=>Yii::$app->user->identity->id, 'id_etablissement' =>$this->id_etablissement])
->one() ;
$etablissement = Etablissement::findOne(['code' => $this->code]) ;
if(!$user_etablissement_exist)
if($etablissement)
{
$user_etablissement = new UserEtablissement() ;
$user_etablissement->id_user = Yii::$app->user->identity->id ;
$user_etablissement->id_etablissement = $this->id_etablissement ;
$user_etablissement->save() ;
$user_etablissement_exist = UserEtablissement::find()
->where(['id_user'=>Yii::$app->user->identity->id, 'id_etablissement' =>$etablissement->id])
->one() ;
if(!$user_etablissement_exist)
{
$user_etablissement = new UserEtablissement() ;
$user_etablissement->id_user = Yii::$app->user->identity->id ;
$user_etablissement->id_etablissement = $etablissement->id ;
$user_etablissement->save() ;
Yii::$app->session->setFlash('success', 'La boulangerie <strong>'.Html::encode($etablissement->nom).'</strong> a bien été ajoutée à votre tableau de bord.') ;
}
else {
Yii::$app->session->setFlash('error', 'Cette boulangerie est déjà sur votre tableau de bord.') ;
}
}
else {
Yii::$app->session->setFlash('error', 'Aucun établissement ne possède ce code d\'accès.') ;
}
}
}

+ 18
- 1
frontend/models/SignupForm.php Parādīt failu

@@ -27,6 +27,8 @@ class SignupForm extends Model
public $id_etablissement ;
public $option_client_boulanger ;
public $cgv ;
public $code ;
/**
* @inheritdoc
@@ -47,7 +49,7 @@ class SignupForm extends Model
['is_boulanger', 'boolean'],
['id_etablissement', 'integer'],
['code', 'string'],
['cgv', 'boolean'],
['cgv', function($attribute, $params) {
$cgv = $this->$attribute ;
@@ -147,6 +149,21 @@ class SignupForm extends Model
$etablissement->siret = $this->siret;
$etablissement->code_postal = $this->code_postal;
$etablissement->ville = $this->ville;
// génération d'un code
do {
$chaine = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789' ;
$nb = strlen($chaine) - 1;
$code = '';
for($i=0; $i < 6; $i++)
{
$pos = mt_rand(0, $nb);
$car = $chaine[$pos];
$code .= $car;
}
$etablissement->code = $code ;
} while(Etablissement::findOne(['code' => $code]));
$etablissement->save() ;
// user

+ 3
- 2
frontend/views/commande/index.php Parādīt failu

@@ -41,8 +41,9 @@ $this->title = 'Commande' ;
</div>
<div class="panel-body">
<?php $form = ActiveForm::begin(['id' => 'form-add-boulanger','enableClientValidation'=> false]); ?>
<?= $form->field($model_form_etablissement, 'id_etablissement')->label('')->dropDownList($data_etablissements_dispos, ['prompt' => '--','encode' => false,'options' => $options_etablissements_dispos]) ?>
<?= Html::submitButton('<span class="glyphicon glyphicon-plus"></span> Ajouter', ['class' => 'btn btn-default', 'name' => 'add-etablissement-button']) ?>
<?php //$form->field($model_form_etablissement, 'id_etablissement')->label('')->dropDownList($data_etablissements_dispos, ['prompt' => '--','encode' => false,'options' => $options_etablissements_dispos]) ?>
<?= $form->field($model_form_etablissement, 'code')->label('Code')->hint('Renseignez-vous auprès de votre boulangerie pour qu\'elle vous fournisse un code d\'accès') ; ?>
<?= Html::submitButton('<span class="glyphicon glyphicon-plus"></span> Valider', ['class' => 'btn btn-default', 'name' => 'add-etablissement-button']) ?>
<?php ActiveForm::end(); ?>
</div>
</div>

+ 12
- 5
frontend/views/layouts/main.php Parādīt failu

@@ -57,12 +57,19 @@ AppAsset::register($this);
</div>
</header>
<div id="main">
<section class="<?php if(!$is_home): ?>container<?php endif;?>" id="content">
<?= $content ?>
<?php if(Yii::$app->session->hasFlash('error')): ?>
<div class="alert alert-danger" role="alert">
<?= Yii::$app->session->getFlash('error') ?>
</div>
<?php endif; ?>
<?php if(Yii::$app->session->hasFlash('success')): ?>
<div class="alert alert-success" role="alert">
<?= Yii::$app->session->getFlash('success') ?>
</div>
<?php endif; ?>
<?= $content ?>
</section>
</div>
<footer id="footer">

Binārs
frontend/web/.sass-cache/e1a48ee3204d3a535cdbe440c2995954a615ac19/_systeme_commandes.scssc Parādīt failu


+ 73
- 68
frontend/web/css/screen.css Parādīt failu

@@ -652,97 +652,102 @@ h2 {
float: left;
}
/* line 136, ../sass/_systeme_commandes.scss */
#index-commande #bloc-add-etablissement .field-addetablissementform-code {
width: 70%;
float: left;
}
/* line 141, ../sass/_systeme_commandes.scss */
#index-commande #bloc-add-etablissement .btn {
float: right;
position: relative;
top: 20px;
}
/* line 142, ../sass/_systeme_commandes.scss */
/* line 147, ../sass/_systeme_commandes.scss */
#index-commande #bloc-add-etablissement .panel-heading {
background: none;
background-color: white;
cursor: pointer;
}
/* line 148, ../sass/_systeme_commandes.scss */
/* line 153, ../sass/_systeme_commandes.scss */
#index-commande #bloc-add-etablissement .panel-body {
display: none;
}
/* line 154, ../sass/_systeme_commandes.scss */
/* line 159, ../sass/_systeme_commandes.scss */
#index-commande #addetablissementform-id_etablissement option:disabled {
font-weight: bold;
color: black;
}
/* line 161, ../sass/_systeme_commandes.scss */
/* line 166, ../sass/_systeme_commandes.scss */
#index-commande #historique-commandes .statut, #index-commande #historique-commandes .montant {
width: 175px;
}
/* line 164, ../sass/_systeme_commandes.scss */
/* line 169, ../sass/_systeme_commandes.scss */
#index-commande #historique-commandes .montant {
width: 100px;
}
/* line 171, ../sass/_systeme_commandes.scss */
/* line 176, ../sass/_systeme_commandes.scss */
#index-commande #historique-commandes .localite {
font-size: 11px;
lin-height: 11px;
}
/* line 176, ../sass/_systeme_commandes.scss */
/* line 181, ../sass/_systeme_commandes.scss */
#index-commande #historique-commandes a {
text-decoration: none;
}

/* line 183, ../sass/_systeme_commandes.scss */
/* line 188, ../sass/_systeme_commandes.scss */
.commande-form {
min-height: 600px;
padding-bottom: 60px;
}
/* line 188, ../sass/_systeme_commandes.scss */
/* line 193, ../sass/_systeme_commandes.scss */
.commande-form h2 {
font-family: "myriadpro-regular";
}
/* line 192, ../sass/_systeme_commandes.scss */
/* line 197, ../sass/_systeme_commandes.scss */
.commande-form #infos-importantes.alert-warning {
float: right;
}
/* line 198, ../sass/_systeme_commandes.scss */
/* line 203, ../sass/_systeme_commandes.scss */
.commande-form #datepicker-production .ui-datepicker {
float: left;
margin-right: 20px;
font-size: 20px;
}
/* line 204, ../sass/_systeme_commandes.scss */
/* line 209, ../sass/_systeme_commandes.scss */
.commande-form #datepicker-production .ui-datepicker-header {
background-color: #BB8757;
}
/* line 208, ../sass/_systeme_commandes.scss */
/* line 213, ../sass/_systeme_commandes.scss */
.commande-form #datepicker-production .ui-datepicker-title {
color: white;
}
/* line 214, ../sass/_systeme_commandes.scss */
/* line 219, ../sass/_systeme_commandes.scss */
.commande-form #datepicker-production .ui-datepicker-prev:hover,
.commande-form #datepicker-production .ui-datepicker-next:hover {
border: 0px none;
background: none;
}
/* line 220, ../sass/_systeme_commandes.scss */
/* line 225, ../sass/_systeme_commandes.scss */
.commande-form #datepicker-production .ui-helper-clearfix:after {
clear: none;
}
/* line 225, ../sass/_systeme_commandes.scss */
/* line 230, ../sass/_systeme_commandes.scss */
.commande-form #datepicker-production .ui-datepicker-calendar a {
text-decoration: none;
background-color: #F8F1DD;
}
/* line 228, ../sass/_systeme_commandes.scss */
/* line 233, ../sass/_systeme_commandes.scss */
.commande-form #datepicker-production .ui-datepicker-calendar a.ui-state-hover, .commande-form #datepicker-production .ui-datepicker-calendar a.ui-state-active {
background-color: #BB8757;
color: white;
border-color: #cdc3b7;
}
/* line 237, ../sass/_systeme_commandes.scss */
/* line 242, ../sass/_systeme_commandes.scss */
.commande-form .date-commande {
margin-bottom: 53px;
}
/* line 239, ../sass/_systeme_commandes.scss */
/* line 244, ../sass/_systeme_commandes.scss */
.commande-form .date-commande span {
background-color: #BB8757;
color: white;
@@ -753,47 +758,47 @@ h2 {
font-family: "myriadpro-regular";
font-size: 20px;
}
/* line 249, ../sass/_systeme_commandes.scss */
/* line 254, ../sass/_systeme_commandes.scss */
.commande-form #has-commande-en-cours {
margin-top: 15px;
}
/* line 252, ../sass/_systeme_commandes.scss */
/* line 257, ../sass/_systeme_commandes.scss */
.commande-form #has-commande-en-cours a {
color: #a94442;
text-decoration: none;
font-weight: bold;
}
/* line 259, ../sass/_systeme_commandes.scss */
/* line 264, ../sass/_systeme_commandes.scss */
.commande-form .field-commande-id_production {
display: none;
}
/* line 263, ../sass/_systeme_commandes.scss */
/* line 268, ../sass/_systeme_commandes.scss */
.commande-form .field-commande-id_point_vente {
margin-top: 30px;
}
/* line 267, ../sass/_systeme_commandes.scss */
/* line 272, ../sass/_systeme_commandes.scss */
.commande-form .field-commande-id_production {
margin-bottom: 0px;
}
/* line 269, ../sass/_systeme_commandes.scss */
/* line 274, ../sass/_systeme_commandes.scss */
.commande-form .field-commande-id_production label {
margin-bottom: 0px;
}
/* line 273, ../sass/_systeme_commandes.scss */
/* line 278, ../sass/_systeme_commandes.scss */
.commande-form .field-commande-id_production .help-block {
margin-bottom: 0px;
}
/* line 278, ../sass/_systeme_commandes.scss */
/* line 283, ../sass/_systeme_commandes.scss */
.commande-form .field-commande-id_point_vente {
display: none;
}
/* line 282, ../sass/_systeme_commandes.scss */
/* line 287, ../sass/_systeme_commandes.scss */
.commande-form .blocs {
list-style-type: none;
margin: 0px;
padding: 0px;
}
/* line 287, ../sass/_systeme_commandes.scss */
/* line 292, ../sass/_systeme_commandes.scss */
.commande-form .blocs .bloc {
text-decoration: none;
width: 268px;
@@ -808,107 +813,107 @@ h2 {
background-color: white;
border: 1px solid #d8d8d8;
}
/* line 302, ../sass/_systeme_commandes.scss */
/* line 307, ../sass/_systeme_commandes.scss */
.commande-form .blocs .bloc .nom {
font-family: "comfortaalight";
font-size: 20px;
}
/* line 308, ../sass/_systeme_commandes.scss */
/* line 313, ../sass/_systeme_commandes.scss */
.commande-form .blocs .bloc .adresse {
color: gray;
font-size: 13px;
line-height: 16px;
}
/* line 314, ../sass/_systeme_commandes.scss */
/* line 319, ../sass/_systeme_commandes.scss */
.commande-form .blocs .bloc .horaires {
margin-top: 7px;
}
/* line 316, ../sass/_systeme_commandes.scss */
/* line 321, ../sass/_systeme_commandes.scss */
.commande-form .blocs .bloc .horaires .jour {
font-weight: bold;
display: none;
}
/* line 323, ../sass/_systeme_commandes.scss */
/* line 328, ../sass/_systeme_commandes.scss */
.commande-form .blocs .bloc.selected {
border-left: solid 5px #BB8757;
}
/* line 326, ../sass/_systeme_commandes.scss */
/* line 331, ../sass/_systeme_commandes.scss */
.commande-form .blocs .bloc.selected .contenu {
position: relative;
left: -4px;
}
/* line 332, ../sass/_systeme_commandes.scss */
/* line 337, ../sass/_systeme_commandes.scss */
.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 337, ../sass/_systeme_commandes.scss */
/* line 342, ../sass/_systeme_commandes.scss */
.commande-form .blocs .bloc.disabled {
display: none;
}
/* line 344, ../sass/_systeme_commandes.scss */
/* line 349, ../sass/_systeme_commandes.scss */
.commande-form #produits {
margin-top: 15px;
}
/* line 347, ../sass/_systeme_commandes.scss */
/* line 352, ../sass/_systeme_commandes.scss */
.commande-form #produits #label-produits {
display: block;
margin-bottom: 5px;
}
/* line 352, ../sass/_systeme_commandes.scss */
/* line 357, ../sass/_systeme_commandes.scss */
.commande-form #produits .table {
margin-top: 7px;
}
/* line 355, ../sass/_systeme_commandes.scss */
/* line 360, ../sass/_systeme_commandes.scss */
.commande-form #produits .table .illu {
float: left;
height: auto;
width: 70px;
margin-right: 15px;
}
/* line 362, ../sass/_systeme_commandes.scss */
/* line 367, ../sass/_systeme_commandes.scss */
.commande-form #produits .table .photo {
padding: 0px;
width: 120px;
}
/* line 367, ../sass/_systeme_commandes.scss */
/* line 372, ../sass/_systeme_commandes.scss */
.commande-form #produits .table .th-photo, .commande-form #produits .table .td-photo {
width: 120px;
}
/* line 371, ../sass/_systeme_commandes.scss */
/* line 376, ../sass/_systeme_commandes.scss */
.commande-form #produits .table .nom {
font-family: "comfortaalight";
font-weight: bold;
text-transform: uppercase;
font-size: 18px;
}
/* line 378, ../sass/_systeme_commandes.scss */
/* line 383, ../sass/_systeme_commandes.scss */
.commande-form #produits .table .description {
font-style: italic;
}
/* line 382, ../sass/_systeme_commandes.scss */
/* line 387, ../sass/_systeme_commandes.scss */
.commande-form #produits .table .recette {
font-size: 12px;
}
/* line 386, ../sass/_systeme_commandes.scss */
/* line 391, ../sass/_systeme_commandes.scss */
.commande-form #produits .table .input-group {
width: 133px;
}
/* line 388, ../sass/_systeme_commandes.scss */
/* line 393, ../sass/_systeme_commandes.scss */
.commande-form #produits .table .input-group .quantity {
text-align: center;
}
/* line 393, ../sass/_systeme_commandes.scss */
/* line 398, ../sass/_systeme_commandes.scss */
.commande-form #produits .table .colonne-quantite, .commande-form #produits .table .prix-unit, .commande-form #produits .table .total {
width: 150px;
text-align: center;
}
/* line 398, ../sass/_systeme_commandes.scss */
/* line 403, ../sass/_systeme_commandes.scss */
.commande-form #produits .table td#total-commande, .commande-form #produits .table td#total-commande-vrac, .commande-form #produits .table td.total {
text-align: center;
}
/* line 402, ../sass/_systeme_commandes.scss */
/* line 407, ../sass/_systeme_commandes.scss */
.commande-form #produits .table .epuise {
display: none;
text-transform: uppercase;
@@ -917,32 +922,32 @@ h2 {
font-size: 16px;
text-align: center;
}
/* line 411, ../sass/_systeme_commandes.scss */
/* line 416, ../sass/_systeme_commandes.scss */
.commande-form #produits .table .quantite-restante {
font-size: 12px;
margin-top: 8px;
}
/* line 415, ../sass/_systeme_commandes.scss */
/* line 420, ../sass/_systeme_commandes.scss */
.commande-form #produits .table .quantite-restante .nb {
font-weight: bold;
}
/* line 420, ../sass/_systeme_commandes.scss */
/* line 425, ../sass/_systeme_commandes.scss */
.commande-form #produits .table td.produit, .commande-form #produits .table th.produit {
width: 70%;
}
/* line 424, ../sass/_systeme_commandes.scss */
/* line 429, ../sass/_systeme_commandes.scss */
.commande-form #produits .table td.prix-unit, .commande-form #produits .table th.prix-unit {
width: 10%;
}
/* line 428, ../sass/_systeme_commandes.scss */
/* line 433, ../sass/_systeme_commandes.scss */
.commande-form #produits .table td.colonne-quantite, .commande-form #produits .table th.colonne-quantite {
width: 10%;
}
/* line 432, ../sass/_systeme_commandes.scss */
/* line 437, ../sass/_systeme_commandes.scss */
.commande-form #produits .table td.total, .commande-form #produits .table th.total {
width: 10%;
}
/* line 438, ../sass/_systeme_commandes.scss */
/* line 443, ../sass/_systeme_commandes.scss */
.commande-form #bar-fixed {
display: none;
position: fixed;
@@ -962,7 +967,7 @@ h2 {
background-color: #F8F1DD;
text-align: center;
}
/* line 455, ../sass/_systeme_commandes.scss */
/* line 460, ../sass/_systeme_commandes.scss */
.commande-form #bar-fixed.not-fixed {
position: relative;
-moz-box-shadow: none;
@@ -974,7 +979,7 @@ h2 {
border: solid 1px #e0e0e0;
padding-right: 20px;
}
/* line 463, ../sass/_systeme_commandes.scss */
/* line 468, ../sass/_systeme_commandes.scss */
.commande-form #bar-fixed #total-commande-bottom {
background-color: white;
-moz-border-radius: 20px;
@@ -983,37 +988,37 @@ h2 {
padding: 5px 25px;
border: solid 1px #e0e0e0;
}
/* line 470, ../sass/_systeme_commandes.scss */
/* line 475, ../sass/_systeme_commandes.scss */
.commande-form #bar-fixed .valider-commande, .commande-form #bar-fixed .btn-commentaire {
float: left;
}
/* line 474, ../sass/_systeme_commandes.scss */
/* line 479, ../sass/_systeme_commandes.scss */
.commande-form #bar-fixed .btn-commentaire {
margin-right: 10px;
}
/* line 478, ../sass/_systeme_commandes.scss */
/* line 483, ../sass/_systeme_commandes.scss */
.commande-form #bar-fixed .btn-retour, .commande-form #bar-fixed .annuler-commande {
float: left;
margin-right: 5px;
}
/* line 483, ../sass/_systeme_commandes.scss */
/* line 488, ../sass/_systeme_commandes.scss */
.commande-form #bar-fixed .annuler-commande {
color: #b92c28;
background-color: white;
}
/* line 488, ../sass/_systeme_commandes.scss */
/* line 493, ../sass/_systeme_commandes.scss */
.commande-form #bar-fixed #total-commande-bottom {
display: none;
font-weight: bold;
font-family: "comfortaalight";
font-size: 24px;
}
/* line 495, ../sass/_systeme_commandes.scss */
/* line 500, ../sass/_systeme_commandes.scss */
.commande-form #bar-fixed .field-commande-commentaire {
display: none;
}

/* line 503, ../sass/_systeme_commandes.scss */
/* line 508, ../sass/_systeme_commandes.scss */
.ui-datepicker .ui-widget-header {
background: none;
background-color: gray;
@@ -1021,7 +1026,7 @@ h2 {
color: black;
font-weight: normal;
}
/* line 511, ../sass/_systeme_commandes.scss */
/* line 516, ../sass/_systeme_commandes.scss */
.ui-datepicker .ui-datepicker-current-day a,
.ui-datepicker a.ui-state-hover {
background: none;

+ 5
- 0
frontend/web/sass/_systeme_commandes.scss Parādīt failu

@@ -133,6 +133,11 @@ h2 {
float: left ;
}
.field-addetablissementform-code {
width: 70% ;
float: left ;
}
.btn {
float: right ;
position: relative ;

Notiek ielāde…
Atcelt
Saglabāt