Make ViewModel bool parameters nullable

This commit is contained in:
2020-08-03 08:26:28 -04:00
parent 803717d9e5
commit b1bff76159
6 changed files with 22 additions and 9 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
@using System.Web.Mvc.Html
@using ClientDependency.Core.Mvc
@using LeafWeb.WebCms.Utility
@model LeafDataQuery
@{
Html.RequiresJs("~/scripts/jquery.validate.min.js", 2);
Html.RequiresJs("~/scripts/jquery.validate.unobtrusive.min.js", 2);
Html.RequiresJs("~/scripts/jquery.validate.custom.js", 2);
Html.RequiresJs("~/scripts/jquery.validate.unobtrusive.bootstrap.js", 2);
Html.RequiresJs("~/scripts/LeafDataQuery.js", 3);
var actionName = string.Empty;
var controllerName = string.Empty;
@@ -25,7 +25,7 @@
htmlFormAction = (string)ViewData["htmlFormAction"];
}
}
@using (Html.BeginUmbracoForm(actionName, controllerName, null, new { action = htmlFormAction }))
@using (Html.BeginUmbracoForm(actionName, controllerName, null, new { action = htmlFormAction, id = "leafdataquery" }))
{
<div class="row justify-content-end">
<div class="col text-right pt-2">