Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/ProblemClass/Index.aspx @ 6246

Last change on this file since 6246 was 6246, checked in by wtollsch, 14 years ago

#1433 AlgorithmClass, Algorithm, ProblemClass, Problem create/update appropriate controller/models/views, File upload (Algorithm / Problem)

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