|
|
@@ -164,8 +164,8 @@ $this->params['breadcrumbs'][] = $this->title; |
|
|
|
} |
|
|
|
}, |
|
|
|
'delete' => function($url, $model) { |
|
|
|
if($model['actif']) { |
|
|
|
return Html::a('<span class="glyphicon glyphicon-trash"></span> Supprimer', Yii::$app->urlManager->createUrl(['user/delete','id' => $model['user_id']]), [ |
|
|
|
if($model['actif']) { |
|
|
|
return Html::a('<span class="glyphicon glyphicon-trash"></span> Supprimer', Yii::$app->urlManager->createUrl(array_merge(['user/delete','id' => $model['user_id']], Yii::$app->getRequest()->getQueryParams())), [ |
|
|
|
'title' => Yii::t('app', 'Supprimer'), 'class' => 'btn btn-default' |
|
|
|
]); |
|
|
|
} |