Bläddra i källkod

Mes commandes : ajout d'un lien au niveau des commandes permettant aux utilisateurs de modifier leur abonnement (si la commande est rattachée à un abonnement).

refactoring
Guillaume Bourgeois 5 år sedan
förälder
incheckning
43e17eedbf
1 ändrade filer med 6 tillägg och 1 borttagningar
  1. +6
    -1
      producer/views/order/history.php

+ 6
- 1
producer/views/order/history.php Visa fil

@@ -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>' ;
}

Laddar…
Avbryt
Spara