src/main/webapp/WEB-INF/dynamic_fragments/version-form.jsp

changeset 72
0646c14e36fb
parent 60
ed51c5b1f3e5
equal deleted inserted replaced
71:dca186d3911f 72:0646c14e36fb
31 31
32 <c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/> 32 <c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/>
33 <c:set scope="page" var="selectedProject" value="${sessionScope[ProjectsModule.SESSION_ATTR_SELECTED_PROJECT]}"/> 33 <c:set scope="page" var="selectedProject" value="${sessionScope[ProjectsModule.SESSION_ATTR_SELECTED_PROJECT]}"/>
34 34
35 <jsp:useBean id="version" type="de.uapcore.lightpit.entities.Version" scope="request"/> 35 <jsp:useBean id="version" type="de.uapcore.lightpit.entities.Version" scope="request"/>
36 <jsp:useBean id="versionStatusEnum" type="de.uapcore.lightpit.entities.VersionStatus[]" scope="request" /> 36 <jsp:useBean id="versionStatusEnum" type="de.uapcore.lightpit.entities.VersionStatus[]" scope="request"/>
37 37
38 <form action="./${moduleInfo.modulePath}/versions/commit" method="post"> 38 <form action="./${moduleInfo.modulePath}/versions/commit" method="post">
39 <table class="formtable" style="width: 35ch"> 39 <table class="formtable" style="width: 35ch">
40 <colgroup> 40 <colgroup>
41 <col> 41 <col>
42 <col style="width: 100%"> 42 <col style="width: 100%">
43 </colgroup> 43 </colgroup>
44 <tbody> 44 <tbody>
45 <tr> 45 <tr>
46 <th><fmt:message key="thead.version.name"/></th> 46 <th><fmt:message key="thead.version.name"/></th>
47 <td><input name="name" type="text" maxlength="20" required value="${version.name}" /> </td> 47 <td><input name="name" type="text" maxlength="20" required value="${version.name}"/></td>
48 </tr> 48 </tr>
49 <tr> 49 <tr>
50 <th><fmt:message key="thead.version.status"/></th> 50 <th><fmt:message key="thead.version.status"/></th>
51 <td> 51 <td>
52 <select name="status" required> 52 <select name="status" required>
53 <c:forEach var="elem" items="${versionStatusEnum}"> 53 <c:forEach var="elem" items="${versionStatusEnum}">
54 <option <c:if test="${elem eq version.status}">selected</c:if> value="${elem}"><fmt:message key="version.status.${elem}" /> </option> 54 <option
55 <c:if test="${elem eq version.status}">selected</c:if> value="${elem}"><fmt:message
56 key="version.status.${elem}"/></option>
55 </c:forEach> 57 </c:forEach>
56 </select> 58 </select>
57 </td> 59 </td>
58 </tr> 60 </tr>
59 <tr title="<fmt:message key="tooltip.ordinal" />"> 61 <tr title="<fmt:message key="tooltip.ordinal" />">
60 <th><fmt:message key="thead.version.ordinal"/></th> 62 <th><fmt:message key="thead.version.ordinal"/></th>
61 <td> 63 <td>
62 <input name="ordinal" type="number" min="0" value="${version.ordinal}" /> 64 <input name="ordinal" type="number" min="0" value="${version.ordinal}"/>
63 </td> 65 </td>
64 </tr> 66 </tr>
65 </tbody> 67 </tbody>
66 <tfoot> 68 <tfoot>
67 <tr> 69 <tr>
68 <td colspan="2"> 70 <td colspan="2">
69 <input type="hidden" name="id" value="${version.id}" /> 71 <input type="hidden" name="id" value="${version.id}"/>
70 <a href="./${moduleInfo.modulePath}/versions/" class="button"><fmt:message bundle="${lightpit_bundle}" key="button.cancel"/></a> 72 <a href="./${moduleInfo.modulePath}/versions/" class="button"><fmt:message bundle="${lightpit_bundle}"
71 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay" /></button> 73 key="button.cancel"/></a>
74 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button>
72 </td> 75 </td>
73 </tr> 76 </tr>
74 </tfoot> 77 </tfoot>
75 </table> 78 </table>
76 </form> 79 </form>

mercurial