X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_svc.cgi;h=0d36853557b1097b3297a74d05e00da58cbcbb9e;hb=b4aea58e0d04ff1930397e0f96ecdc50748b748b;hp=4549e44ddf931f0a34a8933d5a687a5e0955298d;hpb=b65b8096089410001dfbcd35f9a56f9405b9f5f1;p=freeside.git
diff --git a/httemplate/browse/part_svc.cgi b/httemplate/browse/part_svc.cgi
index 4549e44dd..0d3685355 100755
--- a/httemplate/browse/part_svc.cgi
+++ b/httemplate/browse/part_svc.cgi
@@ -51,6 +51,8 @@ function part_export_areyousure(href) {
Customer Services |
+ Customer Self-service |
+
Export |
Field |
@@ -60,12 +62,14 @@ function part_export_areyousure(href) {
Modifier |
-
+% my $conf = FS::Conf->new;
% foreach my $part_svc ( @part_svc ) {
% my $svcdb = $part_svc->svcdb;
% my $svc_x = "FS::$svcdb"->new( { svcpart => $part_svc->svcpart } );
% my @dfields = $svc_x->fields;
-% push @dfields, 'usergroup' if $svcdb eq 'svc_acct'; #kludge
+% push @dfields, 'usergroup' if $svcdb eq 'svc_acct' #double kludge
+% or ($svcdb eq 'svc_broadband'
+% and $conf->exists('svc_broadband-radius'));
% my @fields =
% grep { my $col = $part_svc->part_svc_column($_);
% my $def = FS::part_svc->svc_table_fields($svcdb)->{$_};
@@ -78,6 +82,7 @@ function part_export_areyousure(href) {
% }
% @dfields ;
% my $rowspan = scalar(@fields) || 1;
+% $rowspan++ if $part_svc->restrict_edit_password;
% my $url = "${p}edit/part_svc.cgi?". $part_svc->svcpart;
%
% if ( $bgcolor eq $bgcolor1 ) {
@@ -117,6 +122,14 @@ function part_export_areyousure(href) {
+% tie my %selfservice_access, 'Tie::IxHash', #false laziness w/edit/part_svc.cgi
+% '' => 'Yes',
+% 'hidden' => 'Hidden',
+% 'readonly' => 'Read-only',
+% ;
+ CLASS="grid" BGCOLOR="<% $bgcolor %>" ALIGN="center">
+ <% $selfservice_access{$part_svc->selfservice_access} %> |
+
CLASS="inv" BGCOLOR="<% $bgcolor %>">
%
@@ -129,16 +142,7 @@ function part_export_areyousure(href) {
%
-
-<% $part_export->exportnum %>:
-% if ($part_export->exportname) {
-<% $part_export->exportname %> (
-% }
-<% $part_export->exporttype %> to <% $part_export->machine %>
-% if ($part_export->exportname) {
-)
-% }
- |
+ <% $part_export->label_html %> |
% }
@@ -171,24 +175,32 @@ function part_export_areyousure(href) {
% my $value = &$formatter($part_svc->part_svc_column($field)->columnvalue);
% if ( $flag =~ /^[MAH]$/ ) {
% my $select_table = ($flag eq 'H') ? 'hardware_class' : 'inventory_class';
-% $select_class{$value} ||=
-% qsearchs($select_table, { 'classnum' => $value } );
+% foreach my $classnum ( split(',', $value) ) {
+% $select_class{$classnum} =
+% qsearchs($select_table, { 'classnum' => $classnum } );
%
- <% $select_class{$value}
- ? $select_class{$value}->classname
- : "WARNING: $select_table.classnum $value not found" %>
+ <% $select_class{$classnum}
+ ? $select_class{$classnum}->classname
+ : "WARNING: $select_table.classnum $classnum not found" %>
+% }
% } else {
<% $value %>
-% }
+% }
% $n1="";
-% }
-%
+% } #foreach $field
+% if ( $part_svc->restrict_edit_password ) {
+
+
+ <% emt('Password editing restricted.') %>
+ |
+
+% }
-% }
+% } #foreach $part_svc
|