Created
January 24, 2016 01:17
-
-
Save dgwaldo/8ae8a46109e2c173402c to your computer and use it in GitHub Desktop.
Editing MVC Collections Client Side
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 Domain.Models.Theme.Asset | |
<div class="form-group"> | |
@Html.LabelFor(model => model.Url, htmlAttributes: new { @class = "control-label col-md-2" }) | |
<div class="col-md-10"> | |
@Html.EditorFor(model => model.Url, new { htmlAttributes = new { @class = "form-control", @id = "${index}" } }) | |
@Html.ValidationMessageFor(model => model.Url, "", new { @class = "text-danger" }) | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment