Advertisement
Guest User

Untitled

a guest
Sep 13th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 1.81 KB | None | 0 0
  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.                     <%: Html.Label(p.Name)%>
  36.                 </td>
  37.                 <td>
  38.                     <%: Html.Label(p.Description) %>
  39.                 </td>
  40.                 <td>
  41.                     <%: Html.Label(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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement