57 lines
2.5 KiB
Smarty
57 lines
2.5 KiB
Smarty
{extends file=$smarty.current_dir|cat:'/../extends.tpl'}
|
|
{use class="yii\helpers\Url"}
|
|
{use class="yii\grid\GridView"}
|
|
{use class="yii\widgets\Pjax" type="block"}
|
|
{use class="app\assets\ScheduleAsset"}
|
|
{ScheduleAsset::register($this)|void}
|
|
{block name='content'}
|
|
<div class="schedule-index">
|
|
<div class="" style="font-size: 15px;">
|
|
<label class="action-button" onclick="_create(this);" data-href="{Url::to(['create'])}">
|
|
<i class="fa fa-plus-square fa-1-5x"></i> Thêm
|
|
</label>
|
|
<label class="action-button" onclick="_form(this);" data-href="{Url::to(['update'])}">
|
|
<i class="fa fa-edit fa-1-5x"></i> Tùy chỉnh
|
|
</label>
|
|
<label class="action-button" onclick="_delete(this);" data-href="{Url::to(['delete'])}">
|
|
<i class="fa fa-trash fa-1-5x"></i> Xóa
|
|
</label>
|
|
</div>
|
|
{Pjax id="schedule-list"}
|
|
{GridView::widget([
|
|
'dataProvider' => $dataProvider,
|
|
'filterModel' => $searchModel,
|
|
'layout'=> \app\helpers\CommonGrid::getLayout(),
|
|
'tableOptions' => [
|
|
'class' => 'table table-striped table-bordered table-hover',
|
|
'style' => 'background:#fff;min-width:700px;'
|
|
],
|
|
'rowOptions' => \app\helpers\CommonGrid::rows("schedule", true),
|
|
'columns' => [
|
|
[
|
|
'class' => 'yii\grid\SerialColumn',
|
|
'contentOptions' => ['class' => 'text-center'],
|
|
'headerOptions' => ['class' => 'text-center', 'style' => 'width:3%']
|
|
],
|
|
[
|
|
'header' => "<input type='checkbox' value='0' class='checkbox-schedule' id='checkall-schedule'>",
|
|
'format' => 'raw',
|
|
'contentOptions' => ['class' => 'text-center'],
|
|
'headerOptions' => ['class' => 'text-center', 'style' => 'width:3%'],
|
|
'value' => \app\helpers\CommonGrid::checkbox("schedule", false)
|
|
],
|
|
'name',
|
|
'description',
|
|
[
|
|
'attribute' => 'created_at',
|
|
'value' => \app\helpers\CommonGrid::createdAt()
|
|
],
|
|
[
|
|
'attribute' => 'modified_at',
|
|
'value' => \app\helpers\CommonGrid::modifiedAt()
|
|
]
|
|
]
|
|
])}
|
|
{/Pjax}
|
|
</div>
|
|
{/block} |