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

changeset 51
dd0a45ae25d7
parent 47
57cfb94ab99f
child 59
c759c60507a2
--- a/src/main/webapp/WEB-INF/dynamic_fragments/project-form.jsp	Sat May 16 11:37:57 2020 +0200
+++ b/src/main/webapp/WEB-INF/dynamic_fragments/project-form.jsp	Sat May 16 13:29:44 2020 +0200
@@ -32,6 +32,7 @@
 <c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/>
 
 <jsp:useBean id="project" type="de.uapcore.lightpit.entities.Project" scope="request"/>
+<jsp:useBean id="users" type="java.util.List<de.uapcore.lightpit.entities.User>" scope="request"/>
 
 <form action="./${moduleInfo.modulePath}/commit" method="post">
     <table class="formtable" style="width: 80ch">
@@ -57,7 +58,9 @@
             <td>
                 <select name="owner">
                     <option value="-1"><fmt:message key="placeholder.null-owner" /> </option>
-                    <!-- TODO: add user selection -->
+                    <c:forEach var="user" items="${users}">
+                        <option value="${user.id}">${user.displayname}</option>
+                    </c:forEach>
                 </select>
             </td>
         </tr>

mercurial