Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 6363 was 6317, checked in by jwolfing, 14 years ago

#1433 code formatted

File size: 1.7 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>
22          Name
23        </th>
24        <th>
25          Description
26        </th>
27        <th>
28          Type
29        </th>
30        <th>
31          Actions
32        </th>
33      </tr>
34    </thead>
35    <tbody>
36      <!--// We get this from the Controller (Index)-->
37      <% foreach (Algorithm p in ((AlgorithmModel)Model).Algorithms) {  %>
38      <tr>
39        <td>
40          <%: p.Name %>
41        </td>
42        <td>
43          <%: p.Description %>
44        </td>
45        <td>
46          <%: p.DataTypeName %>
47        </td>
48        <td class="hl-iconcell">
49          <%: Html.ActionLink("detail", "Detail", new { p.Id }, new { @class = "hl-icon-edit" })%>
50          <%: Html.ActionLink("delete", "Delete", new { p.Id }, new { @class = "hl-icon-delete" })%>
51        </td>
52      </tr>
53      <% } %>
54    </tbody>
55  </table>
56</asp:Content>
Note: See TracBrowser for help on using the repository browser.