Created
April 7, 2016 13:44
-
-
Save mikhaildegtuarev/e4de98116ba20fc952c0b86eef5de7b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[!FormIt? | |
&hooks=`spam,email,redirect` | |
&emailTo=`[email protected]` | |
&emailFrom=`[[++mail_smtp_user]]` | |
&emailTpl=`ContactTpl` | |
&redirectTo=`1` | |
&validate=`name:required, telefon:required, subject:required` | |
]] | |
<div class="form-obrat"> | |
<div class="form-obrat-head"></div> | |
<form action="" method="post"> | |
<div class="form-obrat-input"> | |
<input name="name" id="name" size="40" minlength="2" value="" placeholder="Ваше имя" /> | |
<span>[[+fi.error.name]]</span> | |
</div> | |
<div class="form-obrat-input"> | |
<input name="email" id="email" size="40" value="" placeholder="Ваш e-mail" /> | |
<span>[[+fi.error.email]]</span> | |
</div> | |
<div class="form-obrat-input"> | |
<input name="telefon" id="telefon" size="40" minlength="2" value="" placeholder="Ваш телефон" /> | |
<span>[[+fi.error.telefon]]</span> | |
</div> | |
<div class="form-obrat-input"> | |
<textarea name="subject" id="subject" cols="30" rows="5" placeholder="Ваше сообщение"></textarea> | |
<span>[[+fi.error.subject]]</span> | |
</div> | |
<div class="form-obrat-submit"> | |
<input name="submit" type="submit" value="ОТПРАВИТЬ"/> | |
[[!If? | |
&subject=`[[+fi.success]]` | |
&operator=`EQ` | |
&operand=`1` | |
&then=`<p class="success">Ваш запрос отправлен.</p>` | |
]] | |
[[!+fi.error_message]] | |
</div> | |
</form> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment