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

changeset 72
0646c14e36fb
parent 70
821c4950b619
equal deleted inserted replaced
71:dca186d3911f 72:0646c14e36fb
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="${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="${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="${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 <c:if test="${not empty project.owner and user.id eq project.owner.id}">selected</c:if> value="${user.id}"><c:out value="${user.displayname}"/></option> 62 <option
63 <c:if test="${not empty project.owner and user.id eq project.owner.id}">selected</c:if>
64 value="${user.id}"><c:out value="${user.displayname}"/></option>
63 </c:forEach> 65 </c:forEach>
64 </select> 66 </select>
65 </td> 67 </td>
66 </tr> 68 </tr>
67 </tbody> 69 </tbody>
68 <tfoot> 70 <tfoot>
69 <tr> 71 <tr>
70 <td colspan="2"> 72 <td colspan="2">
71 <input type="hidden" name="id" value="${project.id}" /> 73 <input type="hidden" name="id" value="${project.id}"/>
72 <a href="./${moduleInfo.modulePath}/" class="button"><fmt:message bundle="${lightpit_bundle}" key="button.cancel"/></a> 74 <a href="./${moduleInfo.modulePath}/" class="button"><fmt:message bundle="${lightpit_bundle}"
73 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay" /></button> 75 key="button.cancel"/></a>
76 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button>
74 </td> 77 </td>
75 </tr> 78 </tr>
76 </tfoot> 79 </tfoot>
77 </table> 80 </table>
78 </form> 81 </form>

mercurial