Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

46 rindas
1.1KB

  1. <?php
  2. use yii\helpers\Html;
  3. use yii\grid\GridView;
  4. /* @var $this yii\web\View */
  5. /* @var $dataProvider yii\data\ActiveDataProvider */
  6. $this->title = 'Utilisateurs';
  7. $this->params['breadcrumbs'][] = $this->title;
  8. ?>
  9. <div class="user-index">
  10. <h1><?= Html::encode($this->title) ?></h1>
  11. <p>
  12. <?= Html::a('Ajouter un utilisateur', ['create'], ['class' => 'btn btn-success']) ?>
  13. <?= Html::a('<span class="glyphicon glyphicon-envelope"></span> Liste des emails', ['mail'], ['class' => 'btn btn-default']) ?>
  14. </p>
  15. <?= GridView::widget([
  16. 'dataProvider' => $dataProvider,
  17. 'columns' => [
  18. //['class' => 'yii\grid\SerialColumn'],
  19. //'id',
  20. //'username',
  21. //'auth_key',
  22. //'password_hash',
  23. //'password_reset_token',
  24. // 'email:email',
  25. // 'status',
  26. // 'created_at',
  27. // 'updated_at',
  28. 'nom',
  29. 'prenom',
  30. //'telephone',
  31. //'email',
  32. //'confiance',
  33. ['class' => 'yii\grid\ActionColumn'],
  34. ],
  35. ]); ?>
  36. </div>