96 lines
4.2 KiB
Plaintext
96 lines
4.2 KiB
Plaintext
|
<div class="row mb-5">
|
||
|
<div class="panel-toolbar ml-2">
|
||
|
<div class="d-flex position-relative ml-auto" style="max-width: 8rem;">
|
||
|
<div class="form-group">
|
||
|
<select class="form-control" id="select_roleId_roleAuth_tab">
|
||
|
@*<option value="0" disabled>請先新增角色</option>*@
|
||
|
</select>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row mb-3">
|
||
|
<div class="col-12">
|
||
|
<a href="javascript:;" class="btn btn-success waves-effect waves-themed mb-3" onclick="AddRoleAuth()"><span class="fal fa-plus mr-1"></span> 加入可用功能</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col-12">
|
||
|
<!-- datatable start -->
|
||
|
<table id="roleAuth_table" class="table table-bordered table-hover m-0 text-center">
|
||
|
<thead class="thead-themed">
|
||
|
<tr>
|
||
|
<th>#</th>
|
||
|
<th>角色</th>
|
||
|
<th>功能類型</th>
|
||
|
<th>區域</th>
|
||
|
<th>功能名稱</th>
|
||
|
<th>功能細項名稱</th>
|
||
|
<th>建立時間</th>
|
||
|
<th>功能</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<!-- Modal 角色權限 -->
|
||
|
<div class="modal fade" id="role-auth-modal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false">
|
||
|
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
|
||
|
<div class="modal-content">
|
||
|
<div class="modal-header">
|
||
|
<h4 class="modal-title">
|
||
|
角色權限 - 新增
|
||
|
</h4>
|
||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
|
<span aria-hidden="true"><i class="fal fa-times"></i></span>
|
||
|
</button>
|
||
|
</div>
|
||
|
<div class="modal-body">
|
||
|
<div class="row mb-5">
|
||
|
<div class="panel-toolbar ml-2">
|
||
|
<div class="d-flex position-relative ml-auto" style="max-width: 8rem;">
|
||
|
<div class="form-group">
|
||
|
<select class="form-control" id="select_authType" onchange="authTypeChange()">
|
||
|
<option value="1">前台</option>
|
||
|
<option value="2">後台</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="panel-toolbar ml-2">
|
||
|
<div class="d-flex position-relative ml-auto" style="max-width: 8rem;">
|
||
|
<div class="form-group">
|
||
|
<select class="form-control" id="select_building">
|
||
|
</select>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<table id="roleAuth_NotJoin_table" class="table table-bordered table-hover m-0 text-center">
|
||
|
<thead class="thead-themed">
|
||
|
<tr>
|
||
|
<th>
|
||
|
<div class="custom-control custom-checkbox">
|
||
|
<input type="checkbox" class="custom-control-input" id="select-all-role-auth">
|
||
|
<label class="custom-control-label" for="select-all-role-auth">全選</label>
|
||
|
</div>
|
||
|
</th>
|
||
|
<th>功能大項</th>
|
||
|
<th>功能名稱</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="modal-footer">
|
||
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
|
||
|
<button type="button" class="btn btn-primary" id="save-role-auth-btn" onclick="SaveRoleAuth()">確定</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- /.角色權限 -->
|