Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

39 lines
1.5KB

  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\ActiveForm;
  4. /* @var $this yii\web\View */
  5. /* @var $model backend\models\PointVente */
  6. /* @var $form yii\widgets\ActiveForm */
  7. ?>
  8. <div class="point-vente-form">
  9. <?php $form = ActiveForm::begin(); ?>
  10. <?php //$form->field($model, 'point_fabrication')->checkbox() ?>
  11. <?= $form->field($model, 'nom')->textInput(['maxlength' => 255]) ?>
  12. <?= $form->field($model, 'localite')->textInput(['maxlength' => 255]) ?>
  13. <?= $form->field($model, 'adresse')->textarea(['rows' => 6]) ?>
  14. <?= $form->field($model, 'pain')->checkbox(); ?>
  15. <?= $form->field($model, 'vrac')->checkbox(); ?>
  16. <h2>Horaires</h2>
  17. <div class="alert alert-info">Laisser vide si le point de vente est fermé</div>
  18. <?= $form->field($model, 'horaires_lundi')->textarea(['rows' => 6]) ?>
  19. <?= $form->field($model, 'horaires_mardi')->textarea(['rows' => 6]) ?>
  20. <?= $form->field($model, 'horaires_mercredi')->textarea(['rows' => 6]) ?>
  21. <?= $form->field($model, 'horaires_jeudi')->textarea(['rows' => 6]) ?>
  22. <?= $form->field($model, 'horaires_vendredi')->textarea(['rows' => 6]) ?>
  23. <?= $form->field($model, 'horaires_samedi')->textarea(['rows' => 6]) ?>
  24. <?= $form->field($model, 'horaires_dimanche')->textarea(['rows' => 6]) ?>
  25. <div class="form-group">
  26. <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  27. </div>
  28. <?php ActiveForm::end(); ?>
  29. </div>