From c0250392b257723a79d61be34c1d1e6f41b26af3 Mon Sep 17 00:00:00 2001 From: Praburaj Date: Tue, 8 Apr 2014 12:48:12 -0700 Subject: [PATCH] Enabling @RenderSection in the Music store code. --- .../Account/ExternalLoginConfirmation.cshtml | 5 ++- src/MusicStore/Views/Account/Login.cshtml | 5 ++- src/MusicStore/Views/Account/Manage.cshtml | 6 ++- src/MusicStore/Views/Account/Register.cshtml | 5 ++- .../Views/Checkout/AddressAndPayment.cshtml | 37 ++++++++++--------- src/MusicStore/Views/Shared/_Layout.cshtml | 13 +++---- .../Views/StoreManager/Create.cshtml | 5 ++- src/MusicStore/Views/StoreManager/Edit.cshtml | 5 ++- 8 files changed, 51 insertions(+), 30 deletions(-) diff --git a/src/MusicStore/Views/Account/ExternalLoginConfirmation.cshtml b/src/MusicStore/Views/Account/ExternalLoginConfirmation.cshtml index c0690507ab..ebdf0b0159 100644 --- a/src/MusicStore/Views/Account/ExternalLoginConfirmation.cshtml +++ b/src/MusicStore/Views/Account/ExternalLoginConfirmation.cshtml @@ -32,5 +32,8 @@ } @section Scripts { - @Scripts.Render("~/bundles/jqueryval") + @*Bug : Script helpers are out of scope for alpha*@ + @*@Scripts.Render("~/bundles/jqueryval")*@ + + } diff --git a/src/MusicStore/Views/Account/Login.cshtml b/src/MusicStore/Views/Account/Login.cshtml index 011e5db254..5100f8b43e 100644 --- a/src/MusicStore/Views/Account/Login.cshtml +++ b/src/MusicStore/Views/Account/Login.cshtml @@ -56,5 +56,8 @@ @section Scripts { - @Scripts.Render("~/bundles/jqueryval") + @*Bug : Script helpers are out of scope for alpha*@ + @*@Scripts.Render("~/bundles/jqueryval")*@ + + } \ No newline at end of file diff --git a/src/MusicStore/Views/Account/Manage.cshtml b/src/MusicStore/Views/Account/Manage.cshtml index 4a1c201902..c69125429f 100644 --- a/src/MusicStore/Views/Account/Manage.cshtml +++ b/src/MusicStore/Views/Account/Manage.cshtml @@ -26,6 +26,10 @@ + @section Scripts { - @Scripts.Render("~/bundles/jqueryval") + @*Bug : Script helpers are out of scope for alpha*@ + @*@Scripts.Render("~/bundles/jqueryval")*@ + + } \ No newline at end of file diff --git a/src/MusicStore/Views/Account/Register.cshtml b/src/MusicStore/Views/Account/Register.cshtml index 1306c612b1..f6c2107aaf 100644 --- a/src/MusicStore/Views/Account/Register.cshtml +++ b/src/MusicStore/Views/Account/Register.cshtml @@ -39,5 +39,8 @@ } @section Scripts { - @Scripts.Render("~/bundles/jqueryval") + @*Bug : Script helpers are out of scope for alpha*@ + @*@Scripts.Render("~/bundles/jqueryval")*@ + + } \ No newline at end of file diff --git a/src/MusicStore/Views/Checkout/AddressAndPayment.cshtml b/src/MusicStore/Views/Checkout/AddressAndPayment.cshtml index abecefc59c..8f51a751d4 100644 --- a/src/MusicStore/Views/Checkout/AddressAndPayment.cshtml +++ b/src/MusicStore/Views/Checkout/AddressAndPayment.cshtml @@ -7,29 +7,32 @@ } @section Scripts { + @*Bug : Script helpers are out of scope for alpha*@ @*@Scripts.Render("~/bundles/jqueryval")*@ + + } @*@using (Html.BeginForm())*@ @*{*@ -

Address And Payment

-
- Shipping Information - - @*@Html.EditorForModel()*@ -
-
- Payment -

We're running a promotion: all music is free with the promo code: "FREE"

+

Address And Payment

+
+ Shipping Information -
- @*@Html.Label("Promo Code")*@ -
-
- @Html.TextBox("PromoCode") -
-
+ @*@Html.EditorForModel()*@ +
+
+ Payment +

We're running a promotion: all music is free with the promo code: "FREE"

- +
+ @*@Html.Label("Promo Code")*@ +
+
+ @Html.TextBox("PromoCode") +
+
+ + @*}*@ \ No newline at end of file diff --git a/src/MusicStore/Views/Shared/_Layout.cshtml b/src/MusicStore/Views/Shared/_Layout.cshtml index 4678bf770f..3ac1f2c311 100644 --- a/src/MusicStore/Views/Shared/_Layout.cshtml +++ b/src/MusicStore/Views/Shared/_Layout.cshtml @@ -28,10 +28,10 @@ @*Bug: HtmlHelpers missing*@ @@ -48,11 +48,10 @@ @*Bug: No script helpers yet*@ @*@Scripts.Render("~/bundles/jquery") - @Scripts.Render("~/bundles/bootstrap") - @RenderSection("scripts", required: false)*@ - + @Scripts.Render("~/bundles/bootstrap")*@ + @RenderSection("scripts", required: false) \ No newline at end of file diff --git a/src/MusicStore/Views/StoreManager/Create.cshtml b/src/MusicStore/Views/StoreManager/Create.cshtml index 33d8324127..27f45c304f 100644 --- a/src/MusicStore/Views/StoreManager/Create.cshtml +++ b/src/MusicStore/Views/StoreManager/Create.cshtml @@ -71,5 +71,8 @@ @section Scripts { - @Scripts.Render("~/bundles/jqueryval") + @*Bug : Script helpers are out of scope for alpha*@ + @*@Scripts.Render("~/bundles/jqueryval")*@ + + } \ No newline at end of file diff --git a/src/MusicStore/Views/StoreManager/Edit.cshtml b/src/MusicStore/Views/StoreManager/Edit.cshtml index 0dee9dce8b..97b5281ba2 100644 --- a/src/MusicStore/Views/StoreManager/Edit.cshtml +++ b/src/MusicStore/Views/StoreManager/Edit.cshtml @@ -71,5 +71,8 @@ @section Scripts { - @Scripts.Render("~/bundles/jqueryval") + @*Bug : Script helpers are out of scope for alpha*@ + @*@Scripts.Render("~/bundles/jqueryval")*@ + + } \ No newline at end of file