- Timestamp:
- 05/27/11 19:09:49 (13 years ago)
- Location:
- branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/ProblemClass
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/ProblemClass/Detail.aspx
r6304 r6317 3 3 <%@ Import Namespace="HLWebOKBAdminPlugin.Models" %> 4 4 <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %> 5 6 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 7 6 Detail 8 7 </asp:Content> 9 8 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 10 9 <% Html.RenderAction("Menu", "Admin"); %> 11 10 </asp:Content> 12 11 <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 <% } %> 12 <% using (Html.BeginForm("SaveChanges", "ProblemClass")) %> 13 <% { %> 14 <h2> 15 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 56 </asp:Content> -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/ProblemClass/Index.aspx
r6310 r6317 3 3 <%@ Import Namespace="HLWebOKBAdminPlugin.Models" %> 4 4 <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %> 5 6 7 5 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 8 6 Index 9 7 </asp:Content> 10 8 <asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent"> 11 9 <% Html.RenderAction("Menu", "Admin"); %> 12 10 </asp:Content> 13 11 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 14 15 <h2>ProblemClass</h2> 16 17 <% long? id = null; %> 18 <div class="hl-menuButtons"> 12 <h2> 13 ProblemClass</h2> 14 <% long? id = null; %> 15 <div class="hl-menuButtons"> 19 16 <%: Html.ActionLink("New ProblemClass", "Detail", new { id }, new { @class = "hl-button-text-plus" })%> 20 </div> 21 22 <table class="hl-dataTable"> 23 <thead> 24 <tr> 25 <th>Name</th> 26 <th>Description</th> 27 <th>Actions</th> 28 </tr> 29 </thead> 30 <tbody> 31 <!--// We get this from the Controller (Index)--> 32 <% foreach (ProblemClass p in ((ProblemClassModel)Model).ProblemClasses) { %> 33 <tr> 34 <td> 35 <%: p.Name%> 36 </td> 37 <td> 38 <%: p.Description %> 39 </td> 40 <td class="hl-iconcell"> 41 <%: Html.ActionLink("detail", "Detail", new { p.Id }, new { @class = "hl-icon-edit" })%> 42 <%: Html.ActionLink("delete", "Delete", new { p.Id }, new { @class = "hl-icon-delete" })%> 43 </td> 44 45 </tr> 46 <% } %> 47 </tbody> 48 </table> 49 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 Actions 29 </th> 30 </tr> 31 </thead> 32 <tbody> 33 <!--// We get this from the Controller (Index)--> 34 <% foreach (ProblemClass p in ((ProblemClassModel)Model).ProblemClasses) { %> 35 <tr> 36 <td> 37 <%: p.Name%> 38 </td> 39 <td> 40 <%: p.Description %> 41 </td> 42 <td class="hl-iconcell"> 43 <%: Html.ActionLink("detail", "Detail", new { p.Id }, new { @class = "hl-icon-edit" })%> 44 <%: Html.ActionLink("delete", "Delete", new { p.Id }, new { @class = "hl-icon-delete" })%> 45 </td> 46 </tr> 47 <% } %> 48 </tbody> 49 </table> 50 50 </asp:Content>
Note: See TracChangeset
for help on using the changeset viewer.