Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/07/11 13:39:31 (13 years ago)
Author:
gschwarz
Message:

#1433 Updated Problem Control/View

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Problem/Detail.aspx

    r6130 r6142  
    77</asp:Content>
    88<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     9    <% using(Html.BeginForm("SaveChanges", "Problem")) %>
     10    <% { %>
    911    <h2>
    1012        Detail</h2>
     
    1820        Problem p = ((ProblemModel)Model).Problem;
    1921    %>
    20     Id:
    21     <%: Html.Label(p.Id.ToString()) %><br />
    22     Name:
    23     <%: Html.Label(p.Name) %><br />
    24     Description:
    25     <%: Html.Label(p.Description) %><br />
    26     DataTypeName:
    27     <%: Html.Label(p.DataTypeName) %><br />
     22    <table border="1">
     23        <tr>
     24            <td>
     25                Id:
     26            </td>
     27            <td>
     28                <%: Html.Label(p.Id.ToString())%>
     29            </td>
     30            <%: Html.Hidden("ProblemId", p.Id.ToString(), p.Id.ToString())%>
     31        </tr>
     32        <tr>
     33            <td>
     34                Name:
     35            </td>
     36            <td>
     37                <%: Html.TextBox("ProblemName", p.Name, p.Name)%>
     38            </td>
     39        </tr>
     40        <tr>
     41            <td>
     42                Description:
     43            </td>
     44            <td>
     45                <%: Html.TextBox("ProblemDescription", p.Description, p.Description)%>
     46            </td>
     47        </tr>
     48        <tr>
     49            <td>
     50                DataTypeName:
     51            </td>
     52            <td>
     53                <%: Html.TextBox("ProblemDataTypeName", p.DataTypeName, p.DataTypeName)%>
     54            </td>
     55        </tr>
     56        <tr>
     57            <td>
     58                Problem Class:
     59            </td>
     60            <td>
     61                <select name="ProblemClassId">
     62                    <% foreach(ProblemClass pc in ((ProblemModel)Model).ProblemClasses) {  %>
     63                            <option value="<%=pc.Id%>"><%=pc.Name%></option>
     64                    <% } %>
     65                </select>
     66            </td>
     67        </tr>
     68        <tr>
     69            <td>
     70                Plattforms:
     71            </td>
     72            <td>
     73                <select name="PlattformId">
     74                    <% foreach(Platform pc in ((ProblemModel)Model).Plattforms) {  %>
     75                            <option value="<%=pc.Id%>"><%=pc.Name%></option>
     76                    <% } %>
     77                </select>
     78            </td>
     79        </tr>
     80        <tr>
     81            <td>
     82                Action:
     83            </td>
     84            <td>
     85                <input type="submit" value="save" />
     86            </td>
     87        </tr>
     88    </table>   
     89    <%: Html.ActionLink("back to Index","Index") %>
     90    <% } %>
    2891</asp:Content>
Note: See TracChangeset for help on using the changeset viewer.