Commit e3c4f32a15e9cd1012951d9bc2431e8ef04ceb80

Authored by Eugeny Galkovskiy
1 parent 0e7e00df

modals

frontend/views/layouts/main.php
... ... @@ -247,6 +247,63 @@ _________________________________________________________ -->
247 247 </div>
248 248 </div>
249 249 </div>
  250 +
  251 + <div class="modal fade" id="question-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true">
  252 + <div class="modal-dialog">
  253 +
  254 + <div class="modal-content">
  255 + <div class="modal-header">
  256 + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
  257 + <h3 class="modal-title" id="Login">"Возникли вопросы?</h3>
  258 + <h4>Мы Вам перезвоним или напишем подробнее обо всем, что Вас интересует</h4>
  259 + </div>
  260 + <div class="modal-body">
  261 +
  262 + <?php $form = ActiveForm::begin(
  263 + [
  264 + 'id' => 'feedback-form',
  265 + 'method' => 'POST',
  266 + 'action' => '/site/feedback',
  267 + ]
  268 + ); ?>
  269 + <div class="col-md-12">
  270 + <div class="col-md-12">
  271 + <?= $form->field($feedback, 'name')
  272 + ->textInput()->Label('Имя и фамилия'); ?>
  273 + </div>
  274 + <div class="col-md-12">
  275 + <?= $form->field($feedback, 'email')
  276 + ->textInput()->Label('Адрес электронной почты'); ?>
  277 + </div>
  278 + </div>
  279 + <div class="col-md-12">
  280 + <div class="col-md-12">
  281 + <?= $form->field($feedback, 'phone')
  282 + ->textInput()->Label('Номер телефона'); ?>
  283 + </div>
  284 + <div class="col-md-12">
  285 + <?= $form->field($feedback, 'promocode')
  286 + ->textInput()->Label('Комментарий'); ?>
  287 + </div>
  288 + </div>
  289 + <div class="col-md-12">
  290 + <p class="text-center">
  291 + <?= Html::submitButton(
  292 + 'Отправить',
  293 + [
  294 + 'class' => 'send-form btn btn-lg btn-template-primary',
  295 + ]
  296 + ) ?>
  297 + </p>
  298 + </div>
  299 + <div style="clear:both;"></div>
  300 +
  301 + <?php ActiveForm::end(); ?>
  302 +
  303 + </div>
  304 + </div>
  305 + </div>
  306 + </div>
250 307  
251 308 <!-- *** FeedBack MODAL END *** -->
252 309  
... ...
frontend/views/site/index.php
... ... @@ -27,6 +27,8 @@ $this-&gt;title = &#39;Time Invest Day&#39;;
27 27 </ul>
28 28 <p><a href="#packages" class="scroll-to btn btn-template-transparent-orange" data-toggle="modal" data-target="#feedback-modal" style="font-size:18px;">Принять участие</a>
29 29 </p>
  30 + <p><a href="#" class="scroll-to btn btn-template-transparent-black" data-toggle="modal" data-target="#question-modal" style="font-size:13px;" data-title="Задать вопрос">Задать вопрос</a>
  31 + </p>
30 32 </div>
31 33 </div>
32 34 </div>
... ... @@ -63,6 +65,7 @@ $this-&gt;title = &#39;Time Invest Day&#39;;
63 65 <p>16 декабря 2017<br/>С 11:00 до 13:00</p>
64 66 </div>
65 67 <a href="#packages" class="scroll-to btn" style="border: 1px solid;margin-top: 45px;" data-toggle="modal" data-target="#feedback-modal">Принять участие</a>
  68 + <a href="#packages" class="scroll-to btn" style="border: 1px solid;margin-top: 10px;" data-toggle="modal" data-target="#question-modal" data-title="Перезвоните нам">Перезвоните мне</a>
66 69 </div>
67 70 </div>
68 71 <div class="col-md-9">
... ...