|
- <?php
-
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
-
- /* @var $this yii\web\View */
- /* @var $model backend\models\PointVente */
- /* @var $form yii\widgets\ActiveForm */
- ?>
-
- <div class="point-vente-form">
-
- <?php $form = ActiveForm::begin(); ?>
-
- <?php //$form->field($model, 'point_fabrication')->checkbox() ?>
- <?= $form->field($model, 'nom')->textInput(['maxlength' => 255]) ?>
- <?= $form->field($model, 'localite')->textInput(['maxlength' => 255]) ?>
- <?= $form->field($model, 'adresse')->textarea(['rows' => 6]) ?>
-
- <h2>Horaires</h2>
- <div class="alert alert-info">Laisser vide si le point de vente est fermé</div>
- <?= $form->field($model, 'horaires_lundi')->textarea(['rows' => 3]) ?>
- <?= $form->field($model, 'horaires_mardi')->textarea(['rows' => 3]) ?>
- <?= $form->field($model, 'horaires_mercredi')->textarea(['rows' => 3]) ?>
- <?= $form->field($model, 'horaires_jeudi')->textarea(['rows' => 3]) ?>
- <?= $form->field($model, 'horaires_vendredi')->textarea(['rows' => 3]) ?>
- <?= $form->field($model, 'horaires_samedi')->textarea(['rows' => 3]) ?>
- <?= $form->field($model, 'horaires_dimanche')->textarea(['rows' => 3]) ?>
-
- <div class="form-group">
- <?= Html::submitButton($model->isNewRecord ? 'Ajouter' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
- </div>
-
- <?php ActiveForm::end(); ?>
-
- </div>
|