36867 Интеграция с модерацией, реализация cron-task
This commit is contained in:
85
views/default/view.php
Normal file
85
views/default/view.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\widgets\DetailView;
|
||||
use yii\grid\GridView;
|
||||
use app\components\Helper;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $model app\models\MailType */
|
||||
|
||||
$this->title = $model->name;
|
||||
$this->params['breadcrumbs'][] = ['label' => Yii::t('mole', 'Task List'), 'url' => ['index']];
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<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">
|
||||
|
||||
<p>
|
||||
<?= Html::a(Yii::t('mole', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
|
||||
<?=
|
||||
Html::a(Yii::t('mole', 'Delete'), ['delete', 'id' => $model->id], [
|
||||
'class' => 'btn btn-danger',
|
||||
'data' => [
|
||||
'confirm' => Yii::t('mole', 'Are you sure you want to delete this item?'),
|
||||
'method' => 'post',
|
||||
],
|
||||
])
|
||||
?>
|
||||
</p>
|
||||
|
||||
<?=
|
||||
DetailView::widget([
|
||||
'model' => $model,
|
||||
'attributes' => [
|
||||
'id',
|
||||
'project',
|
||||
'name',
|
||||
'parentId',
|
||||
'dateAdd:datetime',
|
||||
'dateStart:datetime',
|
||||
'dateEnd:datetime',
|
||||
'module',
|
||||
'controller',
|
||||
'type',
|
||||
[
|
||||
'attribute' => 'params',
|
||||
'value' => function($model)
|
||||
{
|
||||
return print_r(json_decode($model->params, true), true);
|
||||
},
|
||||
],
|
||||
[
|
||||
'attribute' => 'isReady',
|
||||
'value' => function($model)
|
||||
{
|
||||
return $model->isReady ? Yii::t('mole', 'Yes') : Yii::t('mole', 'No');
|
||||
},
|
||||
],
|
||||
[
|
||||
'attribute' => 'completed',
|
||||
'value' => function($model)
|
||||
{
|
||||
return $model->completed ? Yii::t('mole', 'Yes') : Yii::t('mole', 'No');
|
||||
},
|
||||
],
|
||||
'priority',
|
||||
'status',
|
||||
],
|
||||
])
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user