|
|
@@ -83,7 +83,7 @@ $this->params['breadcrumbs'][] = $this->title; |
|
|
|
'header' => 'Type', |
|
|
|
'format' => 'raw', |
|
|
|
'value' => function($model) { |
|
|
|
if($model->type == Develoement::TYPE_EVOLUTION) { |
|
|
|
if($model->type == Development::TYPE_EVOLUTION) { |
|
|
|
return '<span class="label label-success">Évolution</span>' ; |
|
|
|
} |
|
|
|
else { |
|
|
@@ -143,17 +143,17 @@ $this->params['breadcrumbs'][] = $this->title; |
|
|
|
'.$currentPriority.' <span class="caret"></span> |
|
|
|
</button> |
|
|
|
<ul class="dropdown-menu"> |
|
|
|
<li><a href="'.Yii::$app->urlManager->createUrl(['development/priority','id_development' => $model->id]).'">Non</a></li> |
|
|
|
<li><a href="'.Yii::$app->urlManager->createUrl(['development/priority','id_development' => $model->id, 'priorite' => DevelopmentPriority::PRIORITY_LOW]).'">Basse</a></li> |
|
|
|
<li><a href="'.Yii::$app->urlManager->createUrl(['development/priority','id_development' => $model->id, 'priorite' => DevelopmentPriority::PRIORITY_NORMAL]).'">Normale</a></li> |
|
|
|
<li><a href="'.Yii::$app->urlManager->createUrl(['development/priority','id_development' => $model->id, 'priorite' => DevelopmentPriority::PRIORITY_HIGH]).'">Haute</a></li> |
|
|
|
<li><a href="'.Yii::$app->urlManager->createUrl(['development/priority','idDevelopment' => $model->id]).'">Non</a></li> |
|
|
|
<li><a href="'.Yii::$app->urlManager->createUrl(['development/priority','idDevelopment' => $model->id, 'priority' => DevelopmentPriority::PRIORITY_LOW]).'">Basse</a></li> |
|
|
|
<li><a href="'.Yii::$app->urlManager->createUrl(['development/priority','idDevelopment' => $model->id, 'priority' => DevelopmentPriority::PRIORITY_NORMAL]).'">Normale</a></li> |
|
|
|
<li><a href="'.Yii::$app->urlManager->createUrl(['development/priority','idDevelopment' => $model->id, 'priority' => DevelopmentPriority::PRIORITY_HIGH]).'">Haute</a></li> |
|
|
|
</ul> |
|
|
|
</div><br />' ; |
|
|
|
|
|
|
|
if(isset($model->developmentPriority) && count($model->developmentPriority)) { |
|
|
|
foreach($model->developmentPriority as $developmentPriority) { |
|
|
|
if($developmentPriority->id_producer != Producer::getId()) |
|
|
|
$html .= '<div class="label label-priorite label-sm label-'.$developmentPriority->getClassCssStyleButton().'">'.Html::encode($developmentPriority->etablissement->name).'</div> ' ; |
|
|
|
$html .= '<div class="label label-priorite label-sm label-'.$developmentPriority->getClassCssStyleButton().'">'.Html::encode($developmentPriority->producer->name).'</div> ' ; |
|
|
|
} |
|
|
|
} |
|
|
|
|