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="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
---|
9 | <h2>
|
---|
10 | Problems</h2>
|
---|
11 | <table>
|
---|
12 | <tr>
|
---|
13 | <td>
|
---|
14 | <ul>
|
---|
15 | <%
|
---|
16 | // We get this from the Controller (Index)
|
---|
17 | foreach (Problem p in ((ProblemModel)Model).Problems)
|
---|
18 | { %>
|
---|
19 | <li>
|
---|
20 | <%: Html.ActionLink(p.Name, "Detail",new {p.Id}) %></li>
|
---|
21 | <% } %>
|
---|
22 | </ul>
|
---|
23 | </td>
|
---|
24 | <td>
|
---|
25 | <!-- maybe we can use here partial views that will be shown ...-->
|
---|
26 | </td>
|
---|
27 | </tr>
|
---|
28 | </table>
|
---|
29 | </asp:Content>
|
---|
Note: See
TracBrowser
for help on using the repository browser.