- <?php
-
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
-
- /* @var $this yii\web\View */
- /* @var $model common\models\User */
- /* @var $form yii\widgets\ActiveForm */
- ?>
-
- <div class="user-form">
-
- <?php $form = ActiveForm::begin(); ?>
-
- <?= $form->field($model, 'nom')->textInput() ?>
- <?= $form->field($model, 'prenom')->textInput() ?>
- <?= $form->field($model, 'telephone')->textInput() ?>
- <?= $form->field($model, 'email')->textInput() ?>
- <?= $form->field($model, 'adresse')->textarea() ?>
-
- <div class="form-group">
- <?= Html::submitButton($model->isNewRecord ? 'Ajouter' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
- </div>
-
- <?php ActiveForm::end(); ?>
- </div>
|