diff --git a/application/views/scripts/form/setup-summary.phtml b/application/views/scripts/form/setup-summary.phtml index b7d5a9ac7..77fb50783 100644 --- a/application/views/scripts/form/setup-summary.phtml +++ b/application/views/scripts/form/setup-summary.phtml @@ -1,6 +1,14 @@ getSummary(); +$prefType = $summary['setup_preferences_type']['type']; +$authType = $summary['setup_authentication_type']['type']; +$adminType = $summary['setup_admin_account']['user_type']; +$loggingType = $summary['setup_general_config']['logging_type']; +$loggingLevel = $summary['setup_general_config']['logging_level']; ?>
= t( @@ -9,48 +17,202 @@ use Icinga\Web\Wizard; . ' that you can start using Icinga Web 2 right after the installation has been finished.' ); ?>
= $topicContent; ?>
- -= $paragraphContent; ?>
- -= $pageContent; ?>
- + ++ = $authType === 'db' && $prefType === 'db' + ? t('The following database will be used to authenticate users and to store preferences.') : ( + $authType === 'db' ? t('The following database will be used to authenticate users.') : ( + t('The following database will be used to store preferences.') + ) + ); + ?> +
+= t('Resource Name'); ?> | += $summary['setup_db_resource']['name']; ?> | +
= t('Database Type'); ?> | += $summary['setup_db_resource']['db']; ?> | +
= t('Host'); ?> | += $summary['setup_db_resource']['host']; ?> | +
= t('Port'); ?> | += $summary['setup_db_resource']['port']; ?> | +
= t('Database Name'); ?> | += $summary['setup_db_resource']['dbname']; ?> | +
= t('Username'); ?> | += $summary['setup_db_resource']['username']; ?> | +
= t('Password'); ?> | += str_repeat('*', strlen($summary['setup_db_resource']['password'])); ?> | +
= t('The following LDAP connection will be used to authenticate users.'); ?>
+= t('Resource Name'); ?> | += $summary['setup_ldap_resource']['name']; ?> | +
= t('Host'); ?> | += $summary['setup_ldap_resource']['hostname']; ?> | +
= t('Port'); ?> | += $summary['setup_ldap_resource']['port']; ?> | +
= t('Root DN'); ?> | += $summary['setup_ldap_resource']['root_dn']; ?> | +
= t('Bind DN'); ?> | += $summary['setup_ldap_resource']['bind_dn']; ?> | +
= t('Bind Password'); ?> | += str_repeat('*', strlen($summary['setup_ldap_resource']['bind_pw'])); ?> | +
= sprintf( + t('Users will authenticate using %s.', 'setup.summary.auth'), + $authType === 'db' ? t('a database', 'setup.summary.auth.type') : ( + $authType === 'ldap' ? 'LDAP' : t('webserver authentication', 'setup.summary.auth.type') + ) + ); ?>
+= t('Backend Name'); ?> | += $summary['setup_authentication_backend']['name']; ?> | +
= t('User Object Class'); ?> | += $summary['setup_authentication_backend']['user_class']; ?> | +
= t('User Name Attribute'); ?> | += $summary['setup_authentication_backend']['user_name_attribute']; ?> | +
= t('Backend Domain Pattern'); ?> | += $summary['setup_authentication_backend']['strip_username_regexp']; ?> | +
= $adminType === 'by_name' || $adminType === 'existing_user' ? sprintf( + t('Administrative rights will initially be granted to an existing account called "%s".'), + $summary['setup_admin_account'][$adminType] + ) : sprintf( + t('Administrative rights will initially be granted to a new account called "%s".'), + $summary['setup_admin_account'][$adminType] + ); ?> +
= t('Level', 'app.config.logging'); ?> | += $loggingLevel === 0 ? t('None', 'app.config.logging.level') : ( + $loggingLevel === 1 ? t('Error', 'app.config.logging.level') : ( + $loggingLevel === 2 ? t('Warning', 'app.config.logging.level') : ( + $loggingLevel === 3 ? t('Information', 'app.config.logging.level') : ( + t('Debug', 'app.config.logging.level') + ) + ) + ) + ); ?> | +
= t('Type', 'app.config.logging'); ?> | += $loggingType === 'syslog' ? 'Syslog' : t('File', 'app.config.logging.type'); ?> | +
= t('Application Prefix'); ?> | += $summary['setup_general_config']['logging_application']; ?> | +
= t('Facility'); ?> | += $summary['setup_general_config']['logging_facility']; ?> | +
= t('Filepath'); ?> | += $summary['setup_general_config']['logging_target']; ?> | +
= $summary['database_info']; ?>
+