Commit 1c3e8a3777c2ff734fc07fd36feb8319b1ee7478

Authored by Alexey Boroda
1 parent 249534b0

-Seo text in brand and some admin fix

backend/controllers/BrandController.php
@@ -102,7 +102,7 @@ class BrandController extends Controller @@ -102,7 +102,7 @@ class BrandController extends Controller
102 102
103 if ($model->load(Yii::$app->request->post()) && $model->save()) { 103 if ($model->load(Yii::$app->request->post()) && $model->save()) {
104 104
105 - return $this->redirect(['view', 'id' => $model->brand_id]); 105 + return $this->redirect(['brand/view', 'id' => $model->brand_id]);
106 } else { 106 } else {
107 return $this->render('update', [ 107 return $this->render('update', [
108 'model' => $model, 108 'model' => $model,
frontend/views/catalog/brand.php
@@ -45,8 +45,13 @@ $this->params['breadcrumbs'][] = $brand->name; @@ -45,8 +45,13 @@ $this->params['breadcrumbs'][] = $brand->name;
45 45
46 <h1 class="title"><?= Seo::widget(['row' => 'h1']) ?></h1> 46 <h1 class="title"><?= Seo::widget(['row' => 'h1']) ?></h1>
47 47
  48 + <div class="brand-seo-text">
  49 + <?=$brand->seo_text?>
  50 + </div>
  51 + <div class="clearfix"></div>
48 52
49 - <div class="list_filters_links"> 53 +
  54 + <div class="list_filters_links">
50 <div class="sort_block"> 55 <div class="sort_block">
51 <span>Сортировка:</span> 56 <span>Сортировка:</span>
52 <?= \yii\widgets\LinkSorter::widget([ 57 <?= \yii\widgets\LinkSorter::widget([
frontend/web/css/css_header.css
@@ -6549,6 +6549,11 @@ header a#logo img { @@ -6549,6 +6549,11 @@ header a#logo img {
6549 width: 100% 6549 width: 100%
6550 } 6550 }
6551 6551
  6552 +.brand-seo-text {
  6553 + margin-bottom: 20px;
  6554 + padding: 0px 5px;
  6555 +}
  6556 +
6552 #brand_bar { 6557 #brand_bar {
6553 float: left; 6558 float: left;
6554 width: 100%; 6559 width: 100%;