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;
}
if ($vlan_tag < 1 || $vlan_tag > 4095) {
next;
- }
+ }
my $rnd_mac = &Network::random_mac();
### 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
;
if ($dev_name eq "") { # If the zone is not activated, don't show it
next;
- }
+ }
print "<tr>";
}
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
;