c0f2e593
Eugeny Galkovskiy
first commit
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php
/**
* @var View $this
* @var Feedback $contact
*/
use artbox\core\models\Feedback;
use common\models\Settings;
use frontend\assets\MapAsset;
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\web\View;
MapAsset::register($this);
$settings = Settings::getInstance();
|
90a014d1
Eugeny Galkovskiy
О нас, контакты
|
18
|
$this->title = \Yii::t('app', 'Контакты');
|
c0f2e593
Eugeny Galkovskiy
first commit
|
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
$this->params[ 'breadcrumbs' ][] = $this->title;
$js = <<< JS
window.lat = {$settings->lat};
window.lon = {$settings->lon};
JS;
$this->registerJs($js, View::POS_END);
?>
<div id="content">
<div class="container" id="contact">
<section>
<div class="row">
<div class="col-md-12">
<section>
<div class="heading">
|
90a014d1
Eugeny Galkovskiy
О нас, контакты
|
38
|
<h2>Контакты</h2>
|
c0f2e593
Eugeny Galkovskiy
first commit
|
39
|
</div>
|
90a014d1
Eugeny Galkovskiy
О нас, контакты
|
40
|
|
c0f2e593
Eugeny Galkovskiy
first commit
|
41
42
43
44
45
46
47
48
|
</section>
</div>
</div>
</section>
<section>
<div class="row">
|
90a014d1
Eugeny Galkovskiy
О нас, контакты
|
49
|
<div class="col-md-6">
|
c0f2e593
Eugeny Galkovskiy
first commit
|
50
51
52
53
|
<div class="box-simple">
<div class="icon">
<i class="fa fa-map-marker"></i>
</div>
|
90a014d1
Eugeny Galkovskiy
О нас, контакты
|
54
|
<h3>Адрес</h3>
|
c0f2e593
Eugeny Galkovskiy
first commit
|
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
<p>
<?php
if (!empty( $settings->street )) {
echo $settings->street;
if (!empty( $settings->house )) {
echo " " . $settings->house;
}
echo Html::tag('br');
}
if (!empty( $settings->city )) {
echo $settings->city;
if (!empty( $settings->country )) {
echo Html::tag('strong', ", " . $settings->country);
}
}
?>
</p>
</div>
<!-- /.box - simple-->
</div>
|
90a014d1
Eugeny Galkovskiy
О нас, контакты
|
77
|
<div class="col-md-6">
|
c0f2e593
Eugeny Galkovskiy
first commit
|
78
79
80
81
82
83
84
|
<?php
if (!empty( $settings->phone )) {
?>
<div class="box-simple">
<div class="icon">
<i class="fa fa-phone"></i>
</div>
|
90a014d1
Eugeny Galkovskiy
О нас, контакты
|
85
|
<h3> Телефон </h3>
|
c0f2e593
Eugeny Galkovskiy
first commit
|
86
87
88
89
90
91
92
93
94
95
96
|
<p>
<?php
echo Html::a(Html::tag('strong', $settings->phone), 'tel:' . $settings->phone);
?>
</p>
</div>
<!-- /.box - simple-->
<?php
}
?>
</div>
|
90a014d1
Eugeny Galkovskiy
О нас, контакты
|
97
|
|
c0f2e593
Eugeny Galkovskiy
first commit
|
98
99
100
101
102
103
104
105
106
107
|
</div>
</section>
<section>
<div class="row text-center">
<div class="col-md-12">
<div class="heading">
|
595ab5a0
Eugeny Galkovskiy
Загрузка изображений
|
108
|
<h2> Напишите нам </h2>
|
c0f2e593
Eugeny Galkovskiy
first commit
|
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
</div>
</div>
<div class="col-md-8 col-md-offset-2">
<?php $form = ActiveForm::begin(
[
'id' => 'contact-form',
'method' => 'POST',
'action' => '/site/feedback',
]
); ?>
<div class="row">
<div class="col-sm-12">
<?= $form->field($contact, 'name')
->textInput(); ?>
</div>
<div class="col-sm-6">
<?= $form->field($contact, 'email')
->textInput(); ?>
</div>
<div class="col-sm-6">
<?= $form->field($contact, 'phone')
->textInput(); ?>
</div>
<div class="col-sm-12">
<?= $form->field($contact, 'message')
->textarea(
[
'rows' => 3,
]
); ?>
</div>
<div class="col-sm-12 text-center">
<?= Html::submitButton(
|
90a014d1
Eugeny Galkovskiy
О нас, контакты
|
145
|
'<i class="fa fa-envelope-o"></i> Отправить',
|
c0f2e593
Eugeny Galkovskiy
first commit
|
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
|
[
'class' => 'btn btn-template-main',
]
) ?>
</div>
</div>
<!-- /.row -->
<?php ActiveForm::end(); ?>
</div>
</div>
<!-- /.row -->
</section>
</div>
<!-- /#contact.container -->
</div>
<!-- /#content -->
<div id="map">
</div>
|