Kaynağa Gözat

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).

dev
Guillaume Bourgeois 5 yıl önce
ebeveyn
işleme
43e17eedbf
1 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  1. +6
    -1
      producer/views/order/history.php

+ 6
- 1
producer/views/order/history.php Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet