Enabling code to use Html.LabelFor and Html.Label helpers.
This commit is contained in:
parent
5c3d268327
commit
20d0fc9bd8
|
|
@ -17,16 +17,14 @@
|
|||
<hr />
|
||||
@Html.ValidationSummary(true)
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(m => m.UserName, new { @class = "col-md-2 control-label" })*@
|
||||
<label class="col-md-2 control-label">UserName:</label>
|
||||
@Html.LabelFor(m => m.UserName, new { @class = "col-md-2 control-label" })
|
||||
<div class="col-md-10">
|
||||
@Html.TextBoxFor(m => m.UserName, new { @class = "form-control" })
|
||||
@*@Html.ValidationMessageFor(m => m.UserName)*@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" })*@
|
||||
<label class="col-md-2 control-label">Password:</label>
|
||||
@Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" })
|
||||
<div class="col-md-10">
|
||||
@Html.PasswordFor(m => m.Password, new { @class = "form-control" })
|
||||
@*@Html.ValidationMessageFor(m => m.Password)*@
|
||||
|
|
@ -36,8 +34,7 @@
|
|||
<div class="col-md-offset-2 col-md-10">
|
||||
<div class="checkbox">
|
||||
@Html.CheckBoxFor(m => m.RememberMe)
|
||||
@*@Html.LabelFor(m => m.RememberMe)*@
|
||||
<label>Remember Me</label>
|
||||
@Html.LabelFor(m => m.RememberMe)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -52,12 +49,6 @@
|
|||
}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
@*<div class="col-md-4">
|
||||
<section id="socialLoginForm">
|
||||
@Html.Partial("_ExternalLoginsListPartial", new { Action = "ExternalLogin", ReturnUrl = ViewBag.ReturnUrl })
|
||||
</section>
|
||||
</div>*@
|
||||
</div>
|
||||
@section Scripts {
|
||||
@*Bug : Script helpers are out of scope for alpha*@
|
||||
|
|
|
|||
|
|
@ -14,22 +14,19 @@
|
|||
<hr />
|
||||
@Html.ValidationSummary()
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(m => m.UserName, new { @class = "col-md-2 control-label" })*@
|
||||
<label class="col-md-2 control-label">UserName</label>
|
||||
@Html.LabelFor(m => m.UserName, new { @class = "col-md-2 control-label" })
|
||||
<div class="col-md-10">
|
||||
@Html.TextBoxFor(m => m.UserName, new { @class = "form-control" })
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" })*@
|
||||
<label class="col-md-2 control-label">Password</label>
|
||||
@Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" })
|
||||
<div class="col-md-10">
|
||||
@Html.PasswordFor(m => m.Password, new { @class = "form-control" })
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" })*@
|
||||
<label class="col-md-2 control-label">Confirm Password</label>
|
||||
@Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" })
|
||||
<div class="col-md-10">
|
||||
@Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -11,22 +11,19 @@
|
|||
<hr />
|
||||
@*@Html.ValidationSummary()*@
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(m => m.OldPassword, new { @class = "col-md-2 control-label" })*@
|
||||
<label class="col-md-2 control-label">Old Password</label>
|
||||
@Html.LabelFor(m => m.OldPassword, new { @class = "col-md-2 control-label" })
|
||||
<div class="col-md-10">
|
||||
@Html.PasswordFor(m => m.OldPassword, new { @class = "form-control" })
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" })*@
|
||||
<label class="col-md-2 control-label">New Password</label>
|
||||
@Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" })
|
||||
<div class="col-md-10">
|
||||
@Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" })
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" })*@
|
||||
<label class="col-md-2 control-label">Confirm Password</label>
|
||||
@Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" })
|
||||
<div class="col-md-10">
|
||||
@Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
<p>We're running a promotion: all music is free with the promo code: "FREE"</p>
|
||||
|
||||
<div class="editor-label">
|
||||
@*@Html.Label("Promo Code")*@
|
||||
@Html.Label("Promo Code")
|
||||
</div>
|
||||
<div class="editor-field">
|
||||
@Html.TextBox("PromoCode")
|
||||
|
|
|
|||
|
|
@ -19,8 +19,7 @@
|
|||
@Html.ValidationSummary(true)
|
||||
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(model => model.GenreId, "GenreId", new { @class = "control-label col-md-2" })*@
|
||||
<label class="control-label col-md-2">GenreId</label>
|
||||
@Html.LabelFor(model => model.GenreId, "GenreId", new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.DropDownList("GenreId", String.Empty)
|
||||
@*@Html.ValidationMessageFor(model => model.GenreId)*@
|
||||
|
|
@ -28,8 +27,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(model => model.ArtistId, "ArtistId", new { @class = "control-label col-md-2" })*@
|
||||
<label class="control-label col-md-2">ArtistId</label>
|
||||
@Html.LabelFor(model => model.ArtistId, "ArtistId", new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.DropDownList("ArtistId", String.Empty)
|
||||
@*@Html.ValidationMessageFor(model => model.ArtistId)*@
|
||||
|
|
@ -37,8 +35,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(model => model.Title, new { @class = "control-label col-md-2" })*@
|
||||
<label class="control-label col-md-2">Title</label>
|
||||
@Html.LabelFor(model => model.Title, new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@*@Html.EditorFor(model => model.Title)*@
|
||||
@*@Html.ValidationMessageFor(model => model.Title)*@
|
||||
|
|
@ -46,8 +43,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(model => model.Price, new { @class = "control-label col-md-2" })*@
|
||||
<label class="control-label col-md-2">Price</label>
|
||||
@Html.LabelFor(model => model.Price, new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@*@Html.EditorFor(model => model.Price)*@
|
||||
@*@Html.ValidationMessageFor(model => model.Price)*@
|
||||
|
|
@ -55,8 +51,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(model => model.AlbumArtUrl, new { @class = "control-label col-md-2" })*@
|
||||
<label class="control-label col-md-2">AlbumArtUrl</label>
|
||||
@Html.LabelFor(model => model.AlbumArtUrl, new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@*@Html.EditorFor(model => model.AlbumArtUrl)*@
|
||||
@*@Html.ValidationMessageFor(model => model.AlbumArtUrl)*@
|
||||
|
|
|
|||
|
|
@ -19,8 +19,7 @@
|
|||
@Html.HiddenFor(model => model.AlbumId)
|
||||
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(model => model.GenreId, "GenreId", new { @class = "control-label col-md-2" })*@
|
||||
<label class="control-label col-md-2">Genre Id</label>
|
||||
@Html.LabelFor(model => model.GenreId, "GenreId", new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.DropDownList("GenreId", String.Empty)
|
||||
@*@Html.ValidationMessageFor(model => model.GenreId)*@
|
||||
|
|
@ -28,8 +27,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(model => model.ArtistId, "ArtistId", new { @class = "control-label col-md-2" })*@
|
||||
<label class="control-label col-md-2">ArtistId</label>
|
||||
@Html.LabelFor(model => model.ArtistId, "ArtistId", new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.DropDownList("ArtistId", String.Empty)
|
||||
@*@Html.ValidationMessageFor(model => model.ArtistId)*@
|
||||
|
|
@ -37,8 +35,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(model => model.Title, new { @class = "control-label col-md-2" })*@
|
||||
<label class="control-label col-md-2">Title</label>
|
||||
@Html.LabelFor(model => model.Title, new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@*@Html.EditorFor(model => model.Title)*@
|
||||
@*@Html.ValidationMessageFor(model => model.Title)*@
|
||||
|
|
@ -46,8 +43,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(model => model.Price, new { @class = "control-label col-md-2" })*@
|
||||
<label class="control-label col-md-2">Price</label>
|
||||
@Html.LabelFor(model => model.Price, new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@*@Html.EditorFor(model => model.Price)*@
|
||||
@*@Html.ValidationMessageFor(model => model.Price)*@
|
||||
|
|
@ -55,8 +51,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@*@Html.LabelFor(model => model.AlbumArtUrl, new { @class = "control-label col-md-2" })*@
|
||||
<label class="control-label col-md-2">albumArtUrl</label>
|
||||
@Html.LabelFor(model => model.AlbumArtUrl, new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@*@Html.EditorFor(model => model.AlbumArtUrl)*@
|
||||
@*@Html.ValidationMessageFor(model => model.AlbumArtUrl)*@
|
||||
|
|
|
|||
Loading…
Reference in New Issue