From ce704ca225952a4edaaf5ac56bf68e13fcb3218a Mon Sep 17 00:00:00 2001 From: YadlaMani Date: Tue, 21 May 2024 18:20:41 +0530 Subject: [PATCH] added the changes --- .../templates/partials/base_auth.html | 59 ++--- .../templates/userauths/sign-in.html | 134 ++++++----- .../templates/userauths/sign-up.html | 224 ++++++++++-------- 3 files changed, 237 insertions(+), 180 deletions(-) diff --git a/newsaggregator/templates/partials/base_auth.html b/newsaggregator/templates/partials/base_auth.html index 9944559..9d06d6e 100644 --- a/newsaggregator/templates/partials/base_auth.html +++ b/newsaggregator/templates/partials/base_auth.html @@ -1,40 +1,43 @@ {% load static %} - - - + + + Onion News - + - + - - - - - - - {% block authentication %} + + + - {% endblock authentication %} + + + + {% block authentication %} {% endblock authentication %} - -
- - {% block category %} - {% endblock category %} - {% block index %} - {% endblock index %} -
- {% include 'components/footer.html' %} - +
+ + {% block category %} {% endblock category %} {% block index %} {% + endblock index %} +
+ {% include 'components/footer.html' %} - - \ No newline at end of file + + diff --git a/newsaggregator/templates/userauths/sign-in.html b/newsaggregator/templates/userauths/sign-in.html index b47d1fc..058282f 100644 --- a/newsaggregator/templates/userauths/sign-in.html +++ b/newsaggregator/templates/userauths/sign-in.html @@ -1,63 +1,85 @@ -{% extends 'partials/base.html' %} -{% load static %} - -{% block authentication %} +{% extends 'partials/base.html' %} {% load static %} {% block authentication %}
-
-
-
-
- -
-
-
-
- - -
- {% csrf_token %} - -
- - -
-
-

- Don't have an account? - Sign up -

-
- +
+
+
+
+ +
+
+
+
+ + +
+ {% csrf_token %} + +
+
+
+

+ Don't have an account? + Sign up +

+
+
+
-{% endblock authentication %} \ No newline at end of file +{% endblock authentication %} diff --git a/newsaggregator/templates/userauths/sign-up.html b/newsaggregator/templates/userauths/sign-up.html index 643f89d..e1a4c10 100644 --- a/newsaggregator/templates/userauths/sign-up.html +++ b/newsaggregator/templates/userauths/sign-up.html @@ -1,104 +1,136 @@ -{% extends 'partials/base.html' %} -{% load static %} - -{% block authentication %} +{% extends 'partials/base.html' %} {% load static %} {% block authentication %}
-
-
-
-
- -
-
-
-
- +
+
+
+
+ +
+
+
+
+ + + {% if form.errors %} +
+
    + {% for field, error_list in form.errors.items %} {% for error + in error_list %} +
  • {{ error }}
  • + {% endfor %} {% endfor %} +
+

Please try again

+
+ {% endif %} - {% if form.errors %} -
-
    - {% for field, error_list in form.errors.items %} - {% for error in error_list %} -
  • {{ error }}
  • - {% endfor %} - {% endfor %} -
-

Please try again

-
- {% endif %} - - -
- {% csrf_token %} - -
- - -
-
-

- have an account? - Sign in -

-
- +
+ {% csrf_token %} + +
+
+
+

+ have an account? + Sign in +

+
+
+
-{% endblock authentication %} \ No newline at end of file +{% endblock authentication %}