26 --%> |
26 --%> |
27 <%@page pageEncoding="UTF-8" %> |
27 <%@page pageEncoding="UTF-8" %> |
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
30 |
30 |
31 <jsp:useBean id="project" type="de.uapcore.lightpit.entities.Project" scope="request"/> |
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectEditView" scope="request" /> |
32 <jsp:useBean id="users" type="java.util.List<de.uapcore.lightpit.entities.User>" scope="request"/> |
32 <c:set var="project" scope="page" value="${viewmodel.project}"/> |
33 |
33 |
34 <form action="./projects/commit" method="post"> |
34 <form action="./projects/commit" method="post"> |
35 <table class="formtable"> |
35 <table class="formtable"> |
36 <colgroup> |
36 <colgroup> |
37 <col> |
37 <col> |
53 <tr> |
53 <tr> |
54 <th><fmt:message key="owner"/></th> |
54 <th><fmt:message key="owner"/></th> |
55 <td> |
55 <td> |
56 <select name="owner"> |
56 <select name="owner"> |
57 <option value="-1"><fmt:message key="placeholder.null-owner"/></option> |
57 <option value="-1"><fmt:message key="placeholder.null-owner"/></option> |
58 <c:forEach var="user" items="${users}"> |
58 <c:forEach var="user" items="${viewmodel.users}"> |
59 <option |
59 <option |
60 <c:if test="${not empty project.owner and user eq project.owner}">selected</c:if> |
60 <c:if test="${not empty project.owner and user eq project.owner}">selected</c:if> |
61 value="${user.id}"><c:out value="${user.displayname}"/></option> |
61 value="${user.id}"><c:out value="${user.displayname}"/></option> |
62 </c:forEach> |
62 </c:forEach> |
63 </select> |
63 </select> |