Free cookie consent management tool by TermsFeed Policy Generator

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

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

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

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