@Html.LabelFor(model => model.Name, new { @class = "control-label" })
@Html.TextBoxFor(model => model.Name, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.Name)
@Html.LabelFor(model => model.Label, new { @class = "control-label" })
@Html.TextBoxFor(model => model.Label, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.Label)
@Html.LabelFor(model => model.Type, new { @class = "control-label" })
@Html.DropDownListFor(model => model.Type, Utils.GetEnumList(typeof(UserDefinedFieldType), true), new { @class = "form-control forselect2" })
@Html.ValidationMessageFor(model => model.Type)
@Html.LabelFor(model => model.DomainId, new { @class = "control-label" })
@Html.DropDownListFor(model => model.DomainId, Utils.GetEnumList(typeof(UserDefinedFieldDomain), true), new { @class = "form-control forselect2" })
@Html.ValidationMessageFor(model => model.DomainId)
@Html.LabelFor(model => model.Status, new { @class = "control-label" })
@Html.CheckBoxFor(model => model.Status, new { @class = "switcher form-control" })
@Html.ValidationMessageFor(model => model.Status)
@Html.LabelFor(model => model.Required, new { @class = "control-label" })
@Html.CheckBoxFor(model => model.Required, new { @class = "switcher form-control" })
@Html.ValidationMessageFor(model => model.Required)
@Html.LabelFor(model => model.DefaultValue, new { @class = "control-label" })
@Html.TextBoxFor(model => model.DefaultValue, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.DefaultValue)
@Html.LabelFor(model => model.Description, new { @class = "control-label" })
@Html.TextAreaFor(model => model.Description, new { @class = "form-control description" })
@Html.ValidationMessageFor(model => model.Description)
@Html.ValidationSummary(false, "The User Defined Field could not be saved due to the following errors:")