[freeside-commits] freeside/httemplate/elements menu.html, 1.126, 1.127 select-radius_group.html, NONE, 1.1

Erik Levinson levinse at wavetail.420.am
Mon Jun 20 18:04:57 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv28316/httemplate/elements

Modified Files:
	menu.html 
Added Files:
	select-radius_group.html 
Log Message:
re-write RADIUS groups, RT13274

--- NEW FILE: select-radius_group.html ---
<SELECT MULTIPLE NAME = "<% $opt{'element_name'} || $opt{'field'} || 'usergroup' %>"
        <% $opt{'element_etc'} %>
>
% foreach my $selopt ( keys %groups ) {
%  my $selected = (grep{ $_ eq $selopt } @sel_groups) ? 'SELECTED' : '';
    <OPTION VALUE="<%$selopt%>" <% $selected %>><% $groups{$selopt} %></OPTION>
% }
</SELECT>
<%init>

my %opt = @_;

my %groups = map { $_->groupnum => $_->description . " (" . $_->groupname . ")" }
                                                    qsearch('radius_group', {});
my @sel_groups = split(/,/,$opt{'curr_value'});

</%init>

Index: menu.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/menu.html,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -w -d -r1.126 -r1.127
--- menu.html	3 Jun 2011 18:59:04 -0000	1.126
+++ menu.html	21 Jun 2011 01:04:55 -0000	1.127
@@ -545,6 +545,9 @@
 $config_misc{'Hardware types'} = [ $fsurl.'browse/hardware_class.html', 'Set up hardware type catalog' ]
   if $curuser->access_right('Configuration');
 
+$config_misc{'RADIUS Groups'} = [ $fsurl.'browse/radius_group.html', 'Manage RADIUS groups' ]
+  if $curuser->access_right('Configuration');
+
 tie my %config_menu, 'Tie::IxHash';
 if ( $curuser->access_right('Configuration' ) ) {
   %config_menu = (



More information about the freeside-commits mailing list