You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

view.php 1.1KB

8 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\DetailView;
  4. /* @var $this yii\web\View */
  5. /* @var $model common\models\User */
  6. $this->title = $model->id;
  7. $this->params['breadcrumbs'][] = ['label' => 'Users', 'url' => ['index']];
  8. $this->params['breadcrumbs'][] = $this->title;
  9. ?>
  10. <div class="user-view">
  11. <h1><?= Html::encode($this->title) ?></h1>
  12. <p>
  13. <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
  14. <?= Html::a('Delete', ['delete', 'id' => $model->id], [
  15. 'class' => 'btn btn-danger',
  16. 'data' => [
  17. 'confirm' => 'Are you sure you want to delete this item?',
  18. 'method' => 'post',
  19. ],
  20. ]) ?>
  21. </p>
  22. <?= DetailView::widget([
  23. 'model' => $model,
  24. 'attributes' => [
  25. 'id',
  26. 'username',
  27. 'auth_key',
  28. 'password_hash',
  29. 'password_reset_token',
  30. 'email:email',
  31. 'status',
  32. 'created_at',
  33. 'updated_at',
  34. 'nom',
  35. 'prenom',
  36. 'telephone',
  37. 'confiance',
  38. ],
  39. ]) ?>
  40. </div>