39 </colgroup> |
39 </colgroup> |
40 <tbody> |
40 <tbody> |
41 <tr> |
41 <tr> |
42 <th><fmt:message key="version.project"/></th> |
42 <th><fmt:message key="version.project"/></th> |
43 <td> |
43 <td> |
44 <c:choose> |
44 <c:out value="${version.project.name}" /> |
45 <c:when test="${not empty version.project}"> |
45 <input type="hidden" name="pid" value="${version.project.id}" /> |
46 <c:out value="${version.project.name}" /> |
|
47 <input type="hidden" name="pid" value="${version.project.id}" /> |
|
48 </c:when> |
|
49 <c:otherwise> |
|
50 <select name="pid" required> |
|
51 <c:forEach var="project" items="${viewmodel.projects}"> |
|
52 <option value="${project.id}"> |
|
53 <c:out value="${project.name}" /> |
|
54 </option> |
|
55 </c:forEach> |
|
56 </select> |
|
57 </c:otherwise> |
|
58 </c:choose> |
|
59 </td> |
46 </td> |
60 </tr> |
47 </tr> |
61 <tr> |
48 <tr> |
62 <th><fmt:message key="version.name"/></th> |
49 <th><fmt:message key="version.name"/></th> |
63 <td><input name="name" type="text" maxlength="20" required value="<c:out value="${version.name}"/>" /></td> |
50 <td><input name="name" type="text" maxlength="20" required value="<c:out value="${version.name}"/>" /></td> |
83 </tbody> |
70 </tbody> |
84 <tfoot> |
71 <tfoot> |
85 <tr> |
72 <tr> |
86 <td colspan="2"> |
73 <td colspan="2"> |
87 <input type="hidden" name="id" value="${version.id}"/> |
74 <input type="hidden" name="id" value="${version.id}"/> |
88 <c:choose> |
75 <a href="./projects/view?pid=${version.project.id}" class="button"> |
89 <c:when test="${not empty version.project}"> |
|
90 <c:set var="cancelUrl">./projects/view?pid=${version.project.id}</c:set> |
|
91 </c:when> |
|
92 <c:otherwise> |
|
93 <c:set var="cancelUrl">./projects/</c:set> |
|
94 </c:otherwise> |
|
95 </c:choose> |
|
96 <a href="${cancelUrl}" class="button"> |
|
97 <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/> |
76 <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/> |
98 </a> |
77 </a> |
99 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button> |
78 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button> |
100 </td> |
79 </td> |
101 </tr> |
80 </tr> |