diff options
author | Phil Davis <phil.davis@inf.org> | 2017-01-30 20:42:31 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2017-01-30 20:42:31 +0545 |
commit | 153c3aa61fe65c51d584a57c032a4805048e3062 (patch) | |
tree | 42696094778acd02a2841644f05dc99ec78cd535 | |
parent | b39cebf6f09b7d110d810e3ccff0136751aa1718 (diff) | |
download | pfsense-153c3aa61fe65c51d584a57c032a4805048e3062.zip pfsense-153c3aa61fe65c51d584a57c032a4805048e3062.tar.gz |
Required fields for System pages
-rw-r--r-- | src/usr/local/www/system.php | 8 | ||||
-rw-r--r-- | src/usr/local/www/system_advanced_sysctl.php | 4 | ||||
-rw-r--r-- | src/usr/local/www/system_authservers.php | 50 | ||||
-rw-r--r-- | src/usr/local/www/system_camanager.php | 26 | ||||
-rw-r--r-- | src/usr/local/www/system_certmanager.php | 54 | ||||
-rw-r--r-- | src/usr/local/www/system_crlmanager.php | 12 | ||||
-rw-r--r-- | src/usr/local/www/system_gateway_groups_edit.php | 8 | ||||
-rw-r--r-- | src/usr/local/www/system_gateways_edit.php | 6 | ||||
-rw-r--r-- | src/usr/local/www/system_groupmanager.php | 6 | ||||
-rw-r--r-- | src/usr/local/www/system_groupmanager_addprivs.php | 2 | ||||
-rw-r--r-- | src/usr/local/www/system_routes_edit.php | 4 | ||||
-rw-r--r-- | src/usr/local/www/system_update_settings.php | 2 | ||||
-rw-r--r-- | src/usr/local/www/system_usermanager.php | 10 | ||||
-rw-r--r-- | src/usr/local/www/system_usermanager_addprivs.php | 2 | ||||
-rw-r--r-- | src/usr/local/www/system_usermanager_passwordmg.php | 4 | ||||
-rw-r--r-- | src/usr/local/www/system_usermanager_settings.php | 2 |
16 files changed, 112 insertions, 88 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php index 5cc10ac..b842834 100644 --- a/src/usr/local/www/system.php +++ b/src/usr/local/www/system.php @@ -427,7 +427,7 @@ $form = new Form; $section = new Form_Section('System'); $section->addInput(new Form_Input( 'hostname', - 'Hostname', + '*Hostname', 'text', $pconfig['hostname'], ['placeholder' => 'pfSense'] @@ -435,7 +435,7 @@ $section->addInput(new Form_Input( $section->addInput(new Form_Input( 'domain', - 'Domain', + '*Domain', 'text', $pconfig['domain'], ['placeholder' => 'mycorp.com, home, office, private, etc.'] @@ -543,7 +543,7 @@ $section = new Form_Section('Localization'); $section->addInput(new Form_Select( 'timezone', - 'Timezone', + '*Timezone', $pconfig['timezone'], array_combine($timezonelist, $timezonedesc) ))->setHelp('Select a geographic region name (Continent/Location) to determine the timezone for the firewall. ' . @@ -559,7 +559,7 @@ $section->addInput(new Form_Input( $section->addInput(new Form_Select( 'language', - 'Language', + '*Language', $pconfig['language'], get_locale_list() ))->setHelp('Choose a language for the webConfigurator'); diff --git a/src/usr/local/www/system_advanced_sysctl.php b/src/usr/local/www/system_advanced_sysctl.php index 4ed96cc..7ccd42e 100644 --- a/src/usr/local/www/system_advanced_sysctl.php +++ b/src/usr/local/www/system_advanced_sysctl.php @@ -202,14 +202,14 @@ if ($act != "edit"): ?> $section->addInput(new Form_Input( 'tunable', - 'Tunable', + '*Tunable', 'text', $pconfig['tunable'] ))->setWidth(4); $section->addInput(new Form_Input( 'value', - 'Value', + '*Value', 'text', $pconfig['value'] ))->setWidth(4); diff --git a/src/usr/local/www/system_authservers.php b/src/usr/local/www/system_authservers.php index 7e52670..67953c2 100644 --- a/src/usr/local/www/system_authservers.php +++ b/src/usr/local/www/system_authservers.php @@ -490,14 +490,14 @@ $section = new Form_Section('Server Settings'); $section->addInput($input = new Form_Input( 'name', - 'Descriptive name', + '*Descriptive name', 'text', $pconfig['name'] )); $section->addInput($input = new Form_Select( 'type', - 'Type', + '*Type', $pconfig['type'], $auth_server_types ))->toggles(); @@ -513,7 +513,7 @@ if (!isset($pconfig['type']) || $pconfig['type'] == 'ldap') $section->addInput(new Form_Input( 'ldap_host', - 'Hostname or IP address', + '*Hostname or IP address', 'text', $pconfig['ldap_host'] ))->setHelp('NOTE: When using SSL or STARTTLS, this hostname MUST match the Common Name '. @@ -521,14 +521,14 @@ $section->addInput(new Form_Input( $section->addInput(new Form_Input( 'ldap_port', - 'Port value', + '*Port value', 'number', $pconfig['ldap_port'] )); $section->addInput(new Form_Select( 'ldap_urltype', - 'Transport', + '*Transport', $pconfig['ldap_urltype'], array_combine(array_keys($ldap_urltypes), array_keys($ldap_urltypes)) )); @@ -558,7 +558,7 @@ else $section->addInput(new Form_Select( 'ldap_protver', - 'Protocol version', + '*Protocol version', $pconfig['ldap_protver'], array_combine($ldap_protvers, $ldap_protvers) )); @@ -575,7 +575,7 @@ $group = new Form_Group('Search scope'); $SSF = new Form_Select( 'ldap_scope', - 'Level', + '*Level', $pconfig['ldap_scope'], $ldap_scopes ); @@ -596,7 +596,7 @@ $section->addInput(new Form_StaticText( $group = new Form_Group('Authentication containers'); $group->add(new Form_Input( 'ldapauthcontainers', - 'Containers', + '*Containers', 'text', $pconfig['ldap_authcn'] ))->setHelp('Note: Semi-Colon separated. This will be prepended to the search '. @@ -638,7 +638,7 @@ $section->addInput(new Form_Checkbox( $pconfig['ldap_anon'] )); -$group = new Form_Group('Bind credentials'); +$group = new Form_Group('*Bind credentials'); $group->addClass('ldapanon'); $group->add(new Form_Input( @@ -673,21 +673,21 @@ if (!isset($id)) { $section->addInput(new Form_Input( 'ldap_attr_user', - 'User naming attribute', + '*User naming attribute', 'text', $pconfig['ldap_attr_user'] )); $section->addInput(new Form_Input( 'ldap_attr_group', - 'Group naming attribute', + '*Group naming attribute', 'text', $pconfig['ldap_attr_group'] )); $section->addInput(new Form_Input( 'ldap_attr_member', - 'Group member attribute', + '*Group member attribute', 'text', $pconfig['ldap_attr_member'] )); @@ -733,28 +733,28 @@ $section->addClass('toggle-radius collapse'); $section->addInput(new Form_Select( 'radius_protocol', - 'Protocol', + '*Protocol', $pconfig['radius_protocol'], $radius_protocol )); $section->addInput(new Form_Input( 'radius_host', - 'Hostname or IP address', + '*Hostname or IP address', 'text', $pconfig['radius_host'] )); $section->addInput(new Form_Input( 'radius_secret', - 'Shared Secret', + '*Shared Secret', 'password', $pconfig['radius_secret'] )); $section->addInput(new Form_Select( 'radius_srvcs', - 'Services offered', + '*Services offered', $pconfig['radius_srvcs'], $radius_srvcs )); @@ -901,6 +901,19 @@ events.push(function() { $('#ldap_port').val('389'); } + function set_required_port_fields() { + if (document.getElementById("radius_srvcs").value == 'auth') { + setRequired('radius_auth_port', true); + setRequired('radius_acct_port', false); + } else if (document.getElementById("radius_srvcs").value == 'acct') { + setRequired('radius_auth_port', false); + setRequired('radius_acct_port', true); + } else { // both + setRequired('radius_auth_port', true); + setRequired('radius_acct_port', true); + } + } + // Hides all elements of the specified class. This will usually be a section function hideClass(s_class, hide) { if (hide) @@ -935,6 +948,7 @@ events.push(function() { hideClass('ldapanon', $('#ldap_anon').prop('checked')); hideClass('extended', !$('#ldap_extended_enabled').prop('checked')); + set_required_port_fields(); if ($('#ldap_port').val() == "") set_ldap_port(); @@ -976,6 +990,10 @@ events.push(function() { hideClass('extended', !this.checked); }); + $('#radius_srvcs').on('change', function() { + set_required_port_fields(); + }); + }); //]]> </script> diff --git a/src/usr/local/www/system_camanager.php b/src/usr/local/www/system_camanager.php index 4cb9c99..cdee6d1 100644 --- a/src/usr/local/www/system_camanager.php +++ b/src/usr/local/www/system_camanager.php @@ -482,7 +482,7 @@ $section = new Form_Section('Create / Edit CA'); $section->addInput(new Form_Input( 'descr', - 'Descriptive name', + '*Descriptive name', 'text', $pconfig['descr'] )); @@ -490,7 +490,7 @@ $section->addInput(new Form_Input( if (!isset($id) || $act == "edit") { $section->addInput(new Form_Select( 'method', - 'Method', + '*Method', $pconfig['method'], $ca_methods ))->toggles(); @@ -503,7 +503,7 @@ $section->addClass('toggle-existing collapse'); $section->addInput(new Form_Textarea( 'cert', - 'Certificate data', + '*Certificate data', $pconfig['cert'] ))->setHelp('Paste a certificate in X.509 PEM format here.'); @@ -537,7 +537,7 @@ foreach ($a_ca as $ca) { $allCas[ $ca['refid'] ] = $ca['descr']; } -$group = new Form_Group('Signing Certificate Authority'); +$group = new Form_Group('*Signing Certificate Authority'); $group->addClass('toggle-intermediate', 'collapse'); $group->add(new Form_Select( 'caref', @@ -549,14 +549,14 @@ $section->add($group); $section->addInput(new Form_Select( 'keylen', - 'Key length (bits)', + '*Key length (bits)', $pconfig['keylen'], array_combine($ca_keylens, $ca_keylens) )); $section->addInput(new Form_Select( 'digest_alg', - 'Digest Algorithm', + '*Digest Algorithm', $pconfig['digest_alg'], array_combine($openssl_digest_algs, $openssl_digest_algs) ))->setHelp('NOTE: It is recommended to use an algorithm stronger than SHA1 '. @@ -564,21 +564,21 @@ $section->addInput(new Form_Select( $section->addInput(new Form_Input( 'lifetime', - 'Lifetime (days)', + '*Lifetime (days)', 'number', $pconfig['lifetime'] )); $section->addInput(new Form_Select( 'dn_country', - 'Country Code', + '*Country Code', $pconfig['dn_country'], $dn_cc )); $section->addInput(new Form_Input( 'dn_state', - 'State or Province', + '*State or Province', 'text', $pconfig['dn_state'], ['placeholder' => 'e.g. Texas'] @@ -586,7 +586,7 @@ $section->addInput(new Form_Input( $section->addInput(new Form_Input( 'dn_city', - 'City', + '*City', 'text', $pconfig['dn_city'], ['placeholder' => 'e.g. Austin'] @@ -594,7 +594,7 @@ $section->addInput(new Form_Input( $section->addInput(new Form_Input( 'dn_organization', - 'Organization', + '*Organization', 'text', $pconfig['dn_organization'], ['placeholder' => 'e.g. My Company Inc'] @@ -610,7 +610,7 @@ $section->addInput(new Form_Input( $section->addInput(new Form_Input( 'dn_email', - 'Email Address', + '*Email Address', 'email', $pconfig['dn_email'], ['placeholder' => 'e.g. admin@mycompany.com'] @@ -618,7 +618,7 @@ $section->addInput(new Form_Input( $section->addInput(new Form_Input( 'dn_commonname', - 'Common Name', + '*Common Name', 'text', $pconfig['dn_commonname'], ['placeholder' => 'e.g. internal-ca'] diff --git a/src/usr/local/www/system_certmanager.php b/src/usr/local/www/system_certmanager.php index 448f03e..3bcfb4c 100644 --- a/src/usr/local/www/system_certmanager.php +++ b/src/usr/local/www/system_certmanager.php @@ -579,7 +579,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { if (!isset($id)) { $section->addInput(new Form_Select( 'method', - 'Method', + '*Method', $pconfig['method'], $cert_methods ))->toggles(); @@ -587,7 +587,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Input( 'descr', - 'Descriptive name', + '*Descriptive name', 'text', ($a_user && empty($pconfig['descr'])) ? $a_user[$userid]['name'] : $pconfig['descr'] ))->addClass('toggle-existing'); @@ -598,13 +598,13 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Textarea( 'cert', - 'Certificate data', + '*Certificate data', $pconfig['cert'] ))->setHelp('Paste a certificate in X.509 PEM format here.'); $section->addInput(new Form_Textarea( 'key', - 'Private key data', + '*Private key data', $pconfig['key'] ))->setHelp('Paste a private key in X.509 PEM format here.'); @@ -614,7 +614,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { if (!$internal_ca_count) { $section->addInput(new Form_StaticText( - 'Certificate authority', + '*Certificate authority', gettext('No internal Certificate Authorities have been defined. '). gettext('An internal CA must be defined in order to create an internal certificate. '). '<a href="system_camanager.php?act=new&method=internal"> '. gettext("Create") .'</a>'. @@ -632,7 +632,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Select( 'caref', - 'Certificate authority', + '*Certificate authority', $pconfig['caref'], $allCas )); @@ -640,14 +640,14 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Select( 'keylen', - 'Key length', + '*Key length', $pconfig['keylen'], array_combine($cert_keylens, $cert_keylens) )); $section->addInput(new Form_Select( 'digest_alg', - 'Digest Algorithm', + '*Digest Algorithm', $pconfig['digest_alg'], array_combine($openssl_digest_algs, $openssl_digest_algs) ))->setHelp('NOTE: It is recommended to use an algorithm stronger than '. @@ -655,7 +655,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Select( 'type', - 'Certificate Type', + '*Certificate Type', $pconfig['type'], $cert_types ))->setHelp('Type of certificate to generate. Used for placing '. @@ -663,21 +663,21 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Input( 'lifetime', - 'Lifetime (days)', + '*Lifetime (days)', 'number', $pconfig['lifetime'] )); $section->addInput(new Form_Select( 'dn_country', - 'Country Code', + '*Country Code', $pconfig['dn_country'], $dn_cc )); $section->addInput(new Form_Input( 'dn_state', - 'State or Province', + '*State or Province', 'text', $pconfig['dn_state'], ['placeholder' => 'e.g. Texas'] @@ -685,7 +685,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Input( 'dn_city', - 'City', + '*City', 'text', $pconfig['dn_city'], ['placeholder' => 'e.g. Austin'] @@ -693,7 +693,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Input( 'dn_organization', - 'Organization', + '*Organization', 'text', $pconfig['dn_organization'], ['placeholder' => 'e.g. My Company Inc'] @@ -709,7 +709,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Input( 'dn_email', - 'Email Address', + '*Email Address', 'text', $pconfig['dn_email'], ['placeholder' => 'e.g. admin@mycompany.com'] @@ -717,7 +717,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Input( 'dn_commonname', - 'Common Name', + '*Common Name', 'text', $pconfig['dn_commonname'], ['placeholder' => 'e.g. www.example.com'] @@ -782,14 +782,14 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Select( 'csr_keylen', - 'Key length', + '*Key length', $pconfig['csr_keylen'], array_combine($cert_keylens, $cert_keylens) )); $section->addInput(new Form_Select( 'csr_digest_alg', - 'Digest Algorithm', + '*Digest Algorithm', $pconfig['csr_digest_alg'], array_combine($openssl_digest_algs, $openssl_digest_algs) ))->setHelp('NOTE: It is recommended to use an algorithm stronger than '. @@ -797,14 +797,14 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Select( 'csr_dn_country', - 'Country Code', + '*Country Code', $pconfig['csr_dn_country'], $dn_cc )); $section->addInput(new Form_Input( 'csr_dn_state', - 'State or Province', + '*State or Province', 'text', $pconfig['csr_dn_state'], ['placeholder' => 'e.g. Texas'] @@ -812,7 +812,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Input( 'csr_dn_city', - 'City', + '*City', 'text', $pconfig['csr_dn_city'], ['placeholder' => 'e.g. Austin'] @@ -820,7 +820,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Input( 'csr_dn_organization', - 'Organization', + '*Organization', 'text', $pconfig['csr_dn_organization'], ['placeholder' => 'e.g. My Company Inc'] @@ -836,7 +836,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Input( 'csr_dn_email', - 'Email Address', + '*Email Address', 'text', $pconfig['csr_dn_email'], ['placeholder' => 'e.g. admin@mycompany.com'] @@ -844,7 +844,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Input( 'csr_dn_commonname', - 'Common Name', + '*Common Name', 'text', $pconfig['csr_dn_commonname'], ['placeholder' => 'e.g. internal-ca'] @@ -880,7 +880,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Select( 'certref', - 'Existing Certificates', + '*Existing Certificates', $pconfig['certref'], $existCerts )); @@ -896,7 +896,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Input( 'descr', - 'Descriptive name', + '*Descriptive name', 'text', $pconfig['descr'] )); @@ -911,7 +911,7 @@ if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)) { $section->addInput(new Form_Textarea( 'cert', - 'Final certificate data', + '*Final certificate data', $pconfig['cert'] ))->setWidth(7) ->setHelp('Paste the certificate received from the certificate authority here.'); diff --git a/src/usr/local/www/system_crlmanager.php b/src/usr/local/www/system_crlmanager.php index 4bfcc55..836d9a6 100644 --- a/src/usr/local/www/system_crlmanager.php +++ b/src/usr/local/www/system_crlmanager.php @@ -351,7 +351,7 @@ if ($act == "new" || $act == gettext("Save") || $input_errors) { $section->addInput(new Form_Select( 'method', - 'Method', + '*Method', $pconfig['method'], build_method_list() )); @@ -360,14 +360,14 @@ if ($act == "new" || $act == gettext("Save") || $input_errors) { $section->addInput(new Form_Input( 'descr', - 'Descriptive name', + '*Descriptive name', 'text', $pconfig['descr'] )); $section->addInput(new Form_Select( 'caref', - 'Certificate Authority', + '*Certificate Authority', $pconfig['caref'], build_ca_list() )); @@ -379,7 +379,7 @@ if ($act == "new" || $act == gettext("Save") || $input_errors) { $section->addInput(new Form_Textarea( 'crltext', - 'CRL data', + '*CRL data', $pconfig['crltext'] ))->setHelp('Paste a Certificate Revocation List in X.509 CRL format here.'); @@ -425,14 +425,14 @@ if ($act == "new" || $act == gettext("Save") || $input_errors) { $section->addInput(new Form_Input( 'descr', - 'Descriptive name', + '*Descriptive name', 'text', $pconfig['descr'] )); $section->addInput(new Form_Textarea( 'crltext', - 'CRL data', + '*CRL data', $pconfig['crltext'] ))->setHelp('Paste a Certificate Revocation List in X.509 CRL format here.'); diff --git a/src/usr/local/www/system_gateway_groups_edit.php b/src/usr/local/www/system_gateway_groups_edit.php index 432ebec..b5cc167 100644 --- a/src/usr/local/www/system_gateway_groups_edit.php +++ b/src/usr/local/www/system_gateway_groups_edit.php @@ -206,7 +206,7 @@ $section = new Form_Section('Edit Gateway Group Entry'); $section->addInput(new Form_Input( 'name', - 'Group Name', + '*Group Name', 'text', $pconfig['name'] )); @@ -214,14 +214,14 @@ $section->addInput(new Form_Input( $row = 0; $numrows = count($a_gateways) - 1; -$group = new Form_Group('Gateway Priority'); +$group = new Form_Group('*Gateway Priority'); $group->add(new Form_StaticText('', ''))->setReadonly(); $group->add(new Form_StaticText('', ''))->setReadonly(); $group->add(new Form_StaticText('', ''))->setReadonly(); $group->add(new Form_StaticText('', ''))->setWidth(3)->setReadonly(); $section->add($group); -// Determine the protocol familily this group pertains to. We loop through every item +// Determine the protocol family this group pertains to. We loop through every item // just in case any have been removed and so have no family (orphans?) if (is_array($pconfig['item'])) { @@ -323,7 +323,7 @@ $section->addInput(new Form_StaticText( $section->addInput(new Form_Select( 'trigger', - 'Trigger Level', + '*Trigger Level', $pconfig['trigger'], array( '0' => gettext('Member down'), diff --git a/src/usr/local/www/system_gateways_edit.php b/src/usr/local/www/system_gateways_edit.php index 6a65477..b8afd21 100644 --- a/src/usr/local/www/system_gateways_edit.php +++ b/src/usr/local/www/system_gateways_edit.php @@ -598,14 +598,14 @@ $section->addInput(new Form_Checkbox( $section->addInput(new Form_Select( 'interface', - 'Interface', + '*Interface', $pconfig['friendlyiface'], get_configured_interface_with_descr(false, true) ))->setHelp('Choose which interface this gateway applies to.'); $section->addInput(new Form_Select( 'ipprotocol', - 'Address Family', + '*Address Family', $pconfig['ipprotocol'], array( "inet" => "IPv4", @@ -615,7 +615,7 @@ $section->addInput(new Form_Select( $section->addInput(new Form_Input( 'name', - 'Name', + '*Name', 'text', $pconfig['name'] ))->setHelp('Gateway name'); diff --git a/src/usr/local/www/system_groupmanager.php b/src/usr/local/www/system_groupmanager.php index 2bd230e..82524c7 100644 --- a/src/usr/local/www/system_groupmanager.php +++ b/src/usr/local/www/system_groupmanager.php @@ -388,7 +388,7 @@ $section = new Form_Section('Group Properties'); $section->addInput($input = new Form_Input( 'groupname', - 'Group name', + '*Group name', 'text', $pconfig['name'] )); @@ -398,14 +398,14 @@ if ($pconfig['gtype'] == "system") { $section->addInput(new Form_Input( 'gtype', - 'Scope', + '*Scope', 'text', $pconfig['gtype'] ))->setReadonly(); } else { $section->addInput(new Form_Select( 'gtype', - 'Scope', + '*Scope', $pconfig['gtype'], ["local" => gettext("Local"), "remote" => gettext("Remote")] )); diff --git a/src/usr/local/www/system_groupmanager_addprivs.php b/src/usr/local/www/system_groupmanager_addprivs.php index 551426a..dc39542 100644 --- a/src/usr/local/www/system_groupmanager_addprivs.php +++ b/src/usr/local/www/system_groupmanager_addprivs.php @@ -154,7 +154,7 @@ $section = new Form_Section('Add Privileges for '. $a_group['name']); $section->addInput(new Form_Select( 'sysprivs', - 'Assigned privileges', + '*Assigned privileges', $a_group['priv'], build_priv_list(), true diff --git a/src/usr/local/www/system_routes_edit.php b/src/usr/local/www/system_routes_edit.php index 23b2428..3b65dff 100644 --- a/src/usr/local/www/system_routes_edit.php +++ b/src/usr/local/www/system_routes_edit.php @@ -245,7 +245,7 @@ $section = new Form_Section('Edit Route Entry'); $section->addInput(new Form_IpAddress( 'network', - 'Destination network', + '*Destination network', $pconfig['network'], 'ALIASV4V6' ))->addMask('network_subnet', $pconfig['network_subnet'])->setHelp('Destination network for this static route'); @@ -256,7 +256,7 @@ $allGateways = array_combine( ); $section->addInput(new Form_Select( 'gateway', - 'Gateway', + '*Gateway', $pconfig['gateway'], $allGateways ))->setHelp('Choose which gateway this route applies to or <a href="'. diff --git a/src/usr/local/www/system_update_settings.php b/src/usr/local/www/system_update_settings.php index 66aadc2..b1118a7 100644 --- a/src/usr/local/www/system_update_settings.php +++ b/src/usr/local/www/system_update_settings.php @@ -154,7 +154,7 @@ $section = new Form_Section('Firmware Branch'); $section->addInput(new Form_Select( fwbranch, - 'Branch', + '*Branch', get_repo_name($config['system']['pkg_repo_conf_path']), build_repo_list() ))->setHelp('Please select the stable, or the development branch from which to update the system firmware. ' . ' <br />' . diff --git a/src/usr/local/www/system_usermanager.php b/src/usr/local/www/system_usermanager.php index 673630c..6972074 100644 --- a/src/usr/local/www/system_usermanager.php +++ b/src/usr/local/www/system_usermanager.php @@ -708,7 +708,7 @@ if ($act == "new" || $act == "edit" || $input_errors): $section->addInput($input = new Form_Input( 'usernamefld', - 'Username', + '*Username', 'text', $pconfig['usernamefld'] )); @@ -724,7 +724,13 @@ if ($act == "new" || $act == "edit" || $input_errors): $pconfig['usernamefld'] )); - $group = new Form_Group('Password'); + if ($act == "edit") { + $pwd_required = ""; + } else { + $pwd_required = "*"; + } + + $group = new Form_Group($pwd_required . 'Password'); $group->add(new Form_Input( 'passwordfld1', 'Password', diff --git a/src/usr/local/www/system_usermanager_addprivs.php b/src/usr/local/www/system_usermanager_addprivs.php index f132704..dd4c996 100644 --- a/src/usr/local/www/system_usermanager_addprivs.php +++ b/src/usr/local/www/system_usermanager_addprivs.php @@ -144,7 +144,7 @@ $section = new Form_Section('User Privileges'); $section->addInput(new Form_Select( 'sysprivs', - 'Assigned privileges', + '*Assigned privileges', null, build_priv_list(), true diff --git a/src/usr/local/www/system_usermanager_passwordmg.php b/src/usr/local/www/system_usermanager_passwordmg.php index a06868a..87cc791 100644 --- a/src/usr/local/www/system_usermanager_passwordmg.php +++ b/src/usr/local/www/system_usermanager_passwordmg.php @@ -98,13 +98,13 @@ $section = new Form_Section('Update Password'); $section->addInput(new Form_Input( 'passwordfld1', - 'Password', + '*Password', 'password' )); $section->addInput(new Form_Input( 'passwordfld2', - 'Confirmation', + '*Confirmation', 'password' ))->setHelp('Select a new password'); diff --git a/src/usr/local/www/system_usermanager_settings.php b/src/usr/local/www/system_usermanager_settings.php index 7e482ad..c8228f5 100644 --- a/src/usr/local/www/system_usermanager_settings.php +++ b/src/usr/local/www/system_usermanager_settings.php @@ -211,7 +211,7 @@ foreach (auth_get_authserver_list() as $idx_authserver => $auth_server) { $section->addInput(new Form_Select( 'authmode', - 'Authentication Server', + '*Authentication Server', $pconfig['authmode'], $auth_servers )); |