add back-office xmlrpc api and daemon, RT#27958
[freeside.git] / httemplate / config / config-view.cgi
index 02acd58..8472dd6 100644 (file)
@@ -34,11 +34,11 @@ invoice language options:
 <form action="<% $cgi->self_url %>" method="GET" style="display:inline;">
 <& /elements/select.html,
     'field' => 'locale',
-    'options' => [ '', @locales ],
+    'options' => [ '', grep { $_ ne 'en_US'} @locales ],
     'labels'  => { map { 
         my %info = FS::Locales->locale_info($_);
         $_ => "$info{name} ($info{country})"
-    } @locales },
+    } grep { $_ ne 'en_US' } @locales },
     'curr_value' => $locale,
     'id' => 'select-locale',
     'onchange' => 'changeLocale'
@@ -211,7 +211,7 @@ invoice language options:
 %   } elsif ( $type eq 'checkbox' ) {
 
             <tr>
-              <td id="<% $agentnum.$i->key.$n %>" bgcolor="#<% $conf->exists($i->key, $agentnum) ? '00ff00">YES' : 'ff0000">NO' %></td>
+              <td id="<% $agentnum.$i->key.$n %>" bgcolor="#<% $conf->config_bool($i->key, $agentnum) ? '00ff00">YES' : 'ff0000">NO' %></td>
             </tr>
 
 %   } elsif ( $type eq 'select' && $i->select_hash ) {
@@ -415,8 +415,10 @@ my @config_items = grep { !defined($locale) or $_->per_locale }
 my @deleteable = qw( invoice_latexreturnaddress invoice_htmlreturnaddress );
 my %deleteable = map { $_ => 1 } @deleteable;
 
-my @sections = qw(required billing invoicing notification UI self-service ticketing network_monitoring username password session shell BIND telephony );
-push @sections, '', 'deprecated';
+my @sections = qw(
+  required billing invoicing notification UI API self-service ticketing
+  network_monitoring username password session shell BIND telephony
+), '', 'deprecated';
 
 my %section_items = ();
 foreach my $section (@sections) {