]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
captive: Reindent code for better readability
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Oct 2017 11:43:42 +0000 (12:43 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Oct 2017 11:43:42 +0000 (12:43 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/captive.cgi

index e416c566a3597fa78ccdeaa1746db9177629d67f..629acaee2be4420322eb750f836298fff1567408 100755 (executable)
@@ -251,7 +251,6 @@ if ($errormessage) {
 print <<END
        <form method='post' action='$ENV{'SCRIPT_NAME'}' enctype="multipart/form-data">\n
                <table width='100%' border="0">
-               <tr>
 END
 ;
 
@@ -274,14 +273,34 @@ $selected{'AUTH'}{'TERMS'} = "";
 $selected{'AUTH'}{$settings{'AUTH'}} = "selected";
 
 if ($netsettings{'GREEN_DEV'}){
-       print "<td width='30%'>$Lang::tr{'Captive active on'} <font color='$Header::colourgreen'>$Lang::tr{'green'}</font></td><td><input type='checkbox' name='ENABLE_GREEN' $checked{'ENABLE_GREEN'}{'on'} /></td></tr>";
+       print <<END;
+               <tr>
+                       <td width='30%'>
+                               $Lang::tr{'Captive active on'}
+                               <font color='$Header::colourgreen'>$Lang::tr{'green'}</font>
+                       </td>
+                       <td>
+                               <input type='checkbox' name='ENABLE_GREEN' $checked{'ENABLE_GREEN'}{'on'} />
+                       </td>
+               </tr>
+END
 }
+
 if ($netsettings{'BLUE_DEV'}){
-       print "<td width='30%'>$Lang::tr{'Captive active on'} <font color='$Header::colourblue'>$Lang::tr{'blue'}</font></td><td><input type='checkbox' name='ENABLE_BLUE' $checked{'ENABLE_BLUE'}{'on'} /></td></tr>";
+       print <<END;
+               <tr>
+                       <td width='30%'>
+                               $Lang::tr{'Captive active on'}
+                               <font color='$Header::colourblue'>$Lang::tr{'blue'}</font>
+                       </td>
+                       <td>
+                               <input type='checkbox' name='ENABLE_BLUE' $checked{'ENABLE_BLUE'}{'on'} />
+                       </td>
+               </tr>
+END
 }
 
 print<<END
-       </tr>
        <tr>
                <td>
                        $Lang::tr{'Captive authentication'}