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 |
|
---|
6 | <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
---|
7 | Detail
|
---|
8 | </asp:Content>
|
---|
9 | <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent">
|
---|
10 | <% Html.RenderAction("Menu", "Admin"); %>
|
---|
11 | </asp:Content>
|
---|
12 | <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
---|
13 | <% using(Html.BeginForm("SaveChanges", "ProblemClass")) %>
|
---|
14 | <% { %>
|
---|
15 | <h2>Detail</h2>
|
---|
16 | <div class="hl-menuButtons">
|
---|
17 | <%: Html.ActionLink("Back to Index", "Index", null, new { @class = "hl-button-text-back" })%>
|
---|
18 | </div>
|
---|
19 | <% ProblemClass pc = ((ProblemClassModel)Model).ProblemClass; %>
|
---|
20 | <table class="hl-table">
|
---|
21 | <tr>
|
---|
22 | <th>
|
---|
23 | Id:
|
---|
24 | </th>
|
---|
25 | <td>
|
---|
26 | <%: Html.Label(pc.Id.ToString())%>
|
---|
27 | </td>
|
---|
28 | <%: Html.Hidden("ProblemClassId", pc.Id.ToString(), pc.Id.ToString())%>
|
---|
29 | </tr>
|
---|
30 | <tr>
|
---|
31 | <th>
|
---|
32 | Name:
|
---|
33 | </th>
|
---|
34 | <td>
|
---|
35 | <%: Html.TextBox("ProblemClassName", pc.Name, pc.Name)%>
|
---|
36 | </td>
|
---|
37 | </tr>
|
---|
38 | <tr>
|
---|
39 | <th>
|
---|
40 | Description:
|
---|
41 | </th>
|
---|
42 | <td>
|
---|
43 | <%: Html.TextBox("ProblemClassDescription", pc.Description, pc.Description)%>
|
---|
44 | </td>
|
---|
45 | </tr>
|
---|
46 | <tr>
|
---|
47 | <th>
|
---|
48 | Action:
|
---|
49 | </th>
|
---|
50 | <td>
|
---|
51 | <input type="submit" value="save" />
|
---|
52 | </td>
|
---|
53 | </tr>
|
---|
54 | </table>
|
---|
55 | <% } %>
|
---|
56 | </asp:Content>
|
---|
Note: See
TracBrowser
for help on using the repository browser.