Skip to content

Instantly share code, notes, and snippets.

@4e6ka
Created June 27, 2017 15:24
Show Gist options
  • Save 4e6ka/2f39a77d0c25c31859863dbf228e226b to your computer and use it in GitHub Desktop.
Save 4e6ka/2f39a77d0c25c31859863dbf228e226b to your computer and use it in GitHub Desktop.
Модальное окно
<a href="" data-toggle="modal" data-target="#myModalCall" class="callback">Заказать обратный звонок</a>
<div class="modal fade bs-example-modal-sm" id="myModalCall" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">Запрос обратного звонка</h4>
</div>
[[!AjaxForm?
&snippet=`FormIt`
&hooks=`email,spam,FormItSaveForm`
&form=`tpl.AjaxForm`
&submitVar=`zayavka`
&emailTpl=`MyEmailChunk`
&emailTo=``
&emailSubject=`Обратный звонок с сайта`
&validate=`phone:required:minLength=^7^`
&validationErrorMessage=`В форме содержатся ошибки!`
&successMessage=`Сообщение успешно отправлено`
]]
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment