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 | <%: Html.ActionLink("New ProblemClass", "Detail", new {id}) %>
|
---|
19 | <%: Html.ActionLink("Order ASC", "SortAsc")%>
|
---|
20 | <%: Html.ActionLink("Order DESC", "SortDesc")%>
|
---|
21 |
|
---|
22 | <div style="height:150px; overflow:scroll;">
|
---|
23 | <table>
|
---|
24 | <!--// We get this from the Controller (Index)-->
|
---|
25 | <% foreach (ProblemClass p in ((ProblemClassModel)Model).ProblemClasses) { %>
|
---|
26 | <tr>
|
---|
27 | <td>
|
---|
28 | <%: Html.Label(p.Name)%>
|
---|
29 | </td>
|
---|
30 | <td>
|
---|
31 | <%: Html.Label(p.Description) %>
|
---|
32 | </td>
|
---|
33 | <td>
|
---|
34 | <%: Html.ActionLink("detail", "Detail", new { p.Id })%>
|
---|
35 | </td>
|
---|
36 | <td>
|
---|
37 | <%: Html.ActionLink("delete", "Delete",new {p.Id}) %>
|
---|
38 | </td>
|
---|
39 | </tr>
|
---|
40 | <% } %>
|
---|
41 | </table>
|
---|
42 | </div>
|
---|
43 | </asp:Content>
|
---|
Note: See
TracBrowser
for help on using the repository browser.