[freeside-commits] freeside/httemplate/edit svc_acct.cgi, 1.74, 1.75 part_svc.cgi, 1.78, 1.79 radius_group.html, NONE, 1.1
Erik Levinson
levinse at wavetail.420.am
Mon Jun 20 18:04:57 PDT 2011
- Previous message: [freeside-commits] freeside/httemplate/elements menu.html, 1.126, 1.127 select-radius_group.html, NONE, 1.1
- Next message: [freeside-commits] freeside/FS/FS svc_acct.pm, 1.313, 1.314 radius_usergroup.pm, 1.2, 1.3 part_svc.pm, 1.37, 1.38 Upgrade.pm, 1.48, 1.49 Schema.pm, 1.306, 1.307 radius_group.pm, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv28316/httemplate/edit
Modified Files:
svc_acct.cgi part_svc.cgi
Added Files:
radius_group.html
Log Message:
re-write RADIUS groups, RT13274
Index: part_svc.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/part_svc.cgi,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -w -d -r1.78 -r1.79
--- part_svc.cgi 1 Apr 2011 02:52:13 -0000 1.78
+++ part_svc.cgi 21 Jun 2011 01:04:55 -0000 1.79
@@ -314,32 +314,15 @@
% qq!<TEXTAREA NAME="${layer}__${field}">!. encode_entities($value).
% '</TEXTAREA>';
%
-% } elsif ( $def->{type} eq 'select-svc_pbx.html' ) {
-%
-% $html .= include('/elements/select-svc_pbx.html',
-% 'curr_value' => $value,
-% 'element_name' => "${layer}__${field}",
-% 'element_etc' => $disabled,
-% 'multiple' => ($flag eq 'S'),
-% );
-%
-% } elsif ( $def->{type} eq 'select-lnp_status.html' ) {
+% } elsif ( $def->{type} =~ /select-(.*?).html/ ) {
%
-% $html .= include('/elements/select-lnp_status.html',
+% $html .= include("/elements/".$def->{type},
% 'curr_value' => $value,
% 'element_name' => "${layer}__${field}",
% 'element_etc' => $disabled,
% 'multiple' => ($flag eq 'S'),
% );
%
-% } elsif ( $def->{type} eq 'radius_usergroup_selector' ) {
-%
-% #XXX disable the RADIUS usergroup selector? ugh it sure does need
-% #an overhaul, people have dum group problems because of it
-%
-% $html .= FS::svc_acct::radius_usergroup_selector(
-% [ split(',', $value) ], "${layer}__${field}" );
-%
% } elsif ( $def->{type} eq 'communigate_pro-accessmodes' ) {
%
% $html .= include('/elements/communigate_pro-accessmodes.html',
--- NEW FILE: radius_group.html ---
<& elements/edit.html,
'name' => 'RADIUS Group',
'table' => 'radius_group',
'labels' => {
'groupnum' => 'Group',
'groupname' => 'RADIUS Group',
'description' => 'Description',
},
'viewall_dir' => 'browse',
&>
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
</%init>
Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/svc_acct.cgi,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -w -d -r1.74 -r1.75
--- svc_acct.cgi 27 May 2011 02:25:41 -0000 1.74
+++ svc_acct.cgi 21 Jun 2011 01:04:55 -0000 1.75
@@ -302,12 +302,21 @@
<TR>
<TD ALIGN="right"><% mt('RADIUS groups') |h %></TD>
-% if ( $part_svc->part_svc_column('usergroup')->columnflag eq 'F' ) {
-
+% if ( $part_svc_usergroup->columnflag eq 'F' ) {
<TD BGCOLOR="#eeeeee"><% join('<BR>', @groups) %></TD>
% } else {
-
- <TD><% FS::svc_acct::radius_usergroup_selector( \@groups ) %></TD>
+% my $radius_group_selected = '';
+% if ( $svc_acct->svcnum ) {
+% $radius_group_selected = join(',',$svc_acct->radius_groups('NUMBERS'));
+% }
+% elsif ( !$svc_acct->svcnum && $part_svc_usergroup->columnflag eq 'D' ) {
+% $radius_group_selected = $part_svc_usergroup->columnvalue;
+% }
+ <TD><& /elements/select-radius_group.html,
+ curr_value => $radius_group_selected,
+ element_name => 'radius_usergroup',
+ &>
+ </TD>
% }
</TR>
@@ -433,9 +442,10 @@
}
+my $part_svc_usergroup = $part_svc->part_svc_column('usergroup');
#fixed radius groups always override & display
-if ( $part_svc->part_svc_column('usergroup')->columnflag eq 'F' ) {
- @groups = split(',', $part_svc->part_svc_column('usergroup')->columnvalue);
+if ( $part_svc_usergroup->columnflag eq 'F' ) {
+ @groups = split(',', $part_svc_usergroup->columnvalue);
}
my $action = $svcnum ? 'Edit' : 'Add';
- Previous message: [freeside-commits] freeside/httemplate/elements menu.html, 1.126, 1.127 select-radius_group.html, NONE, 1.1
- Next message: [freeside-commits] freeside/FS/FS svc_acct.pm, 1.313, 1.314 radius_usergroup.pm, 1.2, 1.3 part_svc.pm, 1.37, 1.38 Upgrade.pm, 1.48, 1.49 Schema.pm, 1.306, 1.307 radius_group.pm, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list