Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OaaS/HeuristicLab.Services.Optimization.Web/Views/OrderAdmin/Index.cshtml @ 9573

Last change on this file since 9573 was 9556, checked in by fschoepp, 12 years ago

#1888:

  • Added views for the billing component (Register users, Create orders and Activate Orders view)
  • Added a mockup for the billing back-end .
File size: 1.1 KB
Line 
1@model HeuristicLab.Services.Optimization.Web.Models.OrderAdminModel
2
3@{
4    ViewBag.Title = "Order Administration";
5}
6
7<h2>Welcome to the order administartion!</h2>
8
9@if (Model.Orders == null || Model.Orders.Count > 0) {
10
11<table>
12<thead>
13<tr>
14<th>Username:</th><th>Order details:</th><th>Activate order?</th>
15</tr>
16</thead>
17<tbody>
18@foreach (var order in Model.Orders) {
19    <tr>
20    <td>@order.User.Name</td>
21    <td>
22   
23   
24    <table>
25    <thead>
26    <tr>
27    <th>Id:</th>
28    <th>Product name:</th>
29    <th>Product price:</th>
30    <th>Product quantity:</th>
31    </tr>
32    </thead>
33    <tbody>
34    @foreach (var orderLine in order.OrderLines) {
35        <tr>
36        <td>@orderLine.Id</td>
37        <td>@orderLine.Product.Name</td>
38        <td>@orderLine.ProductPrice</td>
39        <td>@orderLine.Quantity</td>
40        </tr>
41    }
42    </tbody>
43    </table>
44    </td>
45    <td>
46    @using (Html.BeginForm("ActivateOrder", "OrderAdmin")) {
47        <input type="submit" value="Activate" />
48    }
49    </td>
50    </tr>
51}
52</tbody>
53</table>
54}
55else {
56    <p>No new orders available!</p>
57}
Note: See TracBrowser for help on using the repository browser.