add project_id and company_id to reports

update doc
This commit is contained in:
iIronside
2023-11-03 12:01:29 +03:00
parent 52f8cb312f
commit ae44789200
7 changed files with 589 additions and 12 deletions

View File

@ -1,9 +1,8 @@
<?php
use kartik\date\DatePicker;
use kartik\datetime\DateTimePicker;
use Symfony\Component\Console\Input\Input;
use unclead\multipleinput\MultipleInput;
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
@ -70,7 +69,17 @@ $this->registerCss('.list-cell__task{width:73%}')
<?= $form->field($model, 'tomorrow')->textarea(['maxlength' => true]) ?>
<?= $form->field($model, 'user_card_id')->dropDownList(
\yii\helpers\ArrayHelper::map(common\models\UserCard::find()->all(), 'id', 'fio'),
ArrayHelper::map(common\models\UserCard::find()->all(), 'id', 'fio'),
['prompt' => '...']
) ?>
<?= $form->field($model, 'project_id')->dropDownList(
ArrayHelper::map(common\models\Project::find()->all(), 'id', 'name'),
['prompt' => '...']
) ?>
<?= $form->field($model, 'company_id')->dropDownList(
ArrayHelper::map(common\models\Company::find()->all(), 'id', 'name'),
['prompt' => '...']
) ?>