Commit 3390a0df66b4dc99fd68d76b24e3a9c8a02b28b3

Authored by Eugeny Galkovskiy
1 parent b5b67f02

modals

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