Commit be7ee76048c957d79fe91f54f02111dfc40884af

Authored by Anastasia
1 parent 3cc6d54b

- add decorate button

backend/controllers/PageController.php
@@ -175,11 +175,11 @@ @@ -175,11 +175,11 @@
175 'name' => 'categoryIds', 175 'name' => 'categoryIds',
176 'type' => Form::RELATION, 176 'type' => Form::RELATION,
177 'relationAttribute' => 'title', 177 'relationAttribute' => 'title',
178 - 'relationName' => 'parent', 178 + 'relationName' => 'categories',
179 'multiple' => false, 179 'multiple' => false,
180 ], 180 ],
181 [ 181 [
182 - 'name' => 'status', 182 + 'name' => 'in_menu',
183 'type' => Form::BOOL, 183 'type' => Form::BOOL,
184 ], 184 ],
185 [ 185 [
backend/controllers/ServiceController.php
@@ -158,6 +158,7 @@ @@ -158,6 +158,7 @@
158 [ 158 [
159 'name' => 'title', 159 'name' => 'title',
160 'type' => Form::STRING, 160 'type' => Form::STRING,
  161 + 'decorate' => true
161 ], 162 ],
162 [ 163 [
163 'name' => 'body', 164 'name' => 'body',