Blame view

backend/views/settings/_contact_tab.php 1.76 KB
c237629a   Anastasia   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  <?php
      use artbox\core\widgets\PlaceAutocomplete;
      use common\models\Settings;
      use yii\bootstrap\ActiveForm;
      use yii\web\View;
      
      /**
       * @var View       $this
       * @var Settings   $model
       * @var ActiveForm $form
       */
  
      echo '<div class="wrapp-blocks-edit-page">';
      echo $form->field($model, 'phone')
                ->textInput()
                ->hint(\Yii::t('core', 'Contact phone for website'));
  echo '</div>';
  echo '<div class="wrapp-blocks-edit-page">';
      echo $form->field($model, 'phone2')
                ->textInput()
                ->hint(\Yii::t('core', 'Contact phone for website'));
b53dc2b2   Anastasia   - bug fix
22
      echo "<p>Введите несколько телефонов, разделенных ;</p>";
c237629a   Anastasia   first commit
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
  echo '</div>';
  echo '<div class="wrapp-blocks-edit-page">';
      echo $form->field($model, 'email')
                ->textInput()
                ->hint(\Yii::t('core', 'Contact email for website'));
  echo '</div>';
  echo '<div class="wrapp-blocks-edit-page">';
      echo $form->field($model, 'skype')
                ->textInput();
  echo '</div>';
      echo '<div class="wrapp-blocks-edit-page">';
          echo $form->field($model, 'address')
                    ->widget(
                        PlaceAutocomplete::className(),
                        [
                            'apiKey' => 'AIzaSyCMnH_8SrPve9ffQzxMab3fhkj32H9vjPU',
                            'options' => [
                                'class' => 'form-control'
                            ]
      
                        ]
                    );
      echo '</div>';
      echo '<div class="wrapp-blocks-edit-page">';
      echo $form->field($model, 'lat')
                ->textInput();
      echo '</div>';
      echo '<div class="wrapp-blocks-edit-page">';
      echo $form->field($model, 'lon')
                ->textInput();
  echo '</div>';