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 |
|
---|
17 | <% ProblemClass pc = ((ProblemClassModel)Model).ProblemClass; %>
|
---|
18 | <table border="1">
|
---|
19 | <tr>
|
---|
20 | <td>
|
---|
21 | Id:
|
---|
22 | </td>
|
---|
23 | <td>
|
---|
24 | <%: Html.Label(pc.Id.ToString())%>
|
---|
25 | </td>
|
---|
26 | <%: Html.Hidden("ProblemClassId", pc.Id.ToString(), pc.Id.ToString())%>
|
---|
27 | </tr>
|
---|
28 | <tr>
|
---|
29 | <td>
|
---|
30 | Name:
|
---|
31 | </td>
|
---|
32 | <td>
|
---|
33 | <%: Html.TextBox("ProblemClassName", pc.Name, pc.Name)%>
|
---|
34 | </td>
|
---|
35 | </tr>
|
---|
36 | <tr>
|
---|
37 | <td>
|
---|
38 | Description:
|
---|
39 | </td>
|
---|
40 | <td>
|
---|
41 | <%: Html.TextBox("ProblemClassDescription", pc.Description, pc.Description)%>
|
---|
42 | </td>
|
---|
43 | </tr>
|
---|
44 | <tr>
|
---|
45 | <td>
|
---|
46 | Action:
|
---|
47 | </td>
|
---|
48 | <td>
|
---|
49 | <input type="submit" value="save" />
|
---|
50 | </td>
|
---|
51 | </tr>
|
---|
52 | </table>
|
---|
53 | <%: Html.ActionLink("back to Index","Index") %>
|
---|
54 | <% } %>
|
---|
55 | </asp:Content>
|
---|
Note: See
TracBrowser
for help on using the repository browser.