update filter dữ liệu cửa trong Cấp quyền truy cập

This commit is contained in:
2020-12-10 10:26:24 +07:00
parent ecd76e6c58
commit 9a13c5b677
6 changed files with 128 additions and 8 deletions

4
views/assign/device.tpl Normal file
View File

@@ -0,0 +1,4 @@
<select name="FilterDevice" id="FilterDevice" onchange="filterDevice(this);">
<option value=""></option>
{html_options options=$deviceArray}
</select>

View File

@@ -24,7 +24,7 @@
overflow: scroll;
}
{*#schedule-search-staff::-webkit-scrollbar {
display: none;
display: none;
}*}
#create-schedule-main{
border-left: 1px solid #cecece;
@@ -37,6 +37,7 @@
}
</style>
<input type="hidden" value="" name="currentDepartment">
<input type="hidden" value="{Url::to(['filter-all-device'])}" name="filter_all_device_url">
<div class="assign-index">
<div class="row">
<div class="col-md-3">
@@ -94,7 +95,7 @@
</fieldset>
</div>
<div class="col-md-3">
<fieldset id='schedule-door-lists' style="overflow-y: scroll;">
<fieldset id='schedule-door-lists' style="overflow: scroll;">
<legend>Cấp quyền truy cập</legend>
<div class="input-group">
<div class="input-group-addon">Chọn lịch trình</div>
@@ -108,7 +109,7 @@
</div>
</div>
<br>
<table class="table table-bordered table-striped table-staff-schedule" style="background: #fff;">
<table class="table table-bordered table-striped table-staff-schedule" style="background: #fff;width: 500px;">
<thead>
<tr class="info">
<th style="width: 10%;" class="text-center">
@@ -116,16 +117,35 @@
</th>
<th>Cửa</th>
<th>Thiết bị</th>
<th>Khu vực</th>
</tr>
<tr>
<td></td>
<td></td>
<td id="deviceFilterForm">
<select name="FilterDevice" id="FilterDevice" onchange="filterDevice(this);">
<option value=""></option>
{html_options options=$deviceArray}
</select>
</td>
<td>
<select name="FilterArea" id="FilterArea" onchange="filterArea(this);" data-href="{Url::to(['filter-area'])}">
<option value=""></option>
{html_options options=$areaArray}
</select>
</td>
</tr>
</thead>
<tbody>
{foreach from=$doorLists item=door}
<tr>
{$device=$door->device}
<tr class="door-lists door-lists-{$device->area_id} door-lists-{$device->id}">
<td class="text-center">
<input type='checkbox' value='{$door->id}' name='checkbox-door-schedule' class='checkbox-door-schedule'>
</td>
<td>{$door->name}</td>
<td>{$deviceArray[$door->device_id]}</td>
<td>{$device->name}</td>
<td>{$areaArray[$device->area_id]|default:""}</td>
</tr>
{/foreach}
</tbody>