Skip to content

Instantly share code, notes, and snippets.

@greenpeas
Created November 2, 2014 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greenpeas/0d1c88191cf9942c6559 to your computer and use it in GitHub Desktop.
Save greenpeas/0d1c88191cf9942c6559 to your computer and use it in GitHub Desktop.
FOS chunk
[[!FormIt?
&hooks=`groupSelector,recaptcha,spam,email,redirect`
&emailTpl=`sentEmailTpl`
&emailSubject=`Сообщение с stav-chip.ru`
&emailTo=`[[+emailAddresses]]`
&emailFrom=`[[+contact_email]]`
&emailSubject = `Сообщение с сайта stav-chip.ru`
&emailFromName = `СтавЧип`
&validate=`contact_name:required,
contact_email:email:required,
contact_message:required:stripTags`
&redirectTo=`16`
]]
[[!+fi.error_message:notempty=`<p>[[!+fi.error_message]]</p>`]]
<form id="contactForm" method="post" action="[[~[[*id]]]]">
<input type="hidden" name="nospam:blank" value="" />
<div>
<label for="addressTo">Получатель </label><br />
<select style="width:250px;" name="service">
<option value="0">Администратор сервиса</option>
</select>
</div>
<div>
<label for="contact_name">Ваше имя </label>
<span class="error">[[!+fi.error.contact_name]]</span><em>(обязательное поле, не менее 2 символов)</em><br />
<input style="width:250px;" id="contact_name" name="contact_name" size="30" minlength="2" value="[[!+fi.contact_name]]" />
</div>
<div>
<label for="contact_email">Ваш E-Mail для обратной связи</label>
<span class="error">[[!+fi.error.contact_email]]</span><em>(обязательное поле)</em><br />
<input style="width:250px;" id="contact_email" name="contact_email" size="30" value="[[!+fi.contact_email]]" />
</div>
<div>
<label for="contact_message">Текст сообщения</label>
<span class="error">[[!+fi.error.contact_message]]</span>
<em>(обязательное поле)</em><br />
<textarea id="contact_message" name="contact_message" cols="70" rows="7">[[!+fi.contact_message]]</textarea>
</div>
<div>
[[!+formit.recaptcha_html]]
[[!+fi.error.recaptcha]]
</div>
<div>
<input name="submit" type="submit" value="Отправить"/>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment