diff --git a/frontend/views/site/contact.php b/frontend/views/site/contact.php index e69de29..8ab1fc9 100755 --- a/frontend/views/site/contact.php +++ b/frontend/views/site/contact.php @@ -0,0 +1,181 @@ +title = \Yii::t('app', 'Контакты'); + $this->params[ 'breadcrumbs' ][] = $this->title; + + $js = <<< JS +window.lat = {$settings->lat}; +window.lon = {$settings->lon}; +JS; + + $this->registerJs($js, View::POS_END); +?> + +
+
+ +
+ +
+
+
+
+ +
+

Адрес

+

+ 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); + } + } + ?> +

+
+ +
+ + +
+ phone )) { + ?> +
+
+ +
+

Телефон

+

+ phone), 'tel:' . $settings->phone); + ?> +

+
+ + +
+ + email )) { + ?> +
+ +
+
+ +
+

Электронная почта

+
    +
  • + email), + 'mailto:' . $settings->email + ); + ?> +
  • +
+
+ +
+ +
+ +
+ +
+ +
+ +
+
+

Форма контактов

+
+
+ +
+ 'contact-form', + 'method' => 'POST', + 'action' => '/site/feedback', + ] + ); ?> +
+
+ field($contact, 'name') + ->textInput(); ?> +
+ +
+ field($contact, 'email') + ->textInput(); ?> +
+
+ field($contact, 'phone') + ->textInput(); ?> +
+
+ field($contact, 'message') + ->textarea( + [ + 'rows' => 3, + ] + ); ?> +
+ +
+ Отправить сообщение', + [ + 'class' => 'btn btn-template-main', + ] + ) ?> + +
+
+ + +
+
+ + +
+ + +
+ +
+ + +
+ +
\ No newline at end of file -- libgit2 0.21.4