|
- <?php
-
- use yii\helpers\Html;
- use yii\grid\GridView;
-
- /* @var $this yii\web\View */
- /* @var $dataProvider yii\data\ActiveDataProvider */
-
- $this->title = 'Utilisateurs';
- $this->params['breadcrumbs'][] = $this->title;
- ?>
- <div class="user-index">
-
- <h1><?= Html::encode($this->title) ?></h1>
-
- <p>
- <?= Html::a('Ajouter un utilisateur', ['create'], ['class' => 'btn btn-success']) ?>
- <?= Html::a('<span class="glyphicon glyphicon-envelope"></span> Liste des emails', ['mail'], ['class' => 'btn btn-default']) ?>
- </p>
-
- <?= GridView::widget([
- 'dataProvider' => $dataProvider,
- 'columns' => [
- //['class' => 'yii\grid\SerialColumn'],
-
- //'id',
- //'username',
- //'auth_key',
- //'password_hash',
- //'password_reset_token',
- // 'email:email',
- // 'status',
- // 'created_at',
- // 'updated_at',
- 'nom',
- 'prenom',
- //'telephone',
- //'email',
- //'confiance',
-
- ['class' => 'yii\grid\ActionColumn'],
- ],
- ]); ?>
-
- </div>
|