protected function createComponentSettingsForm(): Form
	{
		$form = $this->formFactory->create();

		$form->addImageUpload('logo', 'webManager.web.settings.logo', 'webManager.web.settings.deleteLogo')
			->setNamespace('front')
			->setPreview('300x100');
		$form->addText('title', 'webManager.web.settings.pagesTitle');
		$form->addTextArea('keywords', 'webManager.web.settings.keywords');
		$form->addTextArea('description', 'webManager.web.settings.description');

		$form->addSubmit('save', 'form.save');

		$form->onSuccess[] = [$this, 'settingsFormSucceeded'];

		return $form;
	}
protected function createComponentSettingsForm(): Form
	{
		$form = $this->formFactory->create();

		$form->addImageUpload('logo', 'webManager.web.settings.logo', 'webManager.web.settings.deleteLogo')
			->setNamespace('front')
			->setPreview('300x100');
		$form->addText('title', 'webManager.web.settings.pagesTitle');
		$form->addTextArea('keywords', 'webManager.web.settings.keywords');
		$form->addTextArea('description', 'webManager.web.settings.description');

		$form->addSubmit('save', 'form.save');

		$form->onSuccess[] = [$this, 'settingsFormSucceeded'];

		return $form;
	}
protected function createComponentSettingsForm ( ) : Form { $ form = $ this -> formFactory -> create ( ) ; $ form -> addImageUpload ( 'logo' , 'webManager.web.settings.logo' , 'webManager.web.settings.deleteLogo' ) -> setNamespace ( 'front' ) -> setPreview ( '300x100' ) ; $ form -> addText ( 'title' , 'webManager.web.settings.pagesTitle' ) ; $ form -> addTextArea ( 'keywords' , 'webManager.web.settings.keywords' ) ; $ form -> addTextArea ( 'description' , 'webManager.web.settings.description' ) ; $ form -> addSubmit ( 'save' , 'form.save' ) ; $ form -> onSuccess [ ] = [ $ this , 'settingsFormSucceeded' ] ; return $ form ; }
Hlavni nastaveni stranek
@return Form
Hlavni nastaveni stranek