Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 6153 was 6153, checked in by gschwarz, 14 years ago

#1433 Updated Problem Control/View

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<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.ActionLink(p.Name, "Detail",new {p.Id}) %>
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("delete", "Detail",new {p.Id}) %>
34                </td>
35            </tr>
36            <% } %>
37        </table>
38    </div>       
39</asp:Content>
Note: See TracBrowser for help on using the repository browser.