Преглед на файлове

Merge branch 'dev'

prodstable
keun преди 6 години
родител
ревизия
7d77f694e4
променени са 2 файла, в които са добавени 6 реда и са изтрити 3 реда
  1. +4
    -1
      backend/controllers/UserController.php
  2. +2
    -2
      backend/views/user/index.php

+ 4
- 1
backend/controllers/UserController.php Целия файл

throw new \yii\web\NotFoundHttpException('L\'enregistrement UserEtablissement est introuvable', 404) ; throw new \yii\web\NotFoundHttpException('L\'enregistrement UserEtablissement est introuvable', 404) ;
} }
$this->redirect(['index']);
$params = Yii::$app->getRequest()->getQueryParams() ;
unset($params['id']) ;
$this->redirect(array_merge(['index'],$params));
} }


public function actionMail($id_point_vente = 0) { public function actionMail($id_point_vente = 0) {

+ 2
- 2
backend/views/user/index.php Целия файл

} }
}, },
'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'
]); ]);
} }

Loading…
Отказ
Запис