45 </colgroup> |
45 </colgroup> |
46 <tbody> |
46 <tbody> |
47 <tr> |
47 <tr> |
48 <th><fmt:message key="version.project"/></th> |
48 <th><fmt:message key="version.project"/></th> |
49 <td> |
49 <td> |
50 <select name="pid" required> |
50 <c:if test="${version.project.id ge 0}"> |
51 <c:forEach var="project" items="${projects}"> |
51 <c:out value="${version.project.name}" /> |
52 <option value="${project.id}" <c:if test="${project eq version.project}">selected</c:if> > |
52 <input type="hidden" name="pid" value="${version.project.id}" /> |
53 <c:out value="${project.name}" /> |
53 </c:if> |
54 </option> |
54 <c:if test="${empty version.project or version.project.id lt 0}"> |
55 </c:forEach> |
55 <select name="pid" required> |
56 </select> |
56 <c:forEach var="project" items="${projects}"> |
|
57 <option value="${project.id}"> |
|
58 <c:out value="${project.name}" /> |
|
59 </option> |
|
60 </c:forEach> |
|
61 </select> |
|
62 </c:if> |
57 </td> |
63 </td> |
58 </tr> |
64 </tr> |
59 <tr> |
65 <tr> |
60 <th><fmt:message key="version.name"/></th> |
66 <th><fmt:message key="version.name"/></th> |
61 <td><input name="name" type="text" maxlength="20" required value="<c:out value="${version.name}"/>" /></td> |
67 <td><input name="name" type="text" maxlength="20" required value="<c:out value="${version.name}"/>" /></td> |