--- a/server/src/main/webapp/WEB-INF/templates/fragment/userForm.html Mon Nov 04 15:56:44 2013 +0100
+++ b/server/src/main/webapp/WEB-INF/templates/fragment/userForm.html Thu Nov 07 10:42:18 2013 +0100
@@ -130,6 +130,12 @@
<label for="locked" th:text="#{renkanAdmin.form.locked}">Locked: </label>
<input type="checkbox" th:field="*{locked}" />
</div>
+ <div>
+ <label for="userAuthorities" th:text="#{renkanAdmin.form.roles}">Roles: </label>
+ <select th:field="*{userAuthorities}" multiple="multiple">
+ <option th:each="role: ${T(org.iri_research.renkan.Constants).USER_ROLES_SELECT}" th:value="${role}" th:text="#{${'renkan.user.roles.'+role}}">USER_ROLE</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-->