X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fsvc_acct.cgi;h=44c23f4d235b211142e1d42bc961d4b8d9423361;hp=f80c8299820eb923a4fc918cdf0d5d78bb2c228d;hb=b5dbd9e1bcbb701a20ed23e723b1e0105fd7c1a1;hpb=d884f87c167fa00a24b2347c46606585b8420657 diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index f80c82998..44c23f4d2 100755 --- a/httemplate/edit/svc_acct.cgi +++ b/httemplate/edit/svc_acct.cgi @@ -1,11 +1,11 @@ -<& /elements/header.html, "$action $svc account" &> +<& /elements/header.html, emt("$action [_1] account",$svc) &> -<% include('/elements/error.html') %> +<& /elements/error.html &> % if ( $cust_main ) { - <% include( '/elements/small_custview.html', $cust_main, '', 1, - popurl(2) . "view/cust_main.cgi") %> + <& /elements/small_custview.html, $cust_main, '', 1, + popurl(2) . "view/cust_main.cgi" &>
% } @@ -27,17 +27,24 @@ function randomPass() { -Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
+% if ( $svcnum ) { +% my $svclabel = emt("Service #[_1]",$svcnum); +% $svclabel =~ s/$svcnum/$svcnum<\/B>/; +<% $svclabel %> +% } else { +<% mt("Service # (NEW)") |h %> +% } +
<% ntable("#cccccc",2) %> - Service + <% mt('Service') |h %> <% $part_svc->svc %> - Username + <% mt('Username') |h %> MAXLENGTH=<% $ulen %>> @@ -45,10 +52,10 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
%if ( $part_svc->part_svc_column('_password')->columnflag ne 'F' ) { - Password + <% mt('Password') |h %> MAXLENGTH=<% $pmax %>> - + %}else{ @@ -59,19 +66,16 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
%my $sec_phrase = $svc_acct->sec_phrase; %if ( $conf->exists('security_phrase') % && $part_svc->part_svc_column('sec_phrase')->columnflag ne 'F' ) { -% - - Security phrase + <% mt('Security phrase') |h %> - (for forgotten passwords) + (<% mt('for forgotten passwords') |h %>) % } else { - % } % @@ -80,7 +84,6 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
%if ( $part_svc->part_svc_column('domsvc')->columnflag eq 'F' ) { % - % } else { % @@ -100,11 +103,9 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
% 'pkgnum' => $pkgnum, % ) % ); -% - - Domain + <% mt('Domain') |h %> @@ -136,25 +136,22 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
% } -<% include('/elements/tr-select-svc_pbx.html', +<& /elements/tr-select-svc_pbx.html, 'curr_value' => $svc_acct->pbxsvc, 'part_svc' => $part_svc, 'cust_pkg' => $cust_pkg, - ) -%> +&> %#pop %my $popnum = $svc_acct->popnum || 0; %if ( $part_svc->part_svc_column('popnum')->columnflag eq 'F' ) { % - % } else { - - Access number + <% mt('Access number') |h %> <% FS::svc_acct_pop::popselector($popnum) %> % } @@ -167,7 +164,6 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
% % if ( length($svc_acct->$xid()) ) { - <% uc($xid) %> <% $svc_acct->$xid() %> @@ -175,11 +171,9 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
% } - % } else { - <% uc($xid) %> @@ -195,13 +189,12 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
% && ! $svc_acct->finger ) { % - % } else { - Real Name + <% mt('Real Name') |h %> @@ -219,7 +212,7 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
- Home directory + <% mt('Home directory') |h %> % } @@ -231,13 +224,12 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
% ) { % - % } else { - Shell + <% mt('Shell') |h %> % } else { - IP + <% mt('IP') |h %> % } @@ -280,12 +270,12 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
% my $tf = $uf . "_threshold"; % if ( $curuser->access_right('Edit usage') ) { - <% $label{$uf} %> remaining - (blank disables) + <% mt("[_1] remaining",$label{$uf}) |h %> + (<% mt('blank disables') |h %>) - <% $label{$uf} %> threshold - (blank disables) + <% mt("[_1] threshold",$label{$uf}) |h %> + (<% mt('blank disables') |h %>) % }else{ @@ -299,11 +289,9 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
% % if ( $part_svc->part_svc_column($r)->columnflag =~ /^[FA]$/ ) { - % } else { - <% $FS::raddb::attrib{$a} %> @@ -312,37 +300,31 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
% } - - RADIUS groups + <% mt('RADIUS groups') |h %> % if ( $part_svc->part_svc_column('usergroup')->columnflag eq 'F' ) { - <% join('
', @groups) %> % } else { - <% FS::svc_acct::radius_usergroup_selector( \@groups ) %> % } - % foreach my $field ($svc_acct->virtual_fields) { % # If the flag is X, it won't even show up in $svc_acct->virtual_fields. % if ( $part_svc->part_svc_column($field)->columnflag ne 'F' ) { - <% $svc_acct->pvf($field)->widget('HTML', 'edit', $svc_acct->getfield($field)) %> % } % } -
% if ( $captcha_url ) {
-Enter the word shown above:
+<% mt('Enter the word shown above:') |h %>

% } @@ -350,7 +332,7 @@ Enter the word shown above:
-<% include('/elements/footer.html') %> +<& /elements/footer.html &> <%init>