Capitalize Forms

refs #4525
This commit is contained in:
Jannis Moßhammer 2013-08-20 17:30:28 +02:00 committed by Eric Lippmann
parent a6ff6ecadd
commit 21e560cb3b
6 changed files with 33 additions and 33 deletions

View File

@ -78,7 +78,7 @@ class DbBackendForm extends BaseBackendForm
array( array(
'required' => true, 'required' => true,
'allowEmpty'=> false, 'allowEmpty'=> false,
'label' => 'Backend name', 'label' => 'Backend Name',
'helptext' => 'The name of this authentication provider', 'helptext' => 'The name of this authentication provider',
'value' => $this->getBackendName() 'value' => $this->getBackendName()
) )
@ -88,7 +88,7 @@ class DbBackendForm extends BaseBackendForm
'select', 'select',
'backend_' . $name . '_resource', 'backend_' . $name . '_resource',
array( array(
'label' => 'Database connection', 'label' => 'Database Connection',
'required' => true, 'required' => true,
'allowEmpty' => false, 'allowEmpty' => false,
'helptext' => 'The database connection to use for authenticating with this provider', 'helptext' => 'The database connection to use for authenticating with this provider',

View File

@ -58,7 +58,7 @@ class LdapBackendForm extends BaseBackendForm
array( array(
'required' => true, 'required' => true,
'allowEmpty'=> false, 'allowEmpty'=> false,
'label' => 'Backend name', 'label' => 'Backend Name',
'helptext' => 'The name of this authentication backend', 'helptext' => 'The name of this authentication backend',
'value' => $this->getBackendName() 'value' => $this->getBackendName()
) )
@ -68,7 +68,7 @@ class LdapBackendForm extends BaseBackendForm
'text', 'text',
'backend_' . $name . '_hostname', 'backend_' . $name . '_hostname',
array( array(
'label' => 'LDAP server host', 'label' => 'LDAP Server Host',
'allowEmpty' => false, 'allowEmpty' => false,
'value' => $backend->get('hostname', 'localhost'), 'value' => $backend->get('hostname', 'localhost'),
'helptext' => 'The hostname or address of the LDAP server to use for authentication', 'helptext' => 'The hostname or address of the LDAP server to use for authentication',
@ -80,7 +80,7 @@ class LdapBackendForm extends BaseBackendForm
'text', 'text',
'backend_' . $name . '_root_dn', 'backend_' . $name . '_root_dn',
array( array(
'label' => 'LDAP root dn', 'label' => 'LDAP Root DN',
'value' => $backend->get('root_dn', 'ou=people,dc=icinga,dc=org'), 'value' => $backend->get('root_dn', 'ou=people,dc=icinga,dc=org'),
'helptext' => 'The path where users can be found on the ldap server', 'helptext' => 'The path where users can be found on the ldap server',
'required' => true 'required' => true
@ -91,7 +91,7 @@ class LdapBackendForm extends BaseBackendForm
'text', 'text',
'backend_' . $name . '_bind_dn', 'backend_' . $name . '_bind_dn',
array( array(
'label' => 'LDAP bind dn', 'label' => 'LDAP Bind DN',
'value' => $backend->get('bind_dn', 'cn=admin,cn=config'), 'value' => $backend->get('bind_dn', 'cn=admin,cn=config'),
'helptext' => 'The user dn to use for querying the ldap server', 'helptext' => 'The user dn to use for querying the ldap server',
'required' => true 'required' => true
@ -102,7 +102,7 @@ class LdapBackendForm extends BaseBackendForm
'password', 'password',
'backend_' . $name . '_bind_pw', 'backend_' . $name . '_bind_pw',
array( array(
'label' => 'LDAP bind password', 'label' => 'LDAP Bind Password',
'renderPassword' => true, 'renderPassword' => true,
'value' => $backend->get('bind_pw', 'admin'), 'value' => $backend->get('bind_pw', 'admin'),
'helptext' => 'The password to use for querying the ldap server', 'helptext' => 'The password to use for querying the ldap server',
@ -114,7 +114,7 @@ class LdapBackendForm extends BaseBackendForm
'text', 'text',
'backend_' . $name . '_user_class', 'backend_' . $name . '_user_class',
array( array(
'label' => 'LDAP user object class', 'label' => 'LDAP User Object Class',
'value' => $backend->get('user_class', 'inetOrgPerson'), 'value' => $backend->get('user_class', 'inetOrgPerson'),
'helptext' => 'The object class used for storing users on the ldap server', 'helptext' => 'The object class used for storing users on the ldap server',
'required' => true 'required' => true
@ -125,14 +125,14 @@ class LdapBackendForm extends BaseBackendForm
'text', 'text',
'backend_' . $name . '_user_name_attribute', 'backend_' . $name . '_user_name_attribute',
array( array(
'label' => 'LDAP user name attribute', 'label' => 'LDAP User Name Attribute',
'value' => $backend->get('user_name_attribute', 'uid'), 'value' => $backend->get('user_name_attribute', 'uid'),
'helptext' => 'The attribute name used for storing the user name on the ldap server', 'helptext' => 'The attribute name used for storing the user name on the ldap server',
'required' => true 'required' => true
) )
); );
$this->setSubmitLabel('Save backend'); $this->setSubmitLabel('Save Backend');
} }
/** /**

View File

@ -302,7 +302,7 @@ class AuthenticationForm extends Form
$this->addPersistentState(); $this->addPersistentState();
$this->enableConditionalDecorator(); $this->enableConditionalDecorator();
$this->setSubmitLabel('Save changes'); $this->setSubmitLabel('Save Changes');
} }
/** /**

View File

@ -138,7 +138,7 @@ class GeneralForm extends Form
'checkbox', 'checkbox',
'environment', 'environment',
array( array(
'label' => 'Development mode', 'label' => 'Development Mode',
'required' => true, 'required' => true,
'helptext' => 'Set true to show more detailed errors ' 'helptext' => 'Set true to show more detailed errors '
. 'and disable certain optimizations ' . 'and disable certain optimizations '
@ -170,7 +170,7 @@ class GeneralForm extends Form
'select', 'select',
'timezone', 'timezone',
array( array(
'label' => 'Default application timezone', 'label' => 'Default Application Timezone',
'required' => true, 'required' => true,
'multiOptions' => $tzList, 'multiOptions' => $tzList,
'helptext' => $helptext, 'helptext' => $helptext,
@ -190,7 +190,7 @@ class GeneralForm extends Form
'text', 'text',
'module_folder', 'module_folder',
array( array(
'label' => 'Module folder', 'label' => 'Module Folder',
'required' => true, 'required' => true,
'helptext' => 'Use this folder to activate modules (must be writable by your webserver)', 'helptext' => 'Use this folder to activate modules (must be writable by your webserver)',
'value' => $cfg->get('moduleFolder', $this->getConfigDir() . '/config/enabledModules') 'value' => $cfg->get('moduleFolder', $this->getConfigDir() . '/config/enabledModules')
@ -211,7 +211,7 @@ class GeneralForm extends Form
$txtDefaultDateFormat = new Zend_Form_Element_Text( $txtDefaultDateFormat = new Zend_Form_Element_Text(
array( array(
'name' => 'date_format', 'name' => 'date_format',
'label' => 'Date format', 'label' => 'Date Format',
'helptext' => 'Display dates according to this format. See ' . $phpUrl . ' for possible values', 'helptext' => 'Display dates according to this format. See ' . $phpUrl . ' for possible values',
'required' => true, 'required' => true,
'value' => $cfg->get('dateFormat', 'd/m/Y') 'value' => $cfg->get('dateFormat', 'd/m/Y')
@ -223,7 +223,7 @@ class GeneralForm extends Form
$txtDefaultTimeFormat = new Zend_Form_Element_Text( $txtDefaultTimeFormat = new Zend_Form_Element_Text(
array( array(
'name' => 'time_format', 'name' => 'time_format',
'label' => 'Time format', 'label' => 'Time Format',
'required' => true, 'required' => true,
'helptext' => 'Display times according to this format. See ' . $phpUrl . ' for possible values', 'helptext' => 'Display times according to this format. See ' . $phpUrl . ' for possible values',
'value' => $cfg->get('timeFormat', 'g:i A') 'value' => $cfg->get('timeFormat', 'g:i A')
@ -248,11 +248,11 @@ class GeneralForm extends Form
'select', 'select',
'preferences_type', 'preferences_type',
array( array(
'label' => 'User preference storage type', 'label' => 'User Preference Storage Type',
'required' => true, 'required' => true,
'value' => $backend, 'value' => $backend,
'multiOptions' => array( 'multiOptions' => array(
'ini' => 'File system (ini files)', 'ini' => 'File System (ini files)',
'db' => 'Database' 'db' => 'Database'
) )
) )
@ -261,7 +261,7 @@ class GeneralForm extends Form
$txtPreferencesIniPath = new Zend_Form_Element_Text( $txtPreferencesIniPath = new Zend_Form_Element_Text(
array( array(
'name' => 'preferences_ini_path', 'name' => 'preferences_ini_path',
'label' => 'Path to store user preference files', 'label' => 'User Preference Filepath',
'required' => $backend === 'ini', 'required' => $backend === 'ini',
'condition' => $backend === 'ini', 'condition' => $backend === 'ini',
'value' => $cfg->get('configPath') 'value' => $cfg->get('configPath')
@ -279,7 +279,7 @@ class GeneralForm extends Form
$txtPreferencesDbResource = new Zend_Form_Element_Select( $txtPreferencesDbResource = new Zend_Form_Element_Select(
array( array(
'name' => 'preferences_db_resource', 'name' => 'preferences_db_resource',
'label' => 'Database connection', 'label' => 'Database Connection',
'required' => $backend === 'db', 'required' => $backend === 'db',
'condition' => $backend === 'db', 'condition' => $backend === 'db',
'value' => $cfg->get('resource'), 'value' => $cfg->get('resource'),
@ -327,7 +327,7 @@ class GeneralForm extends Form
$this->addDateFormatSettings($global); $this->addDateFormatSettings($global);
$this->addUserPreferencesDialog($preferences); $this->addUserPreferencesDialog($preferences);
$this->setSubmitLabel('Save changes'); $this->setSubmitLabel('Save Changes');
} }
/** /**

View File

@ -141,7 +141,7 @@ class LoggingForm extends Form
$txtLogPath = new Zend_Form_Element_Text( $txtLogPath = new Zend_Form_Element_Text(
array( array(
'name' => 'logging_app_target', 'name' => 'logging_app_target',
'label' => 'Application log path', 'label' => 'Application Log Path',
'helptext' => 'The logfile to write the icingaweb debug logs to.' 'helptext' => 'The logfile to write the icingaweb debug logs to.'
. 'The webserver must be able to write at this location', . 'The webserver must be able to write at this location',
'required' => true, 'required' => true,
@ -155,7 +155,7 @@ class LoggingForm extends Form
'checkbox', 'checkbox',
'logging_app_verbose', 'logging_app_verbose',
array( array(
'label' => 'Verbose logging', 'label' => 'Verbose Logging',
'required' => true, 'required' => true,
'helptext' => 'Check to write more verbose output to the icinga log file', 'helptext' => 'Check to write more verbose output to the icinga log file',
'value' => intval($logging->get('verbose', 0)) === 1 'value' => intval($logging->get('verbose', 0)) === 1
@ -166,7 +166,7 @@ class LoggingForm extends Form
'checkbox', 'checkbox',
'logging_debug_enable', 'logging_debug_enable',
array( array(
'label' => 'Use debug log', 'label' => 'Use Debug Log',
'required' => true, 'required' => true,
'helptext' => 'Check to write a seperate debug log (Warning: This file can grow very big)', 'helptext' => 'Check to write a seperate debug log (Warning: This file can grow very big)',
'value' => $this->shouldDisplayDebugLog($debug) 'value' => $this->shouldDisplayDebugLog($debug)
@ -176,7 +176,7 @@ class LoggingForm extends Form
$textLoggingDebugPath = new Zend_Form_Element_Text( $textLoggingDebugPath = new Zend_Form_Element_Text(
array( array(
'name' => 'logging_debug_target', 'name' => 'logging_debug_target',
'label' => 'Debug log path', 'label' => 'Debug Log Path',
'required' => $this->shouldDisplayDebugLog($debug), 'required' => $this->shouldDisplayDebugLog($debug),
'condition' => $this->shouldDisplayDebugLog($debug), 'condition' => $this->shouldDisplayDebugLog($debug),
'value' => $debug->get('target', $this->getBaseDir() . '/var/log/icinga2.debug.log'), 'value' => $debug->get('target', $this->getBaseDir() . '/var/log/icinga2.debug.log'),
@ -192,7 +192,7 @@ class LoggingForm extends Form
$this->enableAutoSubmit(array('logging_debug_enable')); $this->enableAutoSubmit(array('logging_debug_enable'));
$this->setSubmitLabel('Save changes'); $this->setSubmitLabel('Save Changes');
} }
/** /**

View File

@ -84,7 +84,7 @@ class GeneralForm extends Form
$selectTimezone = new Zend_Form_Element_Select( $selectTimezone = new Zend_Form_Element_Select(
array( array(
'name' => 'timezone', 'name' => 'timezone',
'label' => 'Your current timezone', 'label' => 'Your Current Timezone',
'required' => !$useGlobalTimezone, 'required' => !$useGlobalTimezone,
'multiOptions' => $tzList, 'multiOptions' => $tzList,
'helptext' => $helptext, 'helptext' => $helptext,
@ -95,7 +95,7 @@ class GeneralForm extends Form
'checkbox', 'checkbox',
'default_timezone', 'default_timezone',
array( array(
'label' => 'Use default timezone', 'label' => 'Use Default Timezone',
'value' => !$prefs->has('app.timezone'), 'value' => !$prefs->has('app.timezone'),
'required' => true 'required' => true
) )
@ -128,7 +128,7 @@ class GeneralForm extends Form
'checkbox', 'checkbox',
'default_date_format', 'default_date_format',
array( array(
'label' => 'Use default date format', 'label' => 'Use Default Date Format',
'value' => !$prefs->has('app.dateFormat'), 'value' => !$prefs->has('app.dateFormat'),
'required' => true 'required' => true
) )
@ -136,7 +136,7 @@ class GeneralForm extends Form
$txtDefaultDateFormat = new Zend_Form_Element_Text( $txtDefaultDateFormat = new Zend_Form_Element_Text(
array( array(
'name' => 'date_format', 'name' => 'date_format',
'label' => 'Preferred date format', 'label' => 'Preferred Date Format',
'helptext' => 'Display dates according to this format. See ' . $phpUrl . ' for possible values', 'helptext' => 'Display dates according to this format. See ' . $phpUrl . ' for possible values',
'required' => !$useGlobalDateFormat, 'required' => !$useGlobalDateFormat,
'value' => $prefs->get('app.dateFormat', $cfg->get('dateFormat', 'd/m/Y')) 'value' => $prefs->get('app.dateFormat', $cfg->get('dateFormat', 'd/m/Y'))
@ -153,7 +153,7 @@ class GeneralForm extends Form
'checkbox', 'checkbox',
'default_time_format', 'default_time_format',
array( array(
'label' => 'Use default time format', 'label' => 'Use Default Time Format',
'value' => !$prefs->has('app.timeFormat'), 'value' => !$prefs->has('app.timeFormat'),
'required' => !$useGlobalTimeFormat 'required' => !$useGlobalTimeFormat
) )
@ -161,7 +161,7 @@ class GeneralForm extends Form
$txtDefaultTimeFormat = new Zend_Form_Element_Text( $txtDefaultTimeFormat = new Zend_Form_Element_Text(
array( array(
'name' => 'time_format', 'name' => 'time_format',
'label' => 'Preferred time format', 'label' => 'Preferred Time Format',
'required' => !$useGlobalTimeFormat, 'required' => !$useGlobalTimeFormat,
'helptext' => 'Display times according to this format. See ' . $phpUrl . ' for possible values', 'helptext' => 'Display times according to this format. See ' . $phpUrl . ' for possible values',
'value' => $prefs->get('app.timeFormat', $cfg->get('timeFormat', 'g:i A')) 'value' => $prefs->get('app.timeFormat', $cfg->get('timeFormat', 'g:i A'))
@ -196,7 +196,7 @@ class GeneralForm extends Form
$this->addTimezoneSelection($global); $this->addTimezoneSelection($global);
$this->addDateFormatSettings($global); $this->addDateFormatSettings($global);
$this->setSubmitLabel('Save changes'); $this->setSubmitLabel('Save Changes');
} }
/** /**