index.php
886 Bytes
<?php
use yii\widgets\ActiveForm;
use yii\helpers\Html;
?>
<div class="row">
<div class="col-lg-5">
<?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data',],'action'=>['parser/results']]) ?>
<h3>Загрузка прайсов поставщиков</h3>
<?= $form->field($model, 'importer')->dropDownList(['1'=>'test1', '2'=>'test2', '3'=>'test3' ]); ?>
<?= $form->field($model, 'file')->fileInput() ?>
<?= Html::radio('action', true, ['label' => 'Radio1']); ?>
<?= Html::radio('action', true, ['label' => 'Radio2']); ?>
<?= Html::checkbox('agree', true, ['label' => 'Checkbox']); ?>
<div class="form-group">
<?= Html::submitButton(Yii::t('app', 'Прочитать'), ['class' => 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end() ?>
</div>
</div>