server/src/main/webapp/WEB-INF/templates/fragment/userForm.html
branchuser_management
changeset 239 67c2b0fb9b19
parent 237 0e6c826a046e
equal deleted inserted replaced
238:ffe523338543 239:67c2b0fb9b19
   128        </div>
   128        </div>
   129        <div>
   129        <div>
   130          <label for="locked" th:text="#{renkanAdmin.form.locked}">Locked: </label> 
   130          <label for="locked" th:text="#{renkanAdmin.form.locked}">Locked: </label> 
   131          <input type="checkbox" th:field="*{locked}" /> 
   131          <input type="checkbox" th:field="*{locked}" /> 
   132        </div>
   132        </div>
       
   133 <!-- todo: only user of admin group can see that -->
       
   134        <div>
       
   135            <label for="groups" th:text="#{renkanAdmin.form.groups}">Groups: </label>
       
   136            <select th:field="*{groups}" multiple="multiple">
       
   137                <option th:each="group: ${allGroups}" th:value="${group.id}" th:text="${group.title}">GROUP</option>
       
   138            </select>
       
   139        </div>
   133        <div>
   140        <div>
   134            <label for="userAuthorities" th:text="#{renkanAdmin.form.roles}">Roles: </label>
   141            <label for="userAuthorities" th:text="#{renkanAdmin.form.roles}">Roles: </label>
   135            <select th:field="*{userAuthorities}" multiple="multiple">
   142            <select th:field="*{userAuthorities}" multiple="multiple">
   136                <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>
   143                <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>
   137            </select>
   144            </select>