$modelLangs, 'formView' => '@backend/views/product/_form_language', 'form' => $form, ] ) ?> field($model, 'sku') ->textInput() ?> field($model, 'price') ->textInput() ?> field($model, 'sort') ->textInput() ?> field($model, 'image_id') ->widget( ImageManagerInputWidget::className(), [ 'aspectRatio' => ( 16 / 9 ), //set the aspect ratio 'showPreview' => true, //false to hide the preview 'showDeletePickedImageConfirm' => false, //on true show warning before detach image ] ) ?> field($model, 'status') ->checkbox() ?>
isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), [ 'class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary' ] ) ?>