echo $form->field($model, 'meta_keywords')->textarea(); ?> <?php BackendWidget::end(); ?> <?php echo \app\properties\PropertiesWidget::widget(['model' => $model, 'form' => $form]); ?> </article> <article class="<?php echo Helper::getBackendGridClass('shop', ShopModule::BACKEND_PRODUCT_GRID, 2); ?> "> <?php BackendWidget::begin(['title' => Yii::t('app', 'Categories'), 'icon' => 'tree', 'footer' => $this->blocks['submit']]); ?> <?php echo \app\backend\widgets\JSSelectableTree::widget(['flagFieldName' => 'main_category_id', 'fieldName' => 'categories', 'model' => $model, 'selectedItems' => $selected, 'selectOptions' => ['class' => 'form-control'], 'selectLabel' => Yii::t('app', 'Main category'), 'routes' => ['getTree' => ['getCatTree']], 'stateKey' => $model->id . $model->isNewRecord ? time() : '']); ?> <br /> <?php BackendWidget::end(); ?>
echo \DotPlant\ElFinder\widgets\ElfinderFileInput::widget(['url' => Url::toRoute(['addImage', 'objId' => $object->id, 'objModelId' => $model->id])]); } ?> </div> <?php echo \app\modules\image\widgets\ImageDropzone::widget(['name' => 'file', 'url' => ['/shop/backend-product/upload'], 'removeUrl' => ['/shop/backend-product/remove'], 'uploadDir' => '/theme/resources/product-images', 'sortable' => true, 'sortableOptions' => ['items' => '.dz-image-preview'], 'objectId' => $object->id, 'modelId' => $model->id, 'htmlOptions' => ['class' => 'table table-striped files', 'id' => 'previews'], 'options' => ['clickable' => ".fileinput-button"]]); ?> <?php BackendWidget::end(); ?> </article> <article class="<?php echo Helper::getBackendGridClass('shop', ShopModule::BACKEND_CATEGORY_GRID, 2); ?> "> <?php BackendWidget::begin(['title' => Yii::t('app', 'SEO'), 'icon' => 'cogs', 'footer' => $this->blocks['submit']]); ?> <?php echo $form->field($model, 'slug', ['makeSlug' => ["#category-name", "#category-title", "#category-h1", "#category-breadcrumbs_label"]]); ?> <?php echo $form->field($model, 'h1', ['copyFrom' => ["#category-name", "#category-title", "#category-breadcrumbs_label"]]); ?> <?php
if (Yii::$app->getModule('elfinder')) { echo \DotPlant\ElFinder\widgets\ElfinderFileInput::widget(['url' => Url::toRoute(['addImage', 'objId' => $object->id, 'objModelId' => $model->id])]); } ?> </div> <?php echo \app\modules\image\widgets\ImageDropzone::widget(['name' => 'file', 'url' => ['upload'], 'removeUrl' => ['remove'], 'uploadDir' => '/theme/resources/product-images', 'sortable' => true, 'sortableOptions' => ['items' => '.dz-image-preview'], 'objectId' => $object->id, 'modelId' => $model->id, 'htmlOptions' => ['class' => 'table table-striped files', 'id' => 'previews'], 'options' => ['clickable' => ".fileinput-button"]]); ?> <?php BackendWidget::end(); ?> </article> <article class="<?php echo Helper::getBackendGridClass('page', PageModule::BACKEND_PAGE_GRID, 2); ?> "> <?php BackendWidget::begin(['title' => Yii::t('app', 'SEO'), 'icon' => 'search', 'footer' => $this->blocks['submit']]); ?> <?php echo $form->field($model, 'slug', ['makeSlug' => ["#page-title", "#page-h1", "#page-breadcrumbs_label"]]); ?> <?php echo $form->field($model, 'slug_absolute')->checkbox(); ?> <?php echo $form->field($model, 'subdomain'); ?>