Blame view

examples/views/parser/index.php 765 Bytes
0f83918b   Mihail   change views in e...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  <?php
  use yii\widgets\ActiveForm;
  use yii\helpers\Html;
  use yii\helpers\ArrayHelper;
  
  ?>
  <div class="row">
      <div class="col-lg-5">
          <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data',],'action'=>['parser/read']]);
          ?>
          <h3>Choose file to parse</h3>
  
          <?= $form->field($model, 'file')->fileInput() ?>
  
          <?= $form->field($model, 'file_type')->radioList([0 => 'Custom file', 1 => 'csv template', 2 => 'xml template', 3 => 'xlsx template', 4 => 'xls template', 5 => 'txt template'])->label(false);
          ?>
  
          <div class="form-group">
              <?= Html::submitButton('Read', ['class' => 'btn btn-primary']) ?>
          </div>
  
          <?php ActiveForm::end();
          ?>
      </div>
  </div>