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.

37 lines
1.4KB

  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. <h2>Horaires</h2>
  15. <div class="alert alert-info">Laisser vide si le point de vente est fermé</div>
  16. <?= $form->field($model, 'horaires_lundi')->textarea(['rows' => 3]) ?>
  17. <?= $form->field($model, 'horaires_mardi')->textarea(['rows' => 3]) ?>
  18. <?= $form->field($model, 'horaires_mercredi')->textarea(['rows' => 3]) ?>
  19. <?= $form->field($model, 'horaires_jeudi')->textarea(['rows' => 3]) ?>
  20. <?= $form->field($model, 'horaires_vendredi')->textarea(['rows' => 3]) ?>
  21. <?= $form->field($model, 'horaires_samedi')->textarea(['rows' => 3]) ?>
  22. <?= $form->field($model, 'horaires_dimanche')->textarea(['rows' => 3]) ?>
  23. <div class="form-group">
  24. <?= Html::submitButton($model->isNewRecord ? 'Ajouter' : 'Modifier', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
  25. </div>
  26. <?php ActiveForm::end(); ?>
  27. </div>