From 491a91dbfcbdeb138670e56678cef64a9f72febd Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 20 Feb 2022 19:51:06 -0800 Subject: [PATCH] Use ui-lib --- bandwidth/acl_security.pl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bandwidth/acl_security.pl b/bandwidth/acl_security.pl index 83b886b64..673451084 100755 --- a/bandwidth/acl_security.pl +++ b/bandwidth/acl_security.pl @@ -5,17 +5,16 @@ do 'bandwidth-lib.pl'; # Output HTML for editing security options for the acl module sub acl_security_form { -print " $text{'acl_setup'} \n"; -printf " $text{'yes'}\n", - $o->{'setup'} ? 'checked' : ''; -printf " $text{'no'} \n", - $o->{'setup'} ? '' : 'checked'; +my ($o) = @_; +print &ui_table_row($text{'acl_setup'}, + &ui_yesno_radio("setup", $o->{'setup'})); } # acl_security_save(&options) # Parse the form for security options for the acl module sub acl_security_save { -$_[0]->{'setup'} = $in{'setup'}; +my ($o) = @_; +$o->{'setup'} = $in{'setup'}; }