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.

30 lines
909B

  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\ActiveForm;
  4. /* @var $this yii\web\View */
  5. /* @var $model common\models\User */
  6. /* @var $form yii\widgets\ActiveForm */
  7. ?>
  8. <div class="user-form">
  9. <?php $form = ActiveForm::begin(); ?>
  10. <p>Si cette option n'est pas cochée, l'utilisateur ne pourra commander que 3 pains à la fois.</p>
  11. <?= $form->field($model, 'confiance')->checkbox() ?>
  12. <?= $form->field($model, 'nom')->textInput() ?>
  13. <?= $form->field($model, 'prenom')->textInput() ?>
  14. <?= $form->field($model, 'telephone')->textInput() ?>
  15. <?= $form->field($model, 'email')->textInput() ?>
  16. <?= $form->field($model, 'status')->textInput() ?>
  17. <div class="form-group">
  18. <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  19. </div>
  20. <?php ActiveForm::end(); ?>
  21. </div>