add editable account on reception/customer-cart, add towel handling

This commit is contained in:
2016-10-21 20:39:02 +02:00
parent 8585286150
commit 90c598f8c6
26 changed files with 649 additions and 37 deletions

View File

@@ -136,4 +136,23 @@ if ( isset( $model->unpaidTickets ) ) {
}
if ( isset($model->customer)){
if ( $model->customer->towel_count > 0 ){
$towelText = "Kiadott törölközők (db):" . $model->customer->towel_count;
$towelClass = "alert alert-danger";
}else{
$towelText = "Nincs kiadott törölköző";
$towelClass = "alert alert-success";
}
echo Html::beginTag("div",['class'=> $towelClass, "role"=>"alert"]);
echo Html::beginTag("strong",[ ]);
echo $towelText;
echo Html::endTag("strong");
echo Html::endTag("div");
}
?>