server/src/main/webapp/WEB-INF/templates/fragment/groupForm.html
branchuser_management
changeset 239 67c2b0fb9b19
parent 235 f8746a482459
--- a/server/src/main/webapp/WEB-INF/templates/fragment/groupForm.html	Mon Jan 06 10:06:50 2014 +0100
+++ b/server/src/main/webapp/WEB-INF/templates/fragment/groupForm.html	Tue Jan 14 18:02:42 2014 +0100
@@ -65,6 +65,13 @@
          <label for="avatar" th:text="#{renkanAdmin.form.avatar}">Avatar: </label> 
          <input type="text" th:field="*{avatar}" /> 
        </div>
+<!-- todo: only user managing the group can see that -->
+       <div>
+           <label for="users" th:text="#{renkanAdmin.form.users}">Groups: </label>
+           <select th:field="*{users}" multiple="multiple">
+               <option th:each="user: ${allUsers}" th:value="${user.id}" th:text="${user.title}">USER</option>
+           </select>
+       </div>
        <div class="submit"> 
          <button type="submit" name="save" th:text="#{renkanAdmin.form.user.submit}">Save</button>
          <!--button type="button" name="cancel" th:text="#{renkanAdmin.form.user.cancel}" th:onclick="location">Cancel</button-->