Created
May 20, 2015 13:24
-
-
Save TimGeyssens/29e0d52d4bc29b202289 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model Umbraco.Forms.Mvc.Models.FieldViewModel | |
<input type="text" name="@Model.Name" id="@Model.Id" class="text" value="@Model.Value" maxlength="500" | |
@{if(Model.Mandatory || Model.Validate){<text>data-val="true"</text>}} | |
@{if (Model.Mandatory) {<text> data-val-required="@Model.RequiredErrorMessage"</text>}} | |
@{if (Model.Validate) {<text> data-val-regex="@Model.InvalidErrorMessage" data-regex="@Html.Raw(Model.Regex)"</text>}} | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment