Free cookie consent management tool by TermsFeed Policy Generator

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

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

#1433 Platform views included, Index.aspx -> removed Html.Labels

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