Commit 4e4b2611 authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавили выведение изображения в форму

parent ca7bea0c
<?php
use \yii\bootstrap\Html;
return [
'activeForm' => [
'id' => 'trigger-form',
......@@ -20,6 +20,13 @@ return [
'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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment