Commit 89ac7d13027fca70e3791af1ef71f351feff6e8f

Authored by Timur Kastemirov
2 parents 4eac4a7d 80abd19b

Merge remote-tracking branch 'origin/master'

frontend/views/layouts/main.php
@@ -264,6 +264,64 @@ _________________________________________________________ --> @@ -264,6 +264,64 @@ _________________________________________________________ -->
264 </div> 264 </div>
265 </div> 265 </div>
266 266
  267 + <div class="modal fade" id="writeus-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true">
  268 + <div class="modal-dialog">
  269 +
  270 + <div class="modal-content">
  271 + <div class="modal-header">
  272 + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
  273 + <h4 class="text-center" id="Login">Оставьте свои контакты, чтобы гарантированно зарезервировать место в зале</h4>
  274 + </div>
  275 + <div class="modal-body">
  276 +
  277 + <?php $form = ActiveForm::begin(
  278 + [
  279 + 'id' => 'feedback-form',
  280 + 'method' => 'POST',
  281 + 'action' => '/site/feedback',
  282 + ]
  283 + );
  284 + $feedback = new Feedback(['scenario' => Feedback::SCENARIO_DEFAULT]);
  285 + ?>
  286 + <div class="col-md-12">
  287 + <div class="col-md-12">
  288 + <?= $form->field($feedback, 'name')
  289 + ->textInput()->Label('Имя и фамилия'); ?>
  290 + </div>
  291 + <div class="col-md-12">
  292 + <?= $form->field($feedback, 'email')
  293 + ->textInput()->Label('Адрес электронной почты'); ?>
  294 + </div>
  295 + </div>
  296 + <div class="col-md-12">
  297 + <div class="col-md-12">
  298 + <?= $form->field($feedback, 'phone')
  299 + ->textInput()->Label('Номер телефона'); ?>
  300 + </div>
  301 + <div class="col-md-12">
  302 + <?= $form->field($feedback, 'message')
  303 + ->textInput()->Label('Комментарий'); ?>
  304 + </div>
  305 + </div>
  306 + <div class="col-md-12">
  307 + <p class="text-center">
  308 + <?= Html::submitButton(
  309 + 'Отправить',
  310 + [
  311 + 'class' => 'send-form btn btn-lg btn-template-primary',
  312 + ]
  313 + ) ?>
  314 + </p>
  315 + </div>
  316 + <div style="clear:both;"></div>
  317 +
  318 + <?php ActiveForm::end(); ?>
  319 +
  320 + </div>
  321 + </div>
  322 + </div>
  323 + </div>
  324 +
267 <div class="modal fade" id="question-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true"> 325 <div class="modal fade" id="question-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true">
268 <div class="modal-dialog"> 326 <div class="modal-dialog">
269 327
frontend/views/site/index.php
@@ -28,7 +28,7 @@ $this-&gt;title = &#39;Time Invest Day&#39;; @@ -28,7 +28,7 @@ $this-&gt;title = &#39;Time Invest Day&#39;;
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> 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 </p> 29 </p>
30 <p style="margin: 0;margin-top: -15px;margin-bottom: 10px;">или</p> 30 <p style="margin: 0;margin-top: -15px;margin-bottom: 10px;">или</p>
31 - <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><a href="#" class="scroll-to btn btn-template-transparent-black" data-toggle="modal" data-target="#writeus-modal" style="font-size:13px;" data-title="Задать вопрос">Предварительная регистрация</a>
32 </p> 32 </p>
33 </div> 33 </div>
34 </div> 34 </div>