React to aspnet/Razor#196.
- Razor `TagHelper`s now special case `enum` values so you don't need to provide the entire `enum` prefix.
This commit is contained in:
parent
a69a7a6940
commit
33b37d6554
|
|
@ -21,7 +21,7 @@
|
||||||
@* - should helper remove the <div/> if list isn't generated? *@
|
@* - should helper remove the <div/> if list isn't generated? *@
|
||||||
@* - (Html.ValidationSummary returns empty string despite non-empty message parameter) *@
|
@* - (Html.ValidationSummary returns empty string despite non-empty message parameter) *@
|
||||||
@* Acceptable values are: "None", "ModelOnly" and "All" *@
|
@* Acceptable values are: "None", "ModelOnly" and "All" *@
|
||||||
<div asp-validation-summary="ValidationSummary.All" style="color:blue" id="validation_day" class="form-group">
|
<div asp-validation-summary="@ValidationSummary.All" style="color:blue" id="validation_day" class="form-group">
|
||||||
<span style="color:red">This is my message</span>
|
<span style="color:red">This is my message</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<form>
|
<form>
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
<div asp-validation-summary="ValidationSummary.All"></div>
|
<div asp-validation-summary="All"></div>
|
||||||
<input type="hidden" asp-for="Id" />
|
<input type="hidden" asp-for="Id" />
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
<select asp-for="Product" asp-items="(IEnumerable<SelectListItem>)ViewBag.Items"></select>
|
<select asp-for="Product" asp-items="(IEnumerable<SelectListItem>)ViewBag.Items"></select>
|
||||||
<span asp-validation-for="Product"></span>
|
<span asp-validation-for="Product"></span>
|
||||||
</div>
|
</div>
|
||||||
<div asp-validation-summary="ValidationSummary.All" class="warehouse"></div>
|
<div asp-validation-summary="All" class="warehouse"></div>
|
||||||
<input type="submit" />
|
<input type="submit" />
|
||||||
}
|
}
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@
|
||||||
@Html.EditorFor(model => model.Customer.Gender)
|
@Html.EditorFor(model => model.Customer.Gender)
|
||||||
<span asp-validation-for="Customer.Gender"></span>
|
<span asp-validation-for="Customer.Gender"></span>
|
||||||
</div>
|
</div>
|
||||||
<div asp-validation-summary="ValidationSummary.All" class="order"></div>
|
<div asp-validation-summary="All" class="order"></div>
|
||||||
<input type="hidden" asp-for="Customer.Key" />
|
<input type="hidden" asp-for="Customer.Key" />
|
||||||
<input type="submit" />
|
<input type="submit" />
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,8 @@
|
||||||
<input asp-for="Gender" type="radio" value="Female" /> Female
|
<input asp-for="Gender" type="radio" value="Female" /> Female
|
||||||
<span asp-validation-for="Gender"></span>
|
<span asp-validation-for="Gender"></span>
|
||||||
</div>
|
</div>
|
||||||
<div asp-validation-summary="ValidationSummary.All" class="order"></div>
|
<div asp-validation-summary="All" class="order"></div>
|
||||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="order"></div>
|
<div asp-validation-summary="ModelOnly" class="order"></div>
|
||||||
<input type="submit"/>
|
<input type="submit"/>
|
||||||
</form>
|
</form>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
<h4>Employee</h4>
|
<h4>Employee</h4>
|
||||||
<hr />
|
<hr />
|
||||||
<div asp-validation-summary="ValidationSummary.All" class="text-danger">
|
<div asp-validation-summary="All" class="text-danger">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Age" class="control-label col-md-2"></label>
|
<label asp-for="Age" class="control-label col-md-2"></label>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue