Add registration workflow
Update unobtrusive Validation
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
@using LeafWeb.WebCms.Utility
|
||||
@using System.Globalization
|
||||
@model decimal?
|
||||
|
||||
<div class="form-group@(Html.ValidationErrorFor(m => m, " has-error"))">
|
||||
@Html.LabelFor(m => m)
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">€@Html.TextBox(
|
||||
"",
|
||||
Model == null ? "" : String.Format(System.Globalization.CultureInfo.CurrentCulture, "{0:F2}", ViewData.ModelMetadata.Model),
|
||||
ViewBag.ClearTextField == true ? new { @class = "form-control clear-text-field input-block-level" } : new { @class = "form-control input-block-level" })</span>
|
||||
</div>
|
||||
@Html.ValidationMessageFor(m => m, null, new { @class = "form-text" })
|
||||
@{
|
||||
Layout = "_FieldLayout.cshtml";
|
||||
}
|
||||
<div class="input-group">
|
||||
<span class="input-group-append">
|
||||
€@Html.TextBox(
|
||||
"",
|
||||
Model == null
|
||||
? ""
|
||||
: string.Format(CultureInfo.CurrentCulture, "{0:F2}", ViewData.ModelMetadata.Model))
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user