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

changeset 99
a369fb1b3aa2
parent 86
0a658e53177c
child 109
2e0669e814ff
--- a/src/main/webapp/WEB-INF/jsp/version-form.jsp	Sat Aug 22 18:34:36 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/version-form.jsp	Sun Aug 23 15:10:49 2020 +0200
@@ -41,21 +41,8 @@
         <tr>
             <th><fmt:message key="version.project"/></th>
             <td>
-                <c:choose>
-                    <c:when test="${not empty version.project}">
-                        <c:out value="${version.project.name}" />
-                        <input type="hidden" name="pid" value="${version.project.id}" />
-                    </c:when>
-                    <c:otherwise>
-                        <select name="pid" required>
-                            <c:forEach var="project" items="${viewmodel.projects}">
-                                <option value="${project.id}">
-                                    <c:out value="${project.name}" />
-                                </option>
-                            </c:forEach>
-                        </select>
-                    </c:otherwise>
-                </c:choose>
+                <c:out value="${version.project.name}" />
+                <input type="hidden" name="pid" value="${version.project.id}" />
             </td>
         </tr>
         <tr>
@@ -85,15 +72,7 @@
         <tr>
             <td colspan="2">
                 <input type="hidden" name="id" value="${version.id}"/>
-                <c:choose>
-                    <c:when test="${not empty version.project}">
-                        <c:set var="cancelUrl">./projects/view?pid=${version.project.id}</c:set>
-                    </c:when>
-                    <c:otherwise>
-                        <c:set var="cancelUrl">./projects/</c:set>
-                    </c:otherwise>
-                </c:choose>
-                <a href="${cancelUrl}" class="button">
+                <a href="./projects/view?pid=${version.project.id}" class="button">
                     <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/>
                 </a>
                 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button>

mercurial