<?php
use \yii\bootstrap\Html;
return [
    'activeForm' => [
        'id' => 'trigger-form',
        'options' => [
            'enctype' => 'multipart/form-data'
        ]
    ],
    'elements' => [
        'name' => [
            'type' => 'text',
            'class' => 'form-control'
        ],
        'status' => [
            'type' => 'dropdownlist',
            'items' => $this->model->getStatuses()
        ],
        'description' => [
            'type' => 'textarea',
            'class' => 'form-control'
        ],
        Html::tag(
            'div',
            Html::img(Yii::$app->params['frontUrl'].$this->model->image,['style' => 'width: 100%']),
            [
                'class' => 'col-lg-7 col-md-8 col-sm-10 col-xs-12'
            ]
        ),
        'uploadedImage' => [
            'type' => 'file',
            'class' => 'form-control'
        ]
    ],
    'buttons' => [
        'submit' => ['type' => 'submit', 'value' => 'Cохранить']
    ]
];