Affichage d'un message moins restrictif pour signaler que le compte crédit pain de l'utilisateur est vide.prodstable
'attribute' => 'id_user', | 'attribute' => 'id_user', | ||||
'format' => 'raw', | 'format' => 'raw', | ||||
'value' => function($model) { | 'value' => function($model) { | ||||
//print_r($model) ; | |||||
if(strlen($model->username)) | if(strlen($model->username)) | ||||
{ | { | ||||
return Html::encode($model->username) ; | return Html::encode($model->username) ; |
<?= Html::hiddenInput('str_montant_credit_pain', number_format($credit,2).' €', ['id' => 'str-montant-credit-pain']) ?> | <?= Html::hiddenInput('str_montant_credit_pain', number_format($credit,2).' €', ['id' => 'str-montant-credit-pain']) ?> | ||||
<?php else: ?> | <?php else: ?> | ||||
<div id="info-credit-vide"> | <div id="info-credit-vide"> | ||||
Votre compte Crédit Pain est vide.<br /> | |||||
Rendez-vous dans votre boulangerie<br/> | |||||
pour le recharger. <a class="info-credit-pain" href="<?= Yii::$app->urlManager->createUrl(['site/creditpain']); ?>" data-toggle="tooltip" data-placement="bottom" title="En savoir plus sur le Crédit Pain"><span class="glyphicon glyphicon-info-sign"></span></a> | |||||
Votre compte Crédit Pain est vide <a class="info-credit-pain" href="<?= Yii::$app->urlManager->createUrl(['site/creditpain']); ?>" data-toggle="tooltip" data-placement="bottom" title="En savoir plus sur le Crédit Pain"><span class="glyphicon glyphicon-info-sign"></span></a> | |||||
</div> | </div> | ||||
<?php endif; ?> | <?php endif; ?> | ||||
</div> | </div> |
} | } | ||||
/* line 574, ../sass/_systeme_commandes.scss */ | /* line 574, ../sass/_systeme_commandes.scss */ | ||||
.commande-form #bar-fixed #bloc-valider-commande button { | .commande-form #bar-fixed #bloc-valider-commande button { | ||||
width: 300px; | |||||
width: 340px; | |||||
margin-right: 10px; | margin-right: 10px; | ||||
} | } | ||||
/* line 580, ../sass/_systeme_commandes.scss */ | /* line 580, ../sass/_systeme_commandes.scss */ | ||||
.commande-form #bar-fixed #checkbox-credit-pain { | .commande-form #bar-fixed #checkbox-credit-pain { | ||||
float: right; | float: right; | ||||
width: 300px; | |||||
width: 340px; | |||||
padding: 3px 11px; | padding: 3px 11px; | ||||
background-color: white; | background-color: white; | ||||
border: solid 1px #ccc; | border: solid 1px #ccc; |
margin-top: 20px ; | margin-top: 20px ; | ||||
button { | button { | ||||
width: 300px ; | |||||
width: 340px ; | |||||
margin-right: 10px ; | margin-right: 10px ; | ||||
} | } | ||||
} | } | ||||
#checkbox-credit-pain { | #checkbox-credit-pain { | ||||
float: right ; | float: right ; | ||||
width: 300px ; | |||||
width: 340px ; | |||||
padding: 3px 11px ; | padding: 3px 11px ; | ||||
background-color: white ; | background-color: white ; | ||||
border: solid 1px #ccc ; | border: solid 1px #ccc ; |