[Netpass-devel] NetPass/www/htdocs/Admin gencfg.mhtml,1.11,1.12
Brought to you by:
jeffmurphy
From: jeff m. <jef...@us...> - 2005-05-01 17:39:17
|
Update of /cvsroot/netpass/NetPass/www/htdocs/Admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv809/www/htdocs/Admin Modified Files: gencfg.mhtml Log Message: gencfg lock/unlock gui fixes Index: gencfg.mhtml =================================================================== RCS file: /cvsroot/netpass/NetPass/www/htdocs/Admin/gencfg.mhtml,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- gencfg.mhtml 1 May 2005 05:44:12 -0000 1.11 +++ gencfg.mhtml 1 May 2005 17:39:08 -0000 1.12 @@ -27,8 +27,6 @@ <%perl> -use Config::General; - my ($isRoot, $groups) = $m->comp('/Admin/MemberOf', 'group' => 'default', 'acl' => [ 'Admin' ]); if (! $isRoot ) { @@ -36,8 +34,6 @@ return; } -my %config = $np->cfg->{'cfg'}->getall(); - my $restartnetpass = 0; my $restartnessus = 0; my $restarthttpd = 0; @@ -81,9 +77,10 @@ <h2>General Configuration</h2> +<input disabled id='submitButton' type='submit' name='submit' value='Commit Changes'> <P> + % $m->comp('/Admin/LockConfig', 'enableWhenLocked' => 'submitButton'); -<input id='submitButton' type='submit' name='submit' value='Commit Changes'> <P> <TABLE WIDTH=800 ID="policyConfig" class="expandable" CELLSPACING=2 CELLPADDING=2> <THEAD> @@ -102,6 +99,15 @@ <!--<a href="help.mhtml?printable=1&topic=MULTI_MAC" target='new' style='align:right;'>?</a>--> </TD></TR> <TR> +<TD CLASS='left'>Strikes</TD> +<TD CLASS='right'> +<%$q->textfield ( + -name => 'policy:STRIKES', + -value => $np->cfg->policy(-key => 'STRIKES'), + -size => 3, + )%> +</TD></TR> +<TR> <TD CLASS='left'>RESULTS_DISPLAY</TD> <TD CLASS='right'> <%$q->popup_menu ( |