Thêm nút Luôn mở + luôn đóng
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<th>Tên cửa</th>
|
||||
<th>Thời gian mở cửa (giây)</th>
|
||||
<th>Sửa</th>
|
||||
<th style="width: 15%;">Mở cửa</th>
|
||||
<th>Mở cửa</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -35,8 +35,19 @@
|
||||
<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 class="change-duration-{$d->id} btn btn-{if $d->duration==255}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 class="change-duration-{$d->id} btn btn-{if $d->duration==0}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>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
<div class="text-right">
|
||||
<button class="btn btn-default" data-dismiss="modal" id="close-modal">
|
||||
<span class="fa fa-remove"></span> Đóng
|
||||
</button>
|
||||
</div>
|
||||
Reference in New Issue
Block a user