Add registration workflow

Update unobtrusive Validation
This commit is contained in:
2020-01-10 14:52:11 -05:00
parent e0464cb77c
commit 8452a9cce0
34 changed files with 235 additions and 898 deletions
@@ -1,7 +1,9 @@
@using LeafWeb.WebCms.Utility
@using System.Threading
@model DateTime?
@{
Layout = "_FieldLayout.cshtml";
DateTime dt;
if (Model.HasValue)
{
@@ -13,8 +15,14 @@
}
}
<div class="form-group@(Html.ValidationErrorFor(m => m, " error has-error"))">
@Html.LabelFor(m => m)
@Html.TextBoxFor(m => m, new { @class="form-control datepicker", data_provide="datepicker", data_date_language="globalize", data_date=dt, data_date_format=System.Threading.Thread.CurrentThread.CurrentUICulture.DateTimeFormat.ShortDatePattern.Replace("M", "m"), data_date_today_highlight="true", data_date_today_btn="false" })
@Html.ValidationMessageFor(m => m, null, new { @class="form-text" })
</div>
@Html.TextBoxFor(m => m,
new
{
@class="form-control datepicker",
data_provide="datepicker",
data_date_language="globalize",
data_date=dt,
data_date_format=Thread.CurrentThread.CurrentUICulture.DateTimeFormat.ShortDatePattern.Replace("M", "m"),
data_date_today_highlight="true",
data_date_today_btn="false"
})