@model HeuristicLab.Services.Optimization.Web.Models.OrderModel @using HeuristicLab.Services.Optimization.Web.Helpers

Save your Order

Following items will be purchased

@foreach (var product in Model.ProductQuantities.Keys) { }
Product name:Price per Unit:Quantity:Total Price:
@Model.Products[product].Name @Model.Products[product].Price Euro @Model.ProductQuantities[product] @Model.ProductSum(product) Euro

Resulting in total costs of @Model.TotalSum() Euro.

@if (Model.User.PaymentInformation == null || Model.User.PaymentInformation.Count == 0) {

You didn't specify any payment information yet. Please click @Html.ActionLink("here", "Payment") to enter the information.

} else {

Choose one of your payment options:

foreach (var pi in Model.User.PaymentInformation) {

@Html.Label("PaymentInformationId", string.Format("{0} ({1})", pi.PaymentMethod, pi.CardNumber)) @Html.RadioButton("PaymentInformationId", pi.PaymentInformationId)

}

Or add payment information by clicking @Html.ActionLink("here", "Payment").

} @if (Model.User.ContactInformation == null) {

You didn't specify any contact information yet. Please click @Html.ActionLink("here", "ContactInformation") to enter the information.

} else {

Contact Information

@Html.LabelFor(m => m.User.ContactInformation.FirstName) @Model.User.ContactInformation.FirstName
@Html.LabelFor(m => m.User.ContactInformation.LastName) @Model.User.ContactInformation.LastName
@Html.LabelFor(m => m.User.ContactInformation.FirstName) @Model.User.ContactInformation.FirstName
@Html.LabelFor(m => m.User.ContactInformation.Email) @Model.User.ContactInformation.Email
@Html.LabelFor(m => m.User.ContactInformation.OrganizationName) @Model.User.ContactInformation.OrganizationName
@Html.LabelFor(m => m.User.ContactInformation.Street) @Model.User.ContactInformation.Street
@Html.LabelFor(m => m.User.ContactInformation.PostalCode) @Model.User.ContactInformation.PostalCode
@Html.LabelFor(m => m.User.ContactInformation.City) @Model.User.ContactInformation.City
@Html.LabelFor(m => m.User.ContactInformation.State) @Model.User.ContactInformation.State

Edit contact information by clicking @Html.ActionLink("here", "ContactInformation")

} @if ((Model.User.PaymentInformation != null && Model.User.PaymentInformation.Count != 0) && (Model.User.ContactInformation != null)) { using (Html.BeginForm("SaveOrder", "Order")) {

How often would you like to be billed?

@Html.RadioButtonForEnum(m => m.BillingPeriod)

Would you like to pay upfront or at the end of the period?

@Html.RadioButtonForEnum(m => m.BillingType)

} }