Line | |
---|
1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
|
---|
2 |
|
---|
3 | <%@ Import Namespace="HLWebOKBAdminPlugin.Models" %>
|
---|
4 | <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %>
|
---|
5 | <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
---|
6 | Index
|
---|
7 | </asp:Content>
|
---|
8 | <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent">
|
---|
9 | <% Html.RenderAction("Menu", "Admin"); %>
|
---|
10 | </asp:Content>
|
---|
11 | <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
---|
12 | <h2>
|
---|
13 | Platform</h2>
|
---|
14 | <% long? id = null; %>
|
---|
15 | <div class="hl-menuButtons">
|
---|
16 | <%: Html.ActionLink("New Platform", "Detail", new { id }, new { @class = "hl-button-text-plus" })%>
|
---|
17 | </div>
|
---|
18 | <table class="hl-dataTable">
|
---|
19 | <thead>
|
---|
20 | <tr>
|
---|
21 | <th>
|
---|
22 | Name
|
---|
23 | </th>
|
---|
24 | <th>
|
---|
25 | Description
|
---|
26 | </th>
|
---|
27 | <th>
|
---|
28 | Actions
|
---|
29 | </th>
|
---|
30 | </tr>
|
---|
31 | </thead>
|
---|
32 | <tbody>
|
---|
33 | <!--// We get this from the Controller (Index)-->
|
---|
34 | <% foreach (Platform p in ((PlatformModel)Model).Platforms) { %>
|
---|
35 | <tr>
|
---|
36 | <td>
|
---|
37 | <%: p.Name %>
|
---|
38 | </td>
|
---|
39 | <td>
|
---|
40 | <%: p.Description %>
|
---|
41 | </td>
|
---|
42 | <td class="hl-iconcell">
|
---|
43 | <%: Html.ActionLink("detail", "Detail", new { p.Id }, new { @class = "hl-icon-edit" })%>
|
---|
44 | <%: Html.ActionLink("delete", "Delete", new { p.Id }, new { @class = "hl-icon-delete" })%>
|
---|
45 | </td>
|
---|
46 | </tr>
|
---|
47 | <% } %>
|
---|
48 | </tbody>
|
---|
49 | </table>
|
---|
50 | </asp:Content>
|
---|
Note: See
TracBrowser
for help on using the repository browser.