Add registration workflow
Update unobtrusive Validation
This commit is contained in:
@@ -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"
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user