Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/04/13 16:30:39 (11 years ago)
Author:
fschoepp
Message:

#1888:

  • Added an overview for users to inspect their orders
  • Order Administrators may now suspend or reactivate orders
  • When creating an order, its necessary to enter payment information (paypal, credit card,...) before
  • Also, the billing period and type must be entered during the creation of an order.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Services.Optimization.Web/Views/Order/SaveOrder.cshtml

    r9556 r9582  
    11@model HeuristicLab.Services.Optimization.Web.Models.OrderModel
    2 
     2@using HeuristicLab.Services.Optimization.Web.Helpers
    33<h2>Save your Order</h2>
    44<p>Following items will be purchased</p>
     
    2222<p>Resulting in total costs of @Model.TotalSum() Euro.</p>
    2323
    24  @using(Html.BeginForm("SaveOrder", "Order")) {
    25  <div>
    26  <p>
    27     <input type="submit" value="Save order" />
    28 </p>
    29 </div>
    30  }
     24
     25
     26@if (Model.User.PaymentInformation == null || Model.User.PaymentInformation.Count == 0) {
     27  <h2>You didn't specify any payment information yet. Please click @Html.ActionLink("here", "Payment") to enter the information.</h2>
     28}
     29else {
     30    foreach (var pi in Model.User.PaymentInformation) {
     31         @Html.Label("PaymentInformationId", string.Format("{0} ({1})", pi.PaymentMethod, pi.CardNumber))
     32         @Html.RadioButton("PaymentInformationId", pi.PaymentInformationId);
     33    }
     34    <h2>Or add payment information by clicking @Html.ActionLink("here", "Payment").</h2>
     35   
     36    using (Html.BeginForm("SaveOrder", "Order")) {
     37    <h2>How often would you like to be billed?</h2>
     38
     39    @Html.RadioButtonForEnum(m => m.BillingPeriod)
     40
     41    <h2>Would you like to pay upfront or at the end of the period?</h2>
     42
     43    @Html.RadioButtonForEnum(m => m.BillingType)
     44     
     45     <div>
     46     <p>
     47        <input type="submit" value="Save order" />
     48    </p>
     49    </div>
     50}
     51}
Note: See TracChangeset for help on using the changeset viewer.