From 3f326b74d64c361a56775131e712b224f56d112a Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Mon, 10 Jan 2022 10:33:07 +0100 Subject: [PATCH] feat: minlength validation --- keycloak_collective_portal/static/default.css | 12 ++++++++++++ keycloak_collective_portal/static/lumbung.css | 16 ++++++++++++++++ .../templates/register.html | 14 +++++++------- 3 files changed, 35 insertions(+), 7 deletions(-) diff --git a/keycloak_collective_portal/static/default.css b/keycloak_collective_portal/static/default.css index 019aa5d..360bc59 100644 --- a/keycloak_collective_portal/static/default.css +++ b/keycloak_collective_portal/static/default.css @@ -11,3 +11,15 @@ th, td { table, th, td { border: 1px solid black; } + +input { + border: 2px solid currentcolor; +} + +input:invalid { + border: 2px dashed red; +} + +input:invalid:focus { + background-image: linear-gradient(magenta, pink); +} diff --git a/keycloak_collective_portal/static/lumbung.css b/keycloak_collective_portal/static/lumbung.css index 019aa5d..b6fd784 100644 --- a/keycloak_collective_portal/static/lumbung.css +++ b/keycloak_collective_portal/static/lumbung.css @@ -11,3 +11,19 @@ th, td { table, th, td { border: 1px solid black; } + +input { + border: 2px solid currentcolor; +} + +input:invalid { + border: 2px dashed red; +} + +input:invalid:focus { + background-image: linear-gradient(magenta, pink); +} + +.error { + color: red; +} diff --git a/keycloak_collective_portal/templates/register.html b/keycloak_collective_portal/templates/register.html index a6d150a..eede206 100644 --- a/keycloak_collective_portal/templates/register.html +++ b/keycloak_collective_portal/templates/register.html @@ -5,27 +5,27 @@

{% if exception %} -

Oops, something went wrong: {{ exception }} 😬

+

Oops, something went wrong: {{ exception }} 😬

{% endif %}
- + - + - + - + - + - +