<div class="<?= $errors ? "has-error" : "" ?>">
    <div class="fileinput fileinput-new input-group" data-provides="fileinput">
        <div class="form-control" data-trigger="fileinput">
            <i class="glyphicon glyphicon-file fileinput-exists"></i>
            <span class="fileinput-filename"></span>
        </div>
        <span class="input-group-addon btn btn-default btn-file">
            <span class="fileinput-new"><?= Yii::t('inspinia', 'Select files') ?></span>
            <span class="fileinput-exists"><?= Yii::t('inspinia', 'Change') ?></span>
            <input type="file" name=<?= $name ?> <?= $multiple ? "multiple={$multiple}" : "" ?>>
        </span>
        <a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput"><?= Yii::t('inspinia', 'Remove') ?></a>
    </div>
    <div class="help-block">
    <?php foreach ($errors as $error): ?>
        <?= $error ?>
    <?php endforeach; ?>
    </div>
</div>

