PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/MvcMusicStore/Views/Checkout/AddressAndPayment.cshtml

#
Razor | 31 lines | 24 code | 7 blank | 0 comment | 0 complexity | 08954aaf891f391b08061ff345c6c731 MD5 | raw file
 1@model MvcMusicStore.Models.Order
 2
 3@{
 4    ViewBag.Title = "Address And Payment";
 5}
 6
 7<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
 8<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
 9
10@using (Html.BeginForm()) {
11    
12    <h2>Address And Payment</h2>
13    <fieldset>
14        <legend>Shipping Information</legend>
15
16        @Html.EditorForModel()
17    </fieldset>
18    <fieldset>
19        <legend>Payment</legend>
20        <p>We're running a promotion: all music is free with the promo code: "FREE"</p>
21
22        <div class="editor-label">
23            @Html.Label("Promo Code")
24        </div>
25        <div class="editor-field">
26            @Html.TextBox("PromoCode")
27        </div>
28    </fieldset>
29    
30    <input type="submit" value="Submit Order" />
31}