['enctype' => 'multipart/form-data']]); ?> tax_group_id)) :?> field($model, 'tax_group_id')->dropDownList( ArrayHelper::map(TaxOption::find()->all(), 'tax_group_id', 'value'), [ 'prompt' => Yii::t('rubrication', 'Select group'), ] ) ?> field($model, 'tax_group_id')->hiddenInput()->label('') ?> field($model, 'value')->textInput(['maxlength' => true]) ?> field($model, 'alias')->textInput(['maxlength' => 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', ], ]); ?> field($model, 'sort')->dropDownList(RubricationHelper::SortArray()) ?>
isNewRecord ? Yii::t('rubrication', 'Create') : Yii::t('rubrication', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> isNewRecord) :?> 'create_and_new', 'class' => 'btn btn-primary']) ?>