From be7ee76048c957d79fe91f54f02111dfc40884af Mon Sep 17 00:00:00 2001 From: Anastasia Date: Wed, 30 May 2018 15:50:33 +0300 Subject: [PATCH] - add decorate button --- backend/controllers/PageController.php | 4 ++-- backend/controllers/ServiceController.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/controllers/PageController.php b/backend/controllers/PageController.php index 95f7234..0042358 100644 --- a/backend/controllers/PageController.php +++ b/backend/controllers/PageController.php @@ -175,11 +175,11 @@ 'name' => 'categoryIds', 'type' => Form::RELATION, 'relationAttribute' => 'title', - 'relationName' => 'parent', + 'relationName' => 'categories', 'multiple' => false, ], [ - 'name' => 'status', + 'name' => 'in_menu', 'type' => Form::BOOL, ], [ diff --git a/backend/controllers/ServiceController.php b/backend/controllers/ServiceController.php index bd103b9..9b1bd92 100644 --- a/backend/controllers/ServiceController.php +++ b/backend/controllers/ServiceController.php @@ -158,6 +158,7 @@ [ 'name' => 'title', 'type' => Form::STRING, + 'decorate' => true ], [ 'name' => 'body', -- libgit2 0.21.4