From 5642d013dd1e59ca6c80967d6cc2a43e8339395e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vosla=C5=99?= Date: Thu, 24 Jul 2014 14:23:09 +0100 Subject: [PATCH] Update PagesPresenter.php --- AdminModule/presenters/PagesPresenter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AdminModule/presenters/PagesPresenter.php b/AdminModule/presenters/PagesPresenter.php index ffd1efee..fdb277cb 100755 --- a/AdminModule/presenters/PagesPresenter.php +++ b/AdminModule/presenters/PagesPresenter.php @@ -54,10 +54,10 @@ protected function createComponentPageForm() } $form = $this->createForm(); - $form->addText('title', 'Name')->setAttribute('class', 'form-control')->required(); + $form->addText('title', 'Name')->setAttribute('class', 'form-control')->setRequired(); $form->addText('redirect', 'Redirect')->setAttribute('class', 'form-control'); $form->addText('class', 'Menu item class')->setAttribute('class', 'form-control'); - $form->addSelect('module', 'Module')->setTranslator(NULL)->setItems($modulesToSelect)->setAttribute('class', 'form-control')->required(); + $form->addSelect('module', 'Module')->setTranslator(NULL)->setItems($modulesToSelect)->setAttribute('class', 'form-control')->setRequired(); $form->addSelect('parent', 'Parent')->setTranslator(NULL)->setItems($hierarchy)->setAttribute('class', 'form-control'); $form->addCheckbox('default', 'Default'); $form->addCheckbox('visible', 'Show');