From 19f1bdd612e39c7ded9a853b81b2725ce9ab9ed2 Mon Sep 17 00:00:00 2001 From: Gabriel De Los Rios Date: Sat, 16 Nov 2024 23:21:50 -0300 Subject: [PATCH] feat(users): adds flash message, some minor fixes --- app/templates/users/register.html | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/app/templates/users/register.html b/app/templates/users/register.html index 439f993..9a001c2 100644 --- a/app/templates/users/register.html +++ b/app/templates/users/register.html @@ -7,22 +7,25 @@ {% endblock %} {% block content %}
+
+ {% include 'message.html' %}

Register

-
+
- + {{ form_field_validation(FORM_ERRORS['REQUIRED']) }}
- + {{ form_field_validation(FORM_ERRORS['REQUIRED'] + " " + FORM_ERRORS['PHONE_NUMBER_FORMAT']) }}
- + {{ form_field_validation(FORM_ERRORS['REQUIRED'] + " " + FORM_ERRORS['VALID_EMAIL']) }}
@@ -64,6 +68,7 @@ id="password" maxlength="255" minlength="6" + name="password" placeholder="Enter password" required type="password" @@ -77,6 +82,7 @@ id="password-confirmation" maxlength="255" minlength="6" + name="password_confirmation" placeholder="Repeat password" required type="password" @@ -84,8 +90,8 @@ {{ form_field_validation(FORM_ERRORS['REQUIRED'] + " " + FORM_ERRORS['PASSWORD_LENGTH']) }}
- - + + {{ form_field_validation(FORM_ERRORS['REQUIRED']) }}