01ebf78c
Administrator
Initial commit
|
1
2
3
4
5
6
7
8
9
|
<?php
use \kartik\file\FileInput;
use yii\widgets\ActiveForm;
use yii\helpers\Html;
/* @var $this yii\web\View */
$this->title = 'Image cropper';
?>
|
3ff61e27
Administrator
Adding basic gallery
|
10
|
<?= Html::a('Gallery', ['image/gallery']) ?>
|
01ebf78c
Administrator
Initial commit
|
11
|
<?php $form = ActiveForm::begin(['options' => ['enctype'=>'multipart/form-data']]); ?>
|
75ea1564
Administrator
Adding deletion c...
|
12
|
<?= Html::dropDownList('crop_id', null, $ukrSeeds, ['id' => 'ukr_seeds']) ?>
|
f020676c
Administrator
Fixing issues
|
13
14
15
16
17
18
19
20
21
|
<?= FileInput::widget([
'name' => 'imageFiles[]',
'language' => 'ru',
'options' => ['multiple' => true, 'accept' => 'image/*'],
'pluginOptions' => [
'previewFileType' => 'image',
'maxFileCount' => 20
]
]); ?>
|
01ebf78c
Administrator
Initial commit
|
22
23
24
|
<?php $form->end(); ?>
<?= Html::buttonInput('Draw', ['onclick' => 'js:draw();', 'style' => 'display : block']) ?>
<canvas/>
|