title = $model->name;
$this->params['breadcrumbs'][] = ['label' => 'Projects', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
= Html::a('Список', ['index'], ['class' => 'btn btn-primary']) ?>
= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
= Html::a('Удалить', ['delete', 'id' => $model->id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]) ?>
= DetailView::widget([
'model' => $model,
'attributes' => [
'id',
'name',
[
'label' => 'Сраница на hh.ru',
'attribute' => 'hh.url'
],
'description:ntext',
'status',
'created_at',
'updated_at',
],
]) ?>
Дополнительные сведения
= GridView::widget([
'dataProvider' => $modelFildValue,
'layout' => "{items}",
'columns' => [
'field.name:text:Поле',
[
'attribute' => 'value',
'format' => 'raw',
'label' => 'Значение',
'value' => function ($model) {
return $model->getValue();
}
],
],
]); ?>
Пользователи проекта
= GridView::widget([
'dataProvider' => $modelUser,
'layout' => "{items}",
'columns' => [
'card.fio:text:ФИО',
[
'class' => 'yii\grid\ActionColumn',
'template' => '{view} {update}',
'buttons' => [
'update' => function ($url, $model) {
return Html::a(
'
',
['/card/user-card/update', 'id' => $model->id],
['target' => '_blank']
);
},
'view' => function ($url, $model) {
return Html::a(
'
',
['/card/user-card/view', 'id' => $model->id],
['target' => '_blank']
);
},
],
],
],
]); ?>
Вакансии hh.ru
= GridView::widget([
'dataProvider' => $jobsProvider,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'title',
'url:url',
'salary_from',
'salary_to',
'salary_currency',
'address',
'dt_add:date',
[
'class' => 'yii\grid\ActionColumn',
'template' => '{view} {delete}'
],
],
]); ?>
История изменений
= GridView::widget([
'dataProvider' => $changeDataProvider,
'columns' => [
'label',
'old_value',
'new_value',
'created_at',
],
]); ?>