From 61b215fc105794399b30251d9e2e427071805f6a Mon Sep 17 00:00:00 2001 From: transtrike Date: Sun, 10 Jan 2021 13:09:27 +0200 Subject: Added required error validation to register --- .../app/components/register/register.component.css | 4 +++ .../components/register/register.component.html | 32 +++++++++++----------- 2 files changed, 20 insertions(+), 16 deletions(-) (limited to 'src/DevHive.Angular') diff --git a/src/DevHive.Angular/src/app/components/register/register.component.css b/src/DevHive.Angular/src/app/components/register/register.component.css index 396a27c..06c8c52 100644 --- a/src/DevHive.Angular/src/app/components/register/register.component.css +++ b/src/DevHive.Angular/src/app/components/register/register.component.css @@ -27,6 +27,10 @@ font-weight: bold; } +form :nth-last-child(3) { + padding-bottom: 1%; +} + .submit-btn { width: 100%; background-color: black; diff --git a/src/DevHive.Angular/src/app/components/register/register.component.html b/src/DevHive.Angular/src/app/components/register/register.component.html index 837f812..3c8a563 100644 --- a/src/DevHive.Angular/src/app/components/register/register.component.html +++ b/src/DevHive.Angular/src/app/components/register/register.component.html @@ -7,44 +7,44 @@
--> - First Name* + First Name* - Min length of 3 - * This is required + * This is required + * Min length of 3 - Last Name* + Last Name* - - Min length of 3 - + + * This is required + * Min length of 3 - Username* + Username* - Min length of 3 - + * Min length of 3 + * This is required - Email* + Email* - You dummy, enter @ - + * You dummy, enter @ + * This is required - Password* + Password* You must have at least one number - Min length of 5 - + * Min length of 5 + * This is required
-- cgit v1.2.3