<?php
/**
 * Created by PhpStorm.
 * User: NeiroN
 * Date: 18.11.2015
 * Time: 23:34
 */

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use kartik\file\FileInput;
?>
<div class="panel panel-primary">
    <div class="panel-heading"><span class="glyphicon glyphicon-list"></span><strong> <?= Html::encode($this->title) ?></strong></div>
    <div class="panel-body">
        <div class="bidding-form">

            <?php

            $files = new \app\models\Files();

            $form = ActiveForm::begin([
                'options'=>['enctype'=>'multipart/form-data'] // important
            ]);
            echo $form->field($files, 'file')->widget(FileInput::classname(),[
                'model' => $files,
                'options' => ['multiple' => false],
                'pluginOptions' => ['initialCaption'=>'*.doc, *.docx, *.pdf, *.jpg, *.png, *.zip, *.rar'],
            ])->label(Yii::t('app','DownloadMemeberDoc ID'));
            ActiveForm::end();
            ?>

        </div>
    </div>
</div>