Skip to content

Instantly share code, notes, and snippets.

@pomahtuk
Last active December 21, 2015 18:18
Show Gist options
  • Save pomahtuk/6345901 to your computer and use it in GitHub Desktop.
Save pomahtuk/6345901 to your computer and use it in GitHub Desktop.
[[!FormIt?
&hooks=`spam,email,redirect`
&emailTpl=`MyEmailChunk`
&emailTo=`pman89@yandex.ru`
&redirectTo=`1`
&validate=`name:required,
mail:email:required,
phone:required,
text:required:stripTags`
]]
<div class="section_header contacts">
<h3>Контакты</h3>
</div>
<b>Адрес:</b><br>
Лен обл. г. Выборг, Промзона Лазаревка<br>
Тел: +7 (921) 97-100-47,+7 (921) 76-766-47 <br>
e-mail: atlant.vbg@gmail.com <br>
</p>
<b>Режим работы:</b><br>
Понедельник – пятница 08:00 - 19:00 <br>
Суббота 09:00 – 16:00 <br>
Воскресенье - выходной <br>
<script type="text/javascript" charset="utf-8" src="//api-maps.yandex.ru/services/constructor/1.0/js/?sid=nNWTtGSA3PgMOYWjJOzblbs6ftv3lFu2&width=920&height=350"></script>
<br>
<p>
Так же вы можете отправить нам сообщение через форму обратной связи.
</p>
<div class="contact">
[[!+fi.error_message:notempty=`<p>[[!+fi.error_message]]</p>`]]
<span class="error">[[!+fi.error.name]]</span>
<span class="error">[[!+fi.error.mail]]</span>
<span class="error">[[!+fi.error.phone]]</span>
<span class="error">[[!+fi.error.text]]</span>
<form action="[[~[[*id]]]]" method="post">
<input type="hidden" name="nospam:blank" value="" />
<div class="row form">
<div class="span6 box">
<input class="name" name="name" type="text" placeholder="Имя" value="[[!+fi.name]]" >
<input class="mail" name="mail" type="text" placeholder="Email" value="[[!+fi.mail]]" >
<input class="phone" name="phone" type="text" placeholder="Телефон" value="[[!+fi.phone]]" >
</div>
<div class="span6 box box_r">
<textarea name="text" placeholder="Текст сообщения...">[[!+fi.text]]</textarea>
</div>
</div>
<div class="row submit">
<div class="span5 box">
</div>
<div class="span3 right">
<input type="submit" value="Отправить сообщение">
</div>
</div>
</form>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment