reports extract

This commit is contained in:
2024-04-03 18:31:17 +03:00
parent 28f9f3a87e
commit a27c8a933e
7 changed files with 734 additions and 65 deletions

View File

@ -0,0 +1,42 @@
<?php
use kartik\date\DatePicker;
use kartik\select2\Select2;
use unclead\multipleinput\MultipleInput;
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model \backend\modules\reports\models\ExtractForm */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="reports-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'user_id')->widget(
Select2::class,
[
'data' => \common\models\UserCard::getListUserWithUserId(),
'options' => ['placeholder' => '...', 'class' => 'form-control'],
'pluginOptions' => [
'allowClear' => true
],
]
); ?>
<?= $form->field($model, 'date_from')->textInput(['type' => 'date']) ?>
<?= $form->field($model, 'date_to')->textInput(['type' => 'date']) ?>
<div class="form-group">
<?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>