update socket

This commit is contained in:
2020-02-10 10:23:13 +07:00
parent 6bee84075c
commit adadd350ba
15 changed files with 867 additions and 34 deletions

View File

@@ -4,6 +4,15 @@
{use class="app\assets\LogsAsset"}
{LogsAsset::register($this)|void}
{block name='content'}
<style>
.img-thumbnail{
max-width: inherit;
}
.popover{
max-width:600px;
}
</style>
<input type="hidden" value="{Url::to(['/logs/save'])}" name="saveUrl">
<div class="row">
<div class="col-md-2">
<div class="form-group">
@@ -31,7 +40,12 @@
<i class="fa fa-download"></i> Xuất báo cáo
</button>
</div>
<div class="col-md-2 col-md-push-4">
<div class="col-md-1 col-md-push-3">
<button class="btn btn-info" onclick="window.location.reload(true);">
<i class="fa fa-refresh"></i> Làm mới
</button>
</div>
<div class="col-md-2 col-md-push-3">
<a href="{Url::to(['/logs-unknow'])}" class="btn btn-danger">
<i class="fa fa-truck"></i> Xe khác
</a>
@@ -62,23 +76,33 @@
],
[
'attribute' => 'driver',
'value' => 'vehicle.driver'
'format' => 'raw',
'value' => \app\helpers\LogsGrid::driver()
],
[
'attribute' => 'telephone',
'value' => 'vehicle.telephone'
'format' => 'raw',
'value' => \app\helpers\LogsGrid::telephone()
],
[
'attribute' => 'cmt',
'value' => 'vehicle.indentity_card'
'format' => 'raw',
'value' => \app\helpers\LogsGrid::cmt()
],
[
'attribute' => 'factory',
'format' => 'raw',
'value' => \app\helpers\LogsGrid::factory()
],
[
'attribute' => 'seal_no',
'format' => 'raw',
'value' => \app\helpers\LogsGrid::sealNo()
],
'factory',
'seal_no',
[
'attribute' => "plate_image_in",
'format' => 'raw',
'contentOptions' => ['class' => 'text-center'],
'headerOptions' => ['style' => 'width:8%'],
'value' => \app\helpers\LogsGrid::plateIn()
],
[
@@ -92,7 +116,6 @@
'attribute' => "plate_image_out",
'format' => 'raw',
'contentOptions' => ['class' => 'text-center'],
'headerOptions' => ['style' => 'width:8%'],
'value' => \app\helpers\LogsGrid::plateOut()
],
[
@@ -102,7 +125,11 @@
'headerOptions' => ['style' => 'width:5%'],
'value' => \app\helpers\LogsGrid::timeOut()
],
'note'
[
'attribute' => 'note',
'format' => 'raw',
'value' => \app\helpers\LogsGrid::note()
]
]
])}
{/block}