index.html: highlight invalid fields

This commit is contained in:
Johannes Kimmel 2023-04-22 12:22:35 +02:00
parent 04788db1dc
commit a72668593b
2 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,9 @@
<style>
:root, html[data-theme='light'] {
--width: 80rem;
}
:invalid:not(form) {
border-color: red;
}
</style>
</head>

View File

@ -221,7 +221,7 @@ function initForm() {
const l3cfg = new L3Config();
l3cfg.addSection(new L3Section('gateway',
new L3Input('Router Name','gatewayName', 'name', {type: 'search', required: '', placeholder: 'Router Name'}),
new L3Input('Router Name','gatewayName', 'name', {type: 'search', placeholder: 'Router Name'}),
new L3Input('Router IPv4 Address','gatewayRouterIP', 'router_ip', {type: 'text'}),
new L3Input('Router IPv6 Address','gatewayRouterIP6', 'router_ip6', {type: 'text'}),
));