- Timestamp:
- 05/27/11 19:09:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Problem/Index.aspx
r6310 r6317 4 4 <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %> 5 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 6 6 Index 7 7 </asp:Content> 8 8 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 9 9 <% Html.RenderAction("Menu", "Admin"); %> 10 10 </asp:Content> 11 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"> 12 <h2> 13 Problems</h2> 14 <% long? id = null; %> 15 <div class="hl-menuButtons"> 18 16 <%: 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 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 (Problem p in ((ProblemModel)Model).Problems) { %> 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> 52 56 </asp:Content>
Note: See TracChangeset
for help on using the changeset viewer.