| | |
| | | </div> |
| | | </div> |
| | | <div class="row"> |
| | | |
| | | <div class="col-sm-6"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-4 control-label">岗位:</label> |
| | | <label class="col-sm-4 control-label">角色:</label> |
| | | <div class="col-sm-8"> |
| | | <select id="post" class="form-control select2-multiple" multiple> |
| | | <option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}" th:selected="${post.flag}" th:disabled="${post.status == '1'}"></option> |
| | | </select> |
| | | <label th:each="role:${roles}" class="check-box"> |
| | | <input name="role" type="checkbox" th:value="${role.roleId}" th:text="${role.roleName}" th:checked="${role.flag}" th:disabled="${role.status == '1'}"> |
| | | </label> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="row"> |
| | | <div class="row" style="display: none"> |
| | | <div class="col-sm-6"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-4 control-label">角色:</label> |
| | | <label class="col-sm-4 control-label">岗位:</label> |
| | | <div class="col-sm-8"> |
| | | <label th:each="role:${roles}" class="check-box"> |
| | | <input name="role" type="checkbox" th:value="${role.roleId}" th:text="${role.roleName}" th:checked="${role.flag}" th:disabled="${role.status == '1'}"> |
| | | </label> |
| | | <select id="post" class="form-control select2-multiple" multiple> |
| | | <option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}" th:selected="${post.flag}" th:disabled="${post.status == '1'}"></option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |