X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fradius_group.html;h=d3ef40c5def36f9dfa6c674f3b2c1045e4c32eec;hp=164f0a5815a7ebbf5ed350bb3368cd69e19b0bf0;hb=ac8410cdb67639afeb84c84e975fffadf3e6cce1;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924 diff --git a/httemplate/edit/radius_group.html b/httemplate/edit/radius_group.html index 164f0a581..d3ef40c5d 100644 --- a/httemplate/edit/radius_group.html +++ b/httemplate/edit/radius_group.html @@ -7,8 +7,13 @@ 'description' => 'Description', 'attrnum' => 'Attribute', 'priority' => 'Priority', + 'speed_down' => 'Download speed', + 'speed_up' => 'Upload speed', }, 'viewall_dir' => 'browse', + 'menubar' => \@menubar, + 'edit_callback' => $edit_callback, + 'error_callback' => $edit_callback, 'fields' => [ { 'field' => 'groupname', 'type' => 'text', @@ -25,6 +30,16 @@ 'size' => 2, 'colspan' => 6, # just to not interfere with radius_attr columns }, + { 'field' => 'speed_down', + 'type' => 'text', + 'size' => 8, + 'colspan' => 6, + }, + { 'field' => 'speed_up', + 'type' => 'text', + 'size' => 8, + 'colspan' => 6, + }, { 'field' => 'attrnum', 'type' => 'radius_attr', @@ -40,6 +55,16 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); +my @menubar = ('View all RADIUS Groups' => $p.'browse/radius_group.html'); + +my $edit_callback = sub { + my ($cgi, $object) = @_; + if ( $object->groupnum ) { + my $link = $p.'misc/delete-radius_group.html?'.$object->groupnum; + push @menubar, 'Delete this Group', $link; + } +}; + my $m2_error_callback = sub { # reconstruct the list my ($cgi, $object) = @_;