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

changeset 83
24a3596b8f98
parent 82
4ec7f2600c83
child 84
5407d4ea0611
equal deleted inserted replaced
82:4ec7f2600c83 83:24a3596b8f98
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>

mercurial