Blame view

frontend/views/modal/my_callback_modal_window.php 2.35 KB
50e38c82   Administrator   big commti
1
  <?php
7f87d6f9   Yarik   Modals.
2
3
4
5
6
7
8
9
10
      
      use common\models\Feedback;
      use yii\bootstrap\ActiveForm;
      use yii\helpers\Html;
      use yii\widgets\MaskedInput;
      
      $model = new Feedback([
          'scenario' => Feedback::SCENARIO_FEEDBACK,
      ]);
50e38c82   Administrator   big commti
11
  ?>
eaf6988b   Administrator   big commti
12
13
14
  <div class="modal fade" id="myCallback" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
      <div class="modal-dialog auth" role="document">
          <div class="modal-content">
eaf6988b   Administrator   big commti
15
16
              <div class="modal-header">
                  <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
b905419d   Administrator   big commti
17
                  <span class="modal-title" id="myModalLabel">Заказ обратного звонка</span>
eaf6988b   Administrator   big commti
18
              </div>
eaf6988b   Administrator   big commti
19
              <div class="modal-body">
7f87d6f9   Yarik   Modals.
20
21
22
23
24
                  <?php
                  $form = ActiveForm::begin([
                      'id' => 'feedback-form',
                  ]);
                  ?>
eaf6988b   Administrator   big commti
25
                      <p>Оставьте номер вашего телефона и наш оператор перезвонит вам в течении часа.</p>
7f87d6f9   Yarik   Modals.
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
                      <?php
                          echo $form->field($model, 'name', [
                              'template' => "<div class='col-xs-3'>{label}</div><div class='col-xs-9'>{input}</div><div class='clearfix'></div>{hint}\n{error}",
                          ])->textInput([
                              'class' => 'consultation_name'
                          ]);
                          echo $form->field($model, 'phone', [
                              'template' => "<div class='col-xs-3'>{label}</div><div class='col-xs-9'>{input}</div><div class='clearfix'></div>{hint}\n{error}",
                          ])->widget(MaskedInput::className(), [
                              'mask' => '+38(999)999-99-99',
                              'options' => [
                                  'class' => 'consultation_phone',
                              ],
                          ]);
                      ?>
eaf6988b   Administrator   big commti
41
                      <div class="example">примеры: +38 (044) 33-992-33 </div>
50e38c82   Administrator   big commti
42
                      <?= Html::submitButton("Жду звонка", ['class' => 'btn btn-default', 'name' => 'login-button']) ?>
eaf6988b   Administrator   big commti
43
                      <div class="clearfix"></div>
7f87d6f9   Yarik   Modals.
44
45
46
                      <?php
                      $form::end();
                      ?>
eaf6988b   Administrator   big commti
47
                  <br />
eaf6988b   Administrator   big commti
48
              </div>
eaf6988b   Administrator   big commti
49
50
51
          </div>
      </div>
  </div>