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,23 +1,22 @@
@using LeafWeb.WebCms.Utility
@model TimeSpan?
@{
TimeSpan ts;
if (Model == null)
{
ts = TimeSpan.FromMinutes(10);
}
else
{
ts = Model.Value;
}
Layout = "_FieldLayout.cshtml";
var ts = Model ?? TimeSpan.FromMinutes(10);
}
<div class="form-group@(Html.ValidationErrorFor(m => m, " has-error"))">
@Html.LabelFor(m => m)
<div class="controls">
@Html.TextBoxFor(m => m, "hh\\:mm", new { @Value = ts.ToString("hh\\:mm"), @class="form-control timepicker", data_provide="timepicker", data_minute_step="5", data_show_meridian="false", data_disable_focus="true", data_template = "dropdown", data_default_time="value" })
@Html.ValidationMessageFor(m => m, null, new { @class="form-text" })
</div>
</div>
@Html.TextBoxFor(m => m,
"hh\\:mm",
new
{
@Value = ts.ToString("hh\\:mm"),
@class="form-control timepicker",
data_provide="timepicker",
data_minute_step="5",
data_show_meridian="false",
data_disable_focus="true",
data_template = "dropdown",
data_default_time="value"
})