29 lines
1.0 KiB
Plaintext
29 lines
1.0 KiB
Plaintext
@using ClientDependency.Core.Mvc
|
|
@using hbehr.recaptcha
|
|
@using LeafWeb.WebCms.Controllers
|
|
@model ContactForm
|
|
@{
|
|
Html.RequiresJs("~/scripts/jquery.validate.min.js", 2);
|
|
Html.RequiresJs("~/scripts/jquery.validate.unobtrusive.min.js", 2);
|
|
Html.RequiresJs("~/scripts/jquery.validate.unobtrusive.bootstrap.js", 2);
|
|
Html.RequiresJs("~/scripts/jquery.validate.custom.js", 2);
|
|
}
|
|
<script type="text/javascript">function submit() { $('form').submit(); }</script>
|
|
|
|
<div class="container mt-4">
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-6 ">
|
|
@Html.Partial("_ValidationSummary")
|
|
|
|
@using (Html.BeginUmbracoForm<ContactController>("Submit"))
|
|
{
|
|
@Html.EditorFor(m => m.Name)
|
|
@Html.EditorFor(m => m.Email)
|
|
@Html.EditorFor(m => m.Message)
|
|
@ReCaptcha.GetInvisibleCaptcha("submit", "Send")
|
|
@* Restyling this button does not appear to allow it to continue operating *@
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|