mirror of
				https://github.com/Icinga/icingaweb2.git
				synced 2025-10-31 11:24:51 +01:00 
			
		
		
		
	Wizard: Make it unambiguous what the first database configuration is for
fixes #9654
This commit is contained in:
		
							parent
							
								
									e2e1692462
								
							
						
					
					
						commit
						35ea3cc9ee
					
				| @ -19,10 +19,6 @@ class DbResourcePage extends Form | ||||
|     public function init() | ||||
|     { | ||||
|         $this->setTitle($this->translate('Database Resource', 'setup.page.title')); | ||||
|         $this->addDescription($this->translate( | ||||
|             'Now please configure your database resource. Note that the database itself does not need to' | ||||
|             . ' exist at this time as it is going to be created once the wizard is about to be finished.' | ||||
|         )); | ||||
|         $this->setValidatePartial(true); | ||||
|     } | ||||
| 
 | ||||
|  | ||||
| @ -163,6 +163,14 @@ class WebWizard extends Wizard implements SetupWizard | ||||
|             } | ||||
|         /*} elseif ($page->getName() === 'setup_ldap_discovery_confirm') { | ||||
|             $page->setResourceConfig($this->getPageData('setup_ldap_discovery'));*/ | ||||
|         } elseif ($page->getName() === 'setup_auth_db_resource') { | ||||
|             $page->addDescription($this->translate( | ||||
|                 'Now please configure the database resource where to store users and user groups.' | ||||
|             )); | ||||
|             $page->addDescription($this->translate( | ||||
|                 'Note that the database itself does not need to exist at this time as' | ||||
|                 . ' it is going to be created once the wizard is about to be finished.' | ||||
|             )); | ||||
|         } elseif ($page->getName() === 'setup_usergroup_backend') { | ||||
|             $page->setResourceConfig($this->getPageData('setup_ldap_resource')); | ||||
|             $page->setBackendConfig($this->getPageData('setup_authentication_backend')); | ||||
| @ -187,6 +195,14 @@ class WebWizard extends Wizard implements SetupWizard | ||||
|             $page->setSubjectTitle('Icinga Web 2'); | ||||
|             $page->setSummary($this->getSetup()->getSummary()); | ||||
|         } elseif ($page->getName() === 'setup_config_db_resource') { | ||||
|             $page->addDescription($this->translate( | ||||
|                 'Now please configure the database resource where to store user preferences.' | ||||
|             )); | ||||
|             $page->addDescription($this->translate( | ||||
|                 'Note that the database itself does not need to exist at this time as' | ||||
|                 . ' it is going to be created once the wizard is about to be finished.' | ||||
|             )); | ||||
| 
 | ||||
|             $ldapData = $this->getPageData('setup_ldap_resource'); | ||||
|             if ($ldapData !== null && $request->getPost('name') === $ldapData['name']) { | ||||
|                 $page->error( | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user