2021-11-23 13:13:19 +03:00
|
|
|
<?php
|
|
|
|
|
2021-11-24 13:05:12 +03:00
|
|
|
use yii\helpers\ArrayHelper;
|
2021-11-23 13:13:19 +03:00
|
|
|
use yii\helpers\Html;
|
|
|
|
use yii\widgets\DetailView;
|
|
|
|
|
|
|
|
/* @var $this yii\web\View */
|
|
|
|
/* @var $model backend\modules\task\models\TaskUser */
|
|
|
|
|
2021-11-24 13:05:12 +03:00
|
|
|
$this->title = 'Изменить назначение сотрудника';
|
2021-11-23 13:13:19 +03:00
|
|
|
$this->params['breadcrumbs'][] = ['label' => 'Task Users', 'url' => ['index']];
|
|
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
|
|
\yii\web\YiiAsset::register($this);
|
|
|
|
?>
|
|
|
|
<div class="task-user-view">
|
|
|
|
|
|
|
|
<p>
|
2021-11-24 13:05:12 +03:00
|
|
|
<?= Html::a('Список', ['index', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
|
|
|
|
<?= Html::a('Изменить', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
|
|
|
|
<?= Html::a('Удалить', ['delete', 'id' => $model->id], [
|
2021-11-23 13:13:19 +03:00
|
|
|
'class' => 'btn btn-danger',
|
|
|
|
'data' => [
|
|
|
|
'confirm' => 'Are you sure you want to delete this item?',
|
|
|
|
'method' => 'post',
|
|
|
|
],
|
|
|
|
]) ?>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<?= DetailView::widget([
|
|
|
|
'model' => $model,
|
|
|
|
'attributes' => [
|
|
|
|
'id',
|
2021-11-24 13:05:12 +03:00
|
|
|
[
|
|
|
|
'attribute' => 'task_id',
|
|
|
|
'value' => ArrayHelper::getValue($model, 'task.title'),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'attribute' => 'project_user_id',
|
|
|
|
'value' => ArrayHelper::getValue($model, 'projectUser.user.username'),
|
|
|
|
],
|
2021-11-23 13:13:19 +03:00
|
|
|
],
|
|
|
|
]) ?>
|
|
|
|
|
|
|
|
</div>
|