Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Problem/Index.aspx @ 6281

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

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

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