36867 Интеграция с модерацией, реализация cron-task
This commit is contained in:
@@ -22,23 +22,65 @@ use yii\widgets\Pjax;
|
||||
$this->title = Yii::t('mole', 'Task List');
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="wrapper wrapper-content project-manager">
|
||||
<div class="ibox-content">
|
||||
<div class="wrapper wrapper-content">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="tabs-container">
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active">
|
||||
<div class="panel-body">
|
||||
|
||||
<?=
|
||||
GridView::widget([
|
||||
'dataProvider' => $dataProvider,
|
||||
'filterModel' => $searchModel,
|
||||
'layout' => "{items}\n{pager}",
|
||||
'columns' => [
|
||||
'id',
|
||||
<p>
|
||||
<?= Html::a(Yii::t('mole', 'Create Task'), ['create'], ['class' => 'btn btn-success']) ?>
|
||||
</p>
|
||||
|
||||
[
|
||||
'class' => 'yii\grid\ActionColumn',
|
||||
'template' => '{update}',
|
||||
],
|
||||
],
|
||||
]);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?=
|
||||
GridView::widget([
|
||||
'dataProvider' => $dataProvider,
|
||||
'filterModel' => $searchModel,
|
||||
'layout' => "{items}\n{pager}",
|
||||
'columns' => [
|
||||
'id',
|
||||
'project',
|
||||
'name',
|
||||
// 'parentId',
|
||||
'dateAdd:datetime',
|
||||
'dateStart:datetime',
|
||||
'dateEnd:datetime',
|
||||
//'module',
|
||||
'controller',
|
||||
// 'type',
|
||||
//'params',
|
||||
[
|
||||
'attribute' => 'isReady',
|
||||
'value' => function($model)
|
||||
{
|
||||
return $model->isReady ? Yii::t('mole', 'Yes') : Yii::t('mole', 'No');
|
||||
},
|
||||
// 'filter' => [0 => Yii::t('mole', 'No'), 1 => Yii::t('mole', 'Yes')]
|
||||
],
|
||||
[
|
||||
'attribute' => 'completed',
|
||||
'value' => function($model)
|
||||
{
|
||||
return $model->completed ? Yii::t('mole', 'Yes') : Yii::t('mole', 'No');
|
||||
},
|
||||
// 'filter' => [0 => Yii::t('mole', 'No'), 1 => Yii::t('mole', 'Yes')]
|
||||
],
|
||||
'priority',
|
||||
//'childsTotalCount',
|
||||
//'childsCompleted',
|
||||
// 'status',
|
||||
[
|
||||
'class' => 'yii\grid\ActionColumn',
|
||||
],
|
||||
],
|
||||
]);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user