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

changeset 75
33b6843fdf8a
parent 74
91d1fc2a3a14
child 78
bb4c52bf3439
equal deleted inserted replaced
74:91d1fc2a3a14 75:33b6843fdf8a
41 <col style="width: 75ch"> 41 <col style="width: 75ch">
42 </colgroup> 42 </colgroup>
43 <tbody> 43 <tbody>
44 <tr> 44 <tr>
45 <th><fmt:message key="thead.name"/></th> 45 <th><fmt:message key="thead.name"/></th>
46 <td><input name="name" type="text" maxlength="20" required value="${project.name}"/></td> 46 <td><input name="name" type="text" maxlength="20" required value="<c:out value="${project.name}"/>" /></td>
47 </tr> 47 </tr>
48 <tr> 48 <tr>
49 <th class="vtop"><fmt:message key="thead.description"/></th> 49 <th class="vtop"><fmt:message key="thead.description"/></th>
50 <td><input type="text" name="description" maxlength="200" value="${project.description}"/></td> 50 <td><input type="text" name="description" maxlength="200" value="<c:out value="${project.description}"/>" /></td>
51 </tr> 51 </tr>
52 <tr> 52 <tr>
53 <th><fmt:message key="thead.repoUrl"/></th> 53 <th><fmt:message key="thead.repoUrl"/></th>
54 <td><input name="repoUrl" type="url" maxlength="50" value="${project.repoUrl}"/></td> 54 <td><input name="repoUrl" type="url" maxlength="50" value="<c:out value="${project.repoUrl}"/>" /></td>
55 </tr> 55 </tr>
56 <tr> 56 <tr>
57 <th><fmt:message key="thead.owner"/></th> 57 <th><fmt:message key="thead.owner"/></th>
58 <td> 58 <td>
59 <select name="owner"> 59 <select name="owner">
60 <option value="-1"><fmt:message key="placeholder.null-owner"/></option> 60 <option value="-1"><fmt:message key="placeholder.null-owner"/></option>
61 <c:forEach var="user" items="${users}"> 61 <c:forEach var="user" items="${users}">
62 <option 62 <option
63 <c:if test="${not empty project.owner and user.id eq project.owner.id}">selected</c:if> 63 <c:if test="${not empty project.owner and user eq project.owner}">selected</c:if>
64 value="${user.id}"><c:out value="${user.displayname}"/></option> 64 value="${user.id}"><c:out value="${user.displayname}"/></option>
65 </c:forEach> 65 </c:forEach>
66 </select> 66 </select>
67 </td> 67 </td>
68 </tr> 68 </tr>

mercurial