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 |
|
---|
6 |
|
---|
7 | <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
---|
8 | Index
|
---|
9 | </asp:Content>
|
---|
10 | <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent">
|
---|
11 | <% Html.RenderAction("Menu", "Admin"); %>
|
---|
12 | </asp:Content>
|
---|
13 | <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
---|
14 |
|
---|
15 | <h2>ProblemClass</h2>
|
---|
16 |
|
---|
17 | <% long? id = null; %>
|
---|
18 | <div class="hl-menuButtons">
|
---|
19 | <%: Html.ActionLink("New ProblemClass", "Detail", new { id }, new { @class = "hl-button-text-plus" })%>
|
---|
20 | </div>
|
---|
21 |
|
---|
22 | <table class="hl-dataTable">
|
---|
23 | <thead>
|
---|
24 | <tr>
|
---|
25 | <th>Name</th>
|
---|
26 | <th>Description</th>
|
---|
27 | <th>Actions</th>
|
---|
28 | </tr>
|
---|
29 | </thead>
|
---|
30 | <tbody>
|
---|
31 | <!--// We get this from the Controller (Index)-->
|
---|
32 | <% foreach (ProblemClass p in ((ProblemClassModel)Model).ProblemClasses) { %>
|
---|
33 | <tr>
|
---|
34 | <td>
|
---|
35 | <%: Html.Label(p.Name)%>
|
---|
36 | </td>
|
---|
37 | <td>
|
---|
38 | <%: Html.Label(p.Description) %>
|
---|
39 | </td>
|
---|
40 | <td class="hl-iconcell">
|
---|
41 | <%: Html.ActionLink("detail", "Detail", new { p.Id }, new { @class = "hl-icon-edit" })%>
|
---|
42 | <%: Html.ActionLink("delete", "Delete", new { p.Id }, new { @class = "hl-icon-delete" })%>
|
---|
43 | </td>
|
---|
44 |
|
---|
45 | </tr>
|
---|
46 | <% } %>
|
---|
47 | </tbody>
|
---|
48 | </table>
|
---|
49 |
|
---|
50 | </asp:Content>
|
---|
Note: See
TracBrowser
for help on using the repository browser.