Last change
on this file since 10879 was
9582,
checked in by fschoepp, 12 years ago
|
#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 size:
1.2 KB
|
Line | |
---|
1 | @model HeuristicLab.Services.Optimization.Web.Models.OverviewModel
|
---|
2 |
|
---|
3 | @{
|
---|
4 | ViewBag.Title = "Overview";
|
---|
5 | }
|
---|
6 |
|
---|
7 | @if (Model.Orders == null || Model.Orders.Count == 0) {
|
---|
8 | <h2>You don't have any orders yet. Click @Html.ActionLink("here", "Index") to create one.</h2>
|
---|
9 | }
|
---|
10 | else {
|
---|
11 |
|
---|
12 | <h2>Your orders:</h2>
|
---|
13 |
|
---|
14 | <table>
|
---|
15 | <thead>
|
---|
16 | <tr>
|
---|
17 | <th>Order Id:</th><th>Order State:</th><th>Active Since</th><th>Active Until</th><th>Billing Period</th><th>Billing Type</th>
|
---|
18 | </tr>
|
---|
19 | </thead>
|
---|
20 | <tbody>
|
---|
21 | @foreach (var order in Model.Orders) {
|
---|
22 | <tr>
|
---|
23 | <td>@order.OrderId</td>
|
---|
24 | <td>@order.State</td>
|
---|
25 | <td>@order.ActiveSince</td>
|
---|
26 | <td>@order.ActiveUntil</td>
|
---|
27 | <td>@order.BillingPeriod</td>
|
---|
28 | <td>@order.BillingType</td>
|
---|
29 | <td>
|
---|
30 | <table>
|
---|
31 | <thead>
|
---|
32 | <tr>
|
---|
33 | <th>Product</th><th>Total Price</th><th>Quantity</th>
|
---|
34 | </tr>
|
---|
35 | </thead>
|
---|
36 | <tbody>
|
---|
37 | @foreach (var line in order.OrderLines) {
|
---|
38 | <tr>
|
---|
39 | <td>@line.Product.Name</td>
|
---|
40 | <td>@line.ProductPrice</td>
|
---|
41 | <td>@line.Quantity</td>
|
---|
42 | </tr>
|
---|
43 | }
|
---|
44 | </tbody>
|
---|
45 | </table>
|
---|
46 | </td>
|
---|
47 | </tr>
|
---|
48 | }
|
---|
49 | </tbody>
|
---|
50 | </table>
|
---|
51 |
|
---|
52 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.