|
- <?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]) ?>
- <?= $form->field($model, 'pain')->checkbox(); ?>
- <?= $form->field($model, 'vrac')->checkbox(); ?>
-
- <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' => 6]) ?>
- <?= $form->field($model, 'horaires_mardi')->textarea(['rows' => 6]) ?>
- <?= $form->field($model, 'horaires_mercredi')->textarea(['rows' => 6]) ?>
- <?= $form->field($model, 'horaires_jeudi')->textarea(['rows' => 6]) ?>
- <?= $form->field($model, 'horaires_vendredi')->textarea(['rows' => 6]) ?>
- <?= $form->field($model, 'horaires_samedi')->textarea(['rows' => 6]) ?>
- <?= $form->field($model, 'horaires_dimanche')->textarea(['rows' => 6]) ?>
-
- <div class="form-group">
- <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
- </div>
-
- <?php ActiveForm::end(); ?>
-
- </div>
|