File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 10
10
/* @var $this yii\web\View */
11
11
/* @var $model zacksleo\yii2\cms\models\Item */
12
12
/* @var $form yii\widgets\ActiveForm */
13
+
14
+ $ css = <<<CSS
15
+ img.file-preview-image{width:100%};
16
+ CSS ;
17
+ $ this ->registerCss ($ css );
13
18
?>
14
19
15
20
<div class="item-form">
39
44
40
45
<?= $ form ->field ($ model , 'price ' )->textInput () ?>
41
46
47
+ <?= \nemmo \attachments \components \AttachmentsInput::widget ([
48
+ 'id ' => 'file-input ' , // Optional
49
+ 'model ' => $ model ,
50
+ 'options ' => [ // Options of the Kartik's FileInput widget
51
+ 'multiple ' => true , // If you want to allow multiple upload, default to false
52
+ ],
53
+ 'pluginOptions ' => [ // Plugin options of the Kartik's FileInput widget
54
+ 'maxFileCount ' => 10 , // Client max files
55
+ 'resizeImage ' => true
56
+ ]
57
+ ]) ?>
58
+
59
+
42
60
<?= $ form ->field ($ model , 'description ' )->widget ('kucha\ueditor\UEditor ' , []); ?>
43
61
44
62
<?= $ form ->field ($ model , 'status ' )->textInput ()->radioList (
You can’t perform that action at this time.
0 commit comments