06692811
Eugeny Galkovskiy
first commit
|
1
2
3
4
5
6
7
|
<?php
/**
* @var View $this
* @var Feedback $contact
*/
|
a6acb731
alex
Валидация формы
|
8
9
|
#use artbox\core\models\Feedback;
use common\models\Feedback;
|
06692811
Eugeny Galkovskiy
first commit
|
10
11
12
13
14
15
16
17
|
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();
|
5e37688e
Timur Kastemirov
seo for hardcoded...
|
18
|
$seo = \Yii::$app->get('seo');
|
06692811
Eugeny Galkovskiy
first commit
|
19
|
|
90f2a05c
Eugeny Galkovskiy
h titles
|
20
|
$this->params['h1'] = \Yii::t('app', 'menu-contacts');
|
ca22b6dc
Timur Kastemirov
h1 in site pages
|
21
|
$this->params[ 'breadcrumbs' ][] = $this->params['h1'];
|
06692811
Eugeny Galkovskiy
first commit
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
$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">
|
be3cfcb8
Eugeny Galkovskiy
translates
|
40
|
<h2><?= \Yii::t('app', 'contact_title') ?></h2>
|
06692811
Eugeny Galkovskiy
first commit
|
41
42
|
</div>
|
50a02c30
Eugeny Galkovskiy
правки
|
43
|
<!-- <p class="lead">--><?//= \Yii::t('app', 'contact_text1') ?><!--</p>-->
|
c9689046
Eugeny Galkovskiy
contacts photo out
|
44
|
<!-- <div class="contacts_photo"><img src="/img/contacts_photo.jpg" alt=""></div>-->
|
06692811
Eugeny Galkovskiy
first commit
|
45
46
47
48
49
50
51
52
53
54
55
56
57
|
</section>
</div>
</div>
</section>
<section>
<div class="row">
<div class="col-md-4">
<div class="box-simple">
<div class="icon">
<i class="fa fa-map-marker"></i>
</div>
|
be3cfcb8
Eugeny Galkovskiy
translates
|
58
|
<h3><?= \Yii::t('app', 'contact_adr') ?></h3>
|
06692811
Eugeny Galkovskiy
first commit
|
59
60
61
|
<p>
<?php
if (!empty( $settings->street )) {
|
efe446f8
Eugeny Galkovskiy
translates contac...
|
62
|
echo \Yii::t('app', $settings->street);
|
06692811
Eugeny Galkovskiy
first commit
|
63
|
if (!empty( $settings->house )) {
|
efe446f8
Eugeny Galkovskiy
translates contac...
|
64
|
echo " " . \Yii::t('app', $settings->house);
|
06692811
Eugeny Galkovskiy
first commit
|
65
66
67
68
|
}
echo Html::tag('br');
}
if (!empty( $settings->city )) {
|
efe446f8
Eugeny Galkovskiy
translates contac...
|
69
|
echo \Yii::t('app', $settings->city);
|
06692811
Eugeny Galkovskiy
first commit
|
70
|
if (!empty( $settings->country )) {
|
efe446f8
Eugeny Galkovskiy
translates contac...
|
71
|
echo Html::tag('strong', ", " . \Yii::t('app', $settings->country));
|
06692811
Eugeny Galkovskiy
first commit
|
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
}
}
?>
</p>
</div>
<!-- /.box - simple-->
</div>
<div class="col-md-4">
<?php
if (!empty( $settings->phone )) {
?>
<div class="box-simple">
<div class="icon">
<i class="fa fa-phone"></i>
</div>
|
be3cfcb8
Eugeny Galkovskiy
translates
|
89
90
|
<h3> <?= \Yii::t('app', 'Phone') ?> </h3>
<p class="text-muted"> <?= \Yii::t('app', 'ContactPhone') ?></p>
|
06692811
Eugeny Galkovskiy
first commit
|
91
92
93
94
95
|
<p>
<?php
echo Html::a(Html::tag('strong', $settings->phone), 'tel:' . $settings->phone);
?>
</p>
|
58d8192e
Eugeny Galkovskiy
translates
|
96
97
98
99
100
|
<p>
<?php
echo Html::a(Html::tag('strong', $settings->phone2), 'tel:' . $settings->phone2);
?>
</p>
|
06692811
Eugeny Galkovskiy
first commit
|
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
</div>
<!-- /.box - simple-->
<?php
}
?>
</div>
<?php
if (!empty( $settings->email )) {
?>
<div class="col-md-4">
<div class="box-simple">
<div class="icon">
<i class="fa fa-envelope"></i>
</div>
|
be3cfcb8
Eugeny Galkovskiy
translates
|
117
|
<h3> <?= \Yii::t('app', 'ContactEmail') ?> </h3>
|
06f72359
Eugeny Galkovskiy
header size
|
118
|
<ul class="list-style-none" style="padding: 0;">
|
06692811
Eugeny Galkovskiy
first commit
|
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
|
<li>
<?php
echo Html::a(
Html::tag('strong', $settings->email),
'mailto:' . $settings->email
);
?>
</li>
</ul>
</div>
<!-- /.box - simple-->
</div>
<?php
}
?>
</div>
</section>
<section>
<div class="row text-center">
<div class="col-md-12">
<div class="heading">
|
be3cfcb8
Eugeny Galkovskiy
translates
|
144
|
<h2> <?= \Yii::t('app', 'ContactUs') ?> </h2>
|
06692811
Eugeny Galkovskiy
first commit
|
145
146
147
148
149
150
151
152
153
154
155
|
</div>
</div>
<div class="col-md-8 col-md-offset-2">
<?php $form = ActiveForm::begin(
[
'id' => 'contact-form',
'method' => 'POST',
'action' => '/site/feedback',
]
); ?>
|
c15dc821
alex
обновил фильтры
|
156
157
158
|
<?= $form->field($contact, 'topic')
->hiddenInput(['value' => Feedback::SCENARIO_FEEDBACK])
->label(false)?>
|
06692811
Eugeny Galkovskiy
first commit
|
159
160
161
|
<div class="row">
<div class="col-sm-12">
<?= $form->field($contact, 'name')
|
50cf76a2
Eugeny Galkovskiy
translates
|
162
|
->textInput()->label(\Yii::t('app', 'formname')); ?>
|
06692811
Eugeny Galkovskiy
first commit
|
163
164
165
166
|
</div>
<div class="col-sm-6">
<?= $form->field($contact, 'email')
|
94fc00a8
Eugeny Galkovskiy
main page + carou...
|
167
|
->textInput()->label('Email'); ?>
|
06692811
Eugeny Galkovskiy
first commit
|
168
169
170
|
</div>
<div class="col-sm-6">
<?= $form->field($contact, 'phone')
|
50cf76a2
Eugeny Galkovskiy
translates
|
171
|
->textInput()->label(\Yii::t('app', 'formtheme')); ?>
|
06692811
Eugeny Galkovskiy
first commit
|
172
173
174
175
176
177
178
|
</div>
<div class="col-sm-12">
<?= $form->field($contact, 'message')
->textarea(
[
'rows' => 3,
]
|
50cf76a2
Eugeny Galkovskiy
translates
|
179
|
)->label(\Yii::t('app', 'formmess')); ?>
|
06692811
Eugeny Galkovskiy
first commit
|
180
181
182
183
|
</div>
<div class="col-sm-12 text-center">
<?= Html::submitButton(
|
be3cfcb8
Eugeny Galkovskiy
translates
|
184
|
'<i class="fa fa-envelope-o"></i> '.\Yii::t('app', 'LeaveMessage'),
|
06692811
Eugeny Galkovskiy
first commit
|
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
[
'class' => 'btn btn-template-main',
]
) ?>
</div>
</div>
<!-- /.row -->
<?php ActiveForm::end(); ?>
</div>
</div>
<!-- /.row -->
</section>
</div>
<!-- /#contact.container -->
</div>
<!-- /#content -->
|
94fc00a8
Eugeny Galkovskiy
main page + carou...
|
205
206
207
|
<div id="get-it">
<div class="container">
<div class="col-md-8 col-sm-12">
|
be3cfcb8
Eugeny Galkovskiy
translates
|
208
|
<h3><?= \Yii::t('app', 'CALLBACK') ?></h3>
|
94fc00a8
Eugeny Galkovskiy
main page + carou...
|
209
210
|
</div>
<div class="col-md-4 col-sm-12">
|
be3cfcb8
Eugeny Galkovskiy
translates
|
211
|
<a href="#" class="btn btn-template-transparent-primary" data-toggle="modal" data-target="#feedback-modal"><?= \Yii::t('app', 'callme') ?></a>
|
94fc00a8
Eugeny Galkovskiy
main page + carou...
|
212
213
214
|
</div>
</div>
</div>
|
06692811
Eugeny Galkovskiy
first commit
|
215
216
217
|
<div id="map">
</div>
|