]> git.ipfire.org Git - people/fbuehrle/ipfire-2.x.git/commitdiff
Replaced tabs with spaces vlan
authorFlorian Bührle <flo@erdlof.org>
Sat, 11 May 2019 10:20:02 +0000 (12:20 +0200)
committerFlorian Bührle <flo@erdlof.org>
Sat, 11 May 2019 10:20:02 +0000 (12:20 +0200)
html/cgi-bin/zoneconf.cgi

index 14ff22decaf714f78ae59e8600ef6b05e63670d0..9329805af3ee3aab15e90ceb9d5e064d5c41b35b 100644 (file)
@@ -28,76 +28,76 @@ require "${General::swroot}/header.pl";
 
 my $css = <<END
 <style>
-       table {
-               width: 100%;
-       }
-
-       tr {
-               height: 4em;
-       }
-
-       td:first-child {
-               width: 1px;
-       }
-
-       td {
-               padding: 5px;
-               padding-left: 10px;
-               padding-right: 10px;
-               border: 0.5px solid black;
-       }
-
-       table {
-               border-collapse: collapse;
-       }
-
-       td.h {
-               background-color: grey;
-               color: white;
-               font-weight: 800;
-       }
-
-       td.green {
-               background-color: $Header::colourgreen;
-       }
-
-       td.red {
-               background-color: $Header::colourred;
-       }
-
-       td.blue {
-               background-color: $Header::colourblue;
-       }
-
-       td.orange {
-               background-color: $Header::colourorange;
-       }
-
-       td.topleft {
-               background-color: white;
-               border-top-style: none;
-               border-left-style: none;
-       }
-
-       td.disabled {
-               background-color: #cccccc;
-       }
-
-       td.textcenter {
-               text-align: center;
-       }
-
-       #submit-container {
-               display: flex;
-               width: 100%;
-               justify-content: space-between;
-               padding-top: 20px;
-               text-align: left;
-       }
-
-       #submit-container.input {
-               margin-left: auto;
-       }
+    table {
+        width: 100%;
+    }
+
+    tr {
+        height: 4em;
+    }
+
+    td:first-child {
+        width: 1px;
+    }
+
+    td {
+        padding: 5px;
+        padding-left: 10px;
+        padding-right: 10px;
+        border: 0.5px solid black;
+    }
+
+    table {
+        border-collapse: collapse;
+    }
+
+    td.h {
+        background-color: grey;
+        color: white;
+        font-weight: 800;
+    }
+
+    td.green {
+        background-color: $Header::colourgreen;
+    }
+
+    td.red {
+        background-color: $Header::colourred;
+    }
+
+    td.blue {
+        background-color: $Header::colourblue;
+    }
+
+    td.orange {
+        background-color: $Header::colourorange;
+    }
+
+    td.topleft {
+        background-color: white;
+        border-top-style: none;
+        border-left-style: none;
+    }
+
+    td.disabled {
+        background-color: #cccccc;
+    }
+
+    td.textcenter {
+        text-align: center;
+    }
+
+    #submit-container {
+        display: flex;
+        width: 100%;
+        justify-content: space-between;
+        padding-top: 20px;
+        text-align: left;
+    }
+
+    #submit-container.input {
+        margin-left: auto;
+    }
 
     button {
         margin-top: 1em;
@@ -244,7 +244,7 @@ if ($cgiparams{"ACTION"} eq $Lang::tr{"save"}) {
                 }
                 if ($vlan_tag < 1 || $vlan_tag > 4095) {
                     next;
-                               }
+                }
 
                 my $rnd_mac = &Network::random_mac();
 
@@ -296,10 +296,10 @@ if ($cgiparams{"ACTION"} eq $Lang::tr{"save"}) {
 ### START OF TABLE ###
 
 print <<END
-       <form method='post' enctype='multipart/form-data'>
-               <table>
-                       <tr>
-                       <td class="h topleft" /td>
+    <form method='post' enctype='multipart/form-data'>
+        <table>
+            <tr>
+            <td class="h topleft" /td>
 END
 ;
 
@@ -319,7 +319,7 @@ foreach (@zones) {
 
     if ($dev_name eq "") { # If the zone is not activated, don't show it
         next;
-       }
+    }
 
     print "<tr>";
 
@@ -428,12 +428,12 @@ END
 }
 
 print <<END
-       </table>
-               <div id="submit-container">
-                       <font color="red">$Lang::tr{"zoneconf warning incorrect configuration"}</font>
-                       <input type="submit" name="ACTION" value="$Lang::tr{"save"}">
-               </div>
-       </form>
+    </table>
+        <div id="submit-container">
+            <font color="red">$Lang::tr{"zoneconf warning incorrect configuration"}</font>
+            <input type="submit" name="ACTION" value="$Lang::tr{"save"}">
+        </div>
+    </form>
 END
 ;