select2-bootstrap美化下拉框

This commit is contained in:
RuoYi
2019-05-05 17:52:02 +08:00
parent 27c0a440d7
commit 07dc3ee287
5 changed files with 13 additions and 4 deletions

View File

@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: header('新增用户')" />
<th:block th:include="include :: select2-css" />
</head>
<body>
<div class="form-content">
@ -99,7 +99,7 @@
<div class="form-group">
<label class="col-xs-2 control-label">岗位:</label>
<div class="col-xs-4">
<select id="post" class="form-control select2-hidden-accessible" multiple="">
<select id="post" class="form-control select2-multiple" multiple>
<option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}" th:disabled="${post.status == '1'}"></option>
</select>
</div>