[freeside-commits] freeside/httemplate/browse radius_group.html, 1.1, 1.2

Mark Wells mark at wavetail.420.am
Wed Nov 23 10:39:08 PST 2011


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

Modified Files:
	radius_group.html 
Log Message:
RADIUS group attributes, #15017

Index: radius_group.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/radius_group.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- radius_group.html	21 Jun 2011 01:04:55 -0000	1.1
+++ radius_group.html	23 Nov 2011 18:39:06 -0000	1.2
@@ -4,14 +4,16 @@
                  'menubar'     => [ 'Add a RADIUS Group' => $p.'edit/radius_group.html', ],
                  'query'       => { 'table' => 'radius_group' },
                  'count_query' => 'SELECT COUNT(*) FROM radius_group',
-                 'header'      => [ '#', 'RADIUS Group', 'Description' ],
+  'header'      => [ '#', 'RADIUS Group', 'Description', 'Priority',
+                     'Check', 'Reply' ],
                  'fields'      => [ 'groupnum',
                                     'groupname',
                                     'description',
+                     'priority',
+                     $check_attr, $reply_attr
                                   ],
-                 'links'       => [ [ $p.'edit/radius_group.html?', 'groupnum' ],
-                                    '',
-                                    '',
+  'align'       => 'lllcll',
+  'links'       => [ $link, $link, '', '', '', '',
                                   ],
 &>
 <%init>
@@ -21,4 +23,18 @@
 die "access denied"
   unless $curuser->access_right('Configuration');
 
+my $attr_sub = sub {
+  my $type = shift;
+  my $radius_group = shift;
+  [ map { [ { data => join(' ', $_->attrname, $_->op, $_->value) } ] }
+    grep {$_->attrtype eq $type} 
+      $radius_group->radius_attr
+  ];
+};
+
+my $check_attr = sub { &$attr_sub('C', @_) };
+my $reply_attr = sub { &$attr_sub('R', @_) };
+
+my $link = [ $p.'edit/radius_group.html?', 'groupnum' ];
+
 </%init>



More information about the freeside-commits mailing list