['enctype' => 'multipart/form-data']]); ?> field($model, 'image')->widget(\kartik\file\FileInput::classname(), [ 'model' => $model, 'attribute' => 'image', 'options' => [ 'accept' => 'image/*', 'multiple' => true ], 'pluginOptions' => [ 'allowedFileExtensions' => ['jpg','gif','png'], 'initialPreview' => $model->imageUrl ? \common\components\artboximage\ArtboxImageHelper::getImage($model->imageUrl, 'slider') : '', 'overwriteInitial' => true, 'showRemove' => true, 'showUpload' => false, ], ]); ?> 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, 'sort')->textInput() ?>
isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>