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.

create.php 606B

8 years ago
8 years ago
8 years ago
12345678910111213141516171819202122
  1. <?php
  2. use yii\helpers\Html;
  3. /* @var $this yii\web\View */
  4. /* @var $model common\models\User */
  5. $this->title = 'Ajouter un client';
  6. $this->params['breadcrumbs'][] = ['label' => 'Clients', 'url' => ['index']];
  7. $this->params['breadcrumbs'][] = 'Ajouter' ;
  8. ?>
  9. <div class="user-create">
  10. <?php if(YII_ENV == 'demo'): ?>
  11. <div class="alert alert-warning">Vous ne pouvez pas ajouter de client dans l'espace Démo.</div>
  12. <?php else: ?>
  13. <h1><?= Html::encode($this->title) ?></h1>
  14. <?= $this->render('_form', [
  15. 'model' => $model,
  16. ]) ?>
  17. <?php endif; ?>
  18. </div>