add voice-vlan

This commit is contained in:
Adrien MALINGREY 2023-10-04 18:21:37 +02:00
parent c1eccd205c
commit 50811316d9
2 changed files with 10 additions and 7 deletions

View File

@ -1,6 +1,4 @@
*{ *{
color-adjust: exact;
-webkit-print-color-adjust: exact;
print-color-adjust: exact; print-color-adjust: exact;
} }
:root { :root {
@ -32,6 +30,7 @@ td {
border: 2px inset; border: 2px inset;
} }
.interface { .interface {
position: relative;
text-align: center; text-align: center;
min-width: 2em; min-width: 2em;
height: 2em; height: 2em;
@ -42,7 +41,6 @@ td {
background-color: hsl(calc(var(--k)*var(--pvid)) 100% 60%); background-color: hsl(calc(var(--k)*var(--pvid)) 100% 60%);
} }
.trunk { .trunk {
position: relative;
font-weight: bold; font-weight: bold;
border: 4px solid !important; border: 4px solid !important;
border-image-slice: 1 !important; border-image-slice: 1 !important;
@ -58,13 +56,17 @@ td {
background-image: none !important; background-image: none !important;
color: gray !important; color: gray !important;
} }
.poe { .poe::before {
position: relative;
}
.poe::after {
content: "⚡"; content: "⚡";
font-size: 0.7em; font-size: 0.7em;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
} }
.voice-vlan::after {
content: "📞";
font-size: 0.7em;
position: absolute;
bottom: 0;
left: 0;
}

View File

@ -77,6 +77,7 @@ foreach ($vlans as $vlan) {
<tr><td class='interface trunk'></td><td colspan='2'>Trunk</td></tr> <tr><td class='interface trunk'></td><td colspan='2'>Trunk</td></tr>
<tr><td class='interface hybrid' style='--tagged:60; --untagged:0'></td><td colspan='2'>Hybride (tagged/untagged)</td></tr> <tr><td class='interface hybrid' style='--tagged:60; --untagged:0'></td><td colspan='2'>Hybride (tagged/untagged)</td></tr>
<tr><td class='interface poe'></td><td colspan='2'>Power on Ethernet</td></tr> <tr><td class='interface poe'></td><td colspan='2'>Power on Ethernet</td></tr>
<tr><td class='interface voice-vlan'></td><td colspan='2'>Voice-VLAN</td></tr>
<tr><td class='interface shutdown'></td><td colspan='2'>Interface désactivée</td></tr> <tr><td class='interface shutdown'></td><td colspan='2'>Interface désactivée</td></tr>
</tbody> </tbody>
</table> </table>