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

changeset 128
947d0f6a6a83
parent 109
2e0669e814ff
child 131
67df332e3146
equal deleted inserted replaced
127:6105ee2cceaf 128:947d0f6a6a83
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
30 30
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.VersionEditView" scope="request" /> 31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.VersionEditView" scope="request" />
32 <c:set var="version" scope="page" value="${viewmodel.version}"/> 32 <c:set var="version" scope="page" value="${viewmodel.version}"/>
33 <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/>
33 34
34 <form action="./projects/versions/commit" method="post"> 35 <form action="./projects/versions/commit" method="post">
35 <table class="formtable" style="width: 35ch"> 36 <table class="formtable" style="width: 35ch">
36 <colgroup> 37 <colgroup>
37 <col> 38 <col>
39 </colgroup> 40 </colgroup>
40 <tbody> 41 <tbody>
41 <tr> 42 <tr>
42 <th><fmt:message key="version.project"/></th> 43 <th><fmt:message key="version.project"/></th>
43 <td> 44 <td>
44 <c:out value="${version.project.name}" /> 45 <c:out value="${project.name}" />
45 <input type="hidden" name="pid" value="${version.project.id}" /> 46 <input type="hidden" name="pid" value="${project.id}" />
46 </td> 47 </td>
47 </tr> 48 </tr>
48 <tr> 49 <tr>
49 <th><fmt:message key="version.name"/></th> 50 <th><fmt:message key="version.name"/></th>
50 <td><input name="name" type="text" maxlength="20" required value="<c:out value="${version.name}"/>" /></td> 51 <td><input name="name" type="text" maxlength="20" required value="<c:out value="${version.name}"/>" /></td>
70 </tbody> 71 </tbody>
71 <tfoot> 72 <tfoot>
72 <tr> 73 <tr>
73 <td colspan="2"> 74 <td colspan="2">
74 <input type="hidden" name="id" value="${version.id}"/> 75 <input type="hidden" name="id" value="${version.id}"/>
75 <a href="./projects/versions?pid=${version.project.id}" class="button"> 76 <a href="./projects/versions?pid=${project.id}" class="button">
76 <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/> 77 <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/>
77 </a> 78 </a>
78 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button> 79 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button>
79 </td> 80 </td>
80 </tr> 81 </tr>

mercurial