Fix validation

This commit is contained in:
2016-12-09 10:51:30 -05:00
parent a29de1ecb8
commit 0f9a66074d
18 changed files with 3107 additions and 9 deletions
+11 -2
View File
@@ -1,4 +1,13 @@
@model LeafWeb.WebCms.Models.LeafInputCreate
@using ClientDependency.Core.Mvc
@using LeafWeb.WebCms.Controllers
@model LeafWeb.WebCms.Models.LeafInputCreate
@{
Html.EnableClientValidation();
Html.EnableUnobtrusiveJavaScript();
Html.RequiresJs("~/scripts/jquery.validate.min.js");
Html.RequiresJs("~/scripts/jquery.validate.unobtrusive.min.js");
Html.RequiresJs("~/scripts/jquery.validate.unobtrusive.bootstrap.min.js");
}
<div class="container">
<div class="row">
@@ -43,7 +52,7 @@
<table role="presentation" class="table table-striped panel panel-default"><tbody class="files"></tbody></table>
</form>
@using (Html.BeginUmbracoForm("Submit", "LeafInput", FormMethod.Post))
@using (Html.BeginUmbracoForm<LeafInputController>("Submit", null, FormMethod.Post))
{
@Html.EditorFor(m => m.PhotosynthesisType)
@Html.EditorFor(m => m.Identifier)