update mở tất cả + đóng tất cả cửa
This commit is contained in:
@@ -35,10 +35,10 @@
|
||||
<button class="btn btn-primary" onclick="openDoor(this);" data-href="{yii\helpers\Url::to(['open-door', 'id' => $model->id, 'door' => $d->code])}">
|
||||
Mở
|
||||
</button>
|
||||
{*<button id="always-open-{$d->id}" class="change-duration-{$d->id} btn btn-{if $d->always_open}warning{else}default{/if}" onclick="changeDuration(this);" data-href="{yii\helpers\Url::to(['change-duration', 'id' => $d->id, 'duration' => 255])}">
|
||||
<button id="always-open-{$d->id}" class="change-duration-{$d->id} btn btn-{if $d->always_open}warning{else}default{/if}" onclick="changeDuration(this);" data-href="{yii\helpers\Url::to(['change-duration', 'id' => $d->id, 'duration' => 255])}">
|
||||
Luôn mở
|
||||
</button>
|
||||
<button id="always-close-{$d->id}" class="change-duration-{$d->id} btn btn-{if $d->always_close}warning{else}default{/if}" onclick="changeDuration(this);" data-href="{yii\helpers\Url::to(['change-duration', 'id' => $d->id, 'duration' => 0])}">
|
||||
{*<button id="always-close-{$d->id}" class="change-duration-{$d->id} btn btn-{if $d->always_close}warning{else}default{/if}" onclick="changeDuration(this);" data-href="{yii\helpers\Url::to(['change-duration', 'id' => $d->id, 'duration' => 0])}">
|
||||
Luôn đóng
|
||||
</button>*}
|
||||
</td>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<input type='hidden' name='URL_sync_schedule' value="{Url::to(['sync-schedule'])}">
|
||||
<input type='hidden' name='URL_sync_staff' value="{Url::to(['sync-staff'])}">
|
||||
<input type='hidden' name='URL_open_door' value="{Url::to(['open-doors-of-device'])}">
|
||||
<input type='hidden' name='URL_close_door' value="{Url::to(['close-doors-of-device'])}">
|
||||
<input type='hidden' name='pageSize' value="{Yii::$app->params["pageSize"]}">
|
||||
|
||||
<input type='hidden' name='get_data_sync_url' value="{Url::to(['get-data-sync'])}">
|
||||
@@ -55,6 +56,9 @@
|
||||
<label class="action-button" onclick="openAllDoors(this);" data-href="{Url::to(['open-all-doors'])}">
|
||||
<i class="fa fa-reply fa-1-5x"></i> Mở tất cả cửa
|
||||
</label>
|
||||
<label class="action-button" onclick="closeAllDoors(this);" data-href="{Url::to(['close-all-doors'])}">
|
||||
<i class="fa fa-close fa-1-5x"></i> Đóng tất cả cửa
|
||||
</label>
|
||||
{/if}
|
||||
<label class="action-button" onclick="_logs(this);" data-href="{Url::to(['logs'])}">
|
||||
<i class="fa fa-file fa-1-5x"></i> Ghi nhận hệ thống
|
||||
|
||||
Reference in New Issue
Block a user