From d7c99f7eb28475680b080cbe2c31b90375ccf466 Mon Sep 17 00:00:00 2001 From: Noah Cussatti Date: Wed, 1 Nov 2023 14:30:15 -0400 Subject: [PATCH] Added tooltip to registration page --- .../app/ACMAS_Web/components/field/field.html | 39 ++++++++++++++++++- ACMAS/app/ACMAS_Web/templates/register.html | 4 +- 2 files changed, 39 insertions(+), 4 deletions(-) diff --git a/ACMAS/app/ACMAS_Web/components/field/field.html b/ACMAS/app/ACMAS_Web/components/field/field.html index 663f1e6..373eb3b 100644 --- a/ACMAS/app/ACMAS_Web/components/field/field.html +++ b/ACMAS/app/ACMAS_Web/components/field/field.html @@ -1,12 +1,47 @@ {% load component_tags %} -
+
{% if component_type == "input" %} {% else %} {% if icon_name != "" %} {% component "icon" icon=icon_name icon_type="mini" icon_class="w-6 h-6 flex-shrink-0 text-gray-400" %} {% endif %} - + + {% endif %} + {% if name == "password1" and placeholder == "Create password..." %} + + {% endif %} + {% if name == "username" and placeholder == "Create username..." %} + {% endif %}
diff --git a/ACMAS/app/ACMAS_Web/templates/register.html b/ACMAS/app/ACMAS_Web/templates/register.html index d214e51..ba1ec02 100644 --- a/ACMAS/app/ACMAS_Web/templates/register.html +++ b/ACMAS/app/ACMAS_Web/templates/register.html @@ -12,9 +12,9 @@
- {% component "field" component_type="text" placeholder="Enter username..." name="username" icon_name="user" %} + {% component "field" component_type="text" placeholder="Create username..." name="username" icon_name="user" %} {% component "field" component_type="text" placeholder="Enter email..." name="email" icon_name="inbox" %} - {% component "field" component_type="password" placeholder="Enter password..." name="password1" icon_name="lock-closed" %} + {% component "field" component_type="password" placeholder="Create password..." name="password1" icon_name="lock-closed" %} {% component "field" component_type="password" placeholder="Confirm password..." name="password2" icon_name="lock-closed" %}