false, 'options' => ['enctype' => 'multipart/form-data'] ]); ?> field($model, 'alt')->textInput(['maxlength' => true]) ?> field($model, 'title')->textInput(['maxlength' => true]) ?> field($model, 'url')->textInput(['maxlength' => true]) ?> field($model, 'status')->widget(Select2::className(),([ 'name' => 'status', 'hideSearch' => true, 'data' => [1 => 'Active', 2 => 'Inactive'], 'options' => ['placeholder' => 'Select status...'], 'pluginOptions' => [ 'allowClear' => true ] ])) ?>
field($model, 'image')->widget(\kartik\file\FileInput::classname(), [ 'language' => 'ru', 'options' => [ 'accept' => 'image/*', 'multiple' => false, ], 'pluginOptions' => [ 'allowedFileExtensions' => ['jpg', 'gif', 'png'], 'initialPreview' => !empty($model->imageUrl) ? \common\components\artboximage\ArtboxImageHelper::getImage($model->imageUrl, 'list') : '', 'overwriteInitial' => true, 'showRemove' => false, 'showUpload' => false, 'previewFileType' => 'image', ], ]); ?>
isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>