您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

48 行
2.0KB

  1. <?php
  2. use yii\helpers\Html;
  3. use yii\bootstrap\ActiveForm;
  4. use yii\captcha\Captcha;
  5. /* @var $this yii\web\View */
  6. $this->title = 'Système de réservation de pain';
  7. ?>
  8. <?php
  9. ?>
  10. <div class="item" id="presentation">
  11. <div class="container">
  12. <h2>Réservation de pain</h2>
  13. <p> Suspendisse suscipit ligula ac eleifend ornare. Nunc luctus ipsum et elit condimentum feugiat. Aenean sed ligula ac urna cursus mattis. Sed vestibulum euismod ligula, quis varius velit ultricies vel. Curabitur pretium ornare justo, tempor vehicula purus sodales et. Maecenas et ante laoreet, aliquet nunc sit amet, iaculis arcu. Maecenas ut sem sit amet eros interdum accumsan in quis tellus. Quisque ac molestie ex. Ut rutrum ex in fringilla varius. Nam porta mi at condimentum fermentum. </p>
  14. <div class="clr"></div>
  15. </div>
  16. </div>
  17. <div class="item back1" id="contact">
  18. <div class="container">
  19. <div class="separateur"></div>
  20. <h2><img class="icon" src="<?php echo Yii::$app->urlManager->getBaseUrl() ; ?>/img/icon_53324.png" alt="" /> Contact</h2>
  21. <?php if(Yii::$app->session->getFlash('success')): ?>
  22. <div class="alert alert-success"><div class="icon"></div><?= Yii::$app->session->getFlash('success'); ?></div>
  23. <?php endif; ?>
  24. <?php $form = ActiveForm::begin(['id' => 'contact-form', 'action'=> '#par-telephone', 'layout' => 'horizontal',]); ?>
  25. <?= $form->field($model, 'name') ?>
  26. <?= $form->field($model, 'email') ?>
  27. <?= $form->field($model, 'subject') ?>
  28. <?= $form->field($model, 'body')->textArea(['rows' => 6]) ?>
  29. <?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [
  30. 'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>',
  31. ]) ?>
  32. <div class="form-group">
  33. <?= Html::submitButton('Envoyer', ['class' => 'btn btn-default', 'name' => 'contact-button']) ?>
  34. </div>
  35. <?php ActiveForm::end(); ?>
  36. </div>
  37. </div>