add at_project field to user_card
This commit is contained in:
@ -149,6 +149,17 @@ use yii\widgets\ActiveForm;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<?= $form->field($model, 'at_project')->dropDownList(
|
||||
$model->getBusyness(),
|
||||
[
|
||||
'prompt' => 'Выберите'
|
||||
]
|
||||
) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
@ -35,6 +35,8 @@ use yii\widgets\ActiveForm;
|
||||
|
||||
<?php // echo $form->field($model, 'updated_at') ?>
|
||||
|
||||
<?php // echo $form->field($model, 'at_project') ?>
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
|
||||
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
|
||||
|
@ -59,6 +59,13 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
],
|
||||
]),
|
||||
],
|
||||
[
|
||||
'attribute' => 'at_project',
|
||||
'value' => function ($model) {
|
||||
return $model->getBusynessForUser($model->at_project);
|
||||
},
|
||||
'filter' => \common\models\UserCard::getBusyness(),
|
||||
],
|
||||
//'created_at',
|
||||
//'updated_at',
|
||||
[
|
||||
|
Reference in New Issue
Block a user