|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
'delete' => function($url, $model) { |
|
|
'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' |
|
|
'title' => Yii::t('app', 'Supprimer'), 'class' => 'btn btn-default' |
|
|
]); |
|
|
]); |
|
|
} |
|
|
} |