|
|
@@ -128,6 +128,10 @@ GridView::widget([ |
|
|
|
$html .= 'En préparation' ; |
|
|
|
} |
|
|
|
elseif($c->getState() == Order::STATE_OPEN) { |
|
|
|
|
|
|
|
|
|
|
|
$link_subscription = ($c->id_subscription) ? '<li><a href="'.Yii::$app->urlManagerProducer->createUrl(['subscription/form','id'=>$c->id_subscription]).'"><span class="glyphicon glyphicon-repeat"></span> Modifier mon abonnement</a></li>' : '' ; |
|
|
|
|
|
|
|
$html .= '<div class="btn-group"> |
|
|
|
<a href="'.Yii::$app->urlManager->createUrl(['order/order','id'=>$c->id]).'" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span> Modifier</a> |
|
|
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> |
|
|
@@ -135,7 +139,8 @@ GridView::widget([ |
|
|
|
<span class="sr-only">Toggle Dropdown</span> |
|
|
|
</button> |
|
|
|
<ul class="dropdown-menu" role="menu"> |
|
|
|
<li><a href="'.Yii::$app->urlManager->createUrl(['order/cancel','id'=>$c->id]).'"><span class="glyphicon glyphicon-trash"></span> Annuler la commande</a></li> |
|
|
|
'.$link_subscription.' |
|
|
|
<li><a href="'.Yii::$app->urlManager->createUrl(['order/cancel','id'=>$c->id]).'"><span class="glyphicon glyphicon-trash"></span> Annuler la commande</a></li> |
|
|
|
</ul> |
|
|
|
</div>' ; |
|
|
|
} |