From 4c0605474c85cd3f90b918f5856cc50f20659660 Mon Sep 17 00:00:00 2001 From: Ryan Westfall Date: Mon, 21 Apr 2025 10:13:01 -0500 Subject: [PATCH] more frontend updates. Added membership only area in debug mode --- schasite/templates/schasite/about_us2.html | 8 +- .../schasite/authenticated_base.html | 125 ++++++++++ schasite/templates/schasite/base2.html | 4 +- schasite/templates/schasite/index2.html | 87 +------ .../templates/schasite/member_dashboard.html | 118 +++++++++ .../templates/schasite/member_directory.html | 229 ++++++++++++++++++ schasite/templates/schasite/member_posts.html | 0 .../templates/schasite/password_reset.html | 47 ++++ schasite/templates/schasite/set_password.html | 127 ++++++++++ schasite/templates/schasite/signin.html | 66 +++++ .../schasite/unauthenticated_base.html | 0 schasite/urls.py | 22 +- schasite/views.py | 31 +++ 13 files changed, 776 insertions(+), 88 deletions(-) create mode 100644 schasite/templates/schasite/authenticated_base.html create mode 100644 schasite/templates/schasite/member_dashboard.html create mode 100644 schasite/templates/schasite/member_directory.html create mode 100644 schasite/templates/schasite/member_posts.html create mode 100644 schasite/templates/schasite/password_reset.html create mode 100644 schasite/templates/schasite/set_password.html create mode 100644 schasite/templates/schasite/signin.html create mode 100644 schasite/templates/schasite/unauthenticated_base.html diff --git a/schasite/templates/schasite/about_us2.html b/schasite/templates/schasite/about_us2.html index 018c701..1cbaa92 100644 --- a/schasite/templates/schasite/about_us2.html +++ b/schasite/templates/schasite/about_us2.html @@ -95,7 +95,7 @@ Grades: 9-12
Enrollment: 698
Distance: 2.7 miles from community entrance
- Principal: TBD

+ Principal: Raeann Huhn

Visit Website @@ -111,7 +111,7 @@ Grades: 9-12
Enrollment: 1265
Distance: 5.9 miles from community entrance
- Principal: TBD

+ Principal: Sheri Costello

Visit Website @@ -260,8 +260,8 @@
  • Playground
  • Baseball Field
  • Tennis Court
  • -
  • BasketballCourt
  • -
  • Picninc Tables
  • +
  • Basketball Court
  • +
  • Picnic Tables
  • Dogs Allowed
  • Open daily from 8am to sunset

    diff --git a/schasite/templates/schasite/authenticated_base.html b/schasite/templates/schasite/authenticated_base.html new file mode 100644 index 0000000..7a62eb5 --- /dev/null +++ b/schasite/templates/schasite/authenticated_base.html @@ -0,0 +1,125 @@ + +{% load static %} + + + + + {% block pagetitle %} + {% endblock %} + + + + + + + + + + + + + {% block content %} + {% endblock %} + + + + + + + + + + + \ No newline at end of file diff --git a/schasite/templates/schasite/base2.html b/schasite/templates/schasite/base2.html index da72ca4..91fb241 100644 --- a/schasite/templates/schasite/base2.html +++ b/schasite/templates/schasite/base2.html @@ -78,7 +78,9 @@
    - diff --git a/schasite/templates/schasite/index2.html b/schasite/templates/schasite/index2.html index 1d9c347..bb75832 100644 --- a/schasite/templates/schasite/index2.html +++ b/schasite/templates/schasite/index2.html @@ -53,7 +53,11 @@ Community Amenities
    Amenities
    -

    Our community features a swimming pool, playground, walking trails, and clubhouse available for resident use.

    +
      +
    • Multiple Social Events
    • +
    • Playground
    • +
    • Picnic Tables
    • +
    @@ -61,7 +65,7 @@
    HOA Board
    -
    HOA Board
    +
    HOA Board

    Meet our elected board members who volunteer their time to maintain and improve our neighborhood.

    @@ -79,85 +83,6 @@ - -
    -
    -

    Community News & Events

    -
    -
    -
    -
    -
    Annual Community Picnic
    -

    Join us on June 15th for our annual community picnic at the clubhouse. Food, games, and fun for the whole family!

    -
    - -
    -
    -
    -
    -
    -
    Landscaping Updates
    -

    New landscaping will be installed in common areas beginning next month. Expect temporary parking restrictions.

    -
    - -
    -
    -
    - -
    -
    - - -
    -
    -

    Community Documents

    -
    -
    -
    -
    -
    Governing Documents
    -
    - -
    -
    -
    -
    -
    -
    Meeting Minutes
    -
    - -
    -
    - -
    -
    -
    - +
    +
    +
    +

    Welcome

    +
    +
    +

    Hello, John Doe!

    +

    Welcome to your Greenwood Estates member portal. From here you can access community resources, connect with neighbors, and stay informed.

    +
    + + Your membership is active through December 31, 2024. +
    +
    +
    +
    + + +
    + +
    + + +
    + +
    + + + +{% endblock %} +{% block extra_js %} +{% endblock %} \ No newline at end of file diff --git a/schasite/templates/schasite/member_directory.html b/schasite/templates/schasite/member_directory.html new file mode 100644 index 0000000..20899bf --- /dev/null +++ b/schasite/templates/schasite/member_directory.html @@ -0,0 +1,229 @@ +{% extends 'schasite/authenticated_base.html' %} +{% load static %} + +{% block pagetitle %} +Directory | SCHA +{% endblock %} + +{% block content %} +
    +
    +
    +
    +

    Member Directory

    + +
    +
    + +
    +
    +
    + + +
    +
    +
    +
    + Filter + +
    +
    +
    + +
    +
    +
    +
    +
    +

    Community Members

    + 142 Members +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameAddressContactCommitteesServices
    +
    +
    +
    + +
    +
    +
    +
    John & Sarah Smith
    + Lot #42 +
    +
    +
    123 Oak Drive + Email
    + 555-123-4567 +
    + Social Committee + Welcoming + + Pet Care +
    +
    +
    +
    + +
    +
    +
    +
    Robert Wilson
    + Lot #18 +
    +
    +
    456 Maple Street + Email
    + 555-987-6543 +
    + Architectural + Board + + Lawn Mowing + Snow Shoveling +
    +
    +
    +
    + +
    +
    +
    +
    Emily Davis
    + Lot #75 +
    +
    +
    789 Pine Road + Email
    + 555-456-7890 +
    + Communications + + Babysitting + House Sitting +
    +
    +
    +
    + +
    +
    +
    +
    Michael & Lisa Brown
    + Lot #33 +
    +
    +
    321 Elm Avenue + Email
    + 555-789-0123 +
    + Landscape + Safety + + Other (Handyman) +
    +
    +
    + +
    +
    +
    +
    +
    +{% endblock %} +{% block extra_js %} + +{% endblock %} \ No newline at end of file diff --git a/schasite/templates/schasite/member_posts.html b/schasite/templates/schasite/member_posts.html new file mode 100644 index 0000000..e69de29 diff --git a/schasite/templates/schasite/password_reset.html b/schasite/templates/schasite/password_reset.html new file mode 100644 index 0000000..629571c --- /dev/null +++ b/schasite/templates/schasite/password_reset.html @@ -0,0 +1,47 @@ +{% extends 'schasite/base2.html' %} +{% load static %} + +{% block pagetitle %} +Password Reset | SCHA +{% endblock %} + +{% block content %} +
    +
    +
    +
    +
    +

    Reset Password

    +
    +
    +
    +
    +

    Enter your email address and we'll send you a link to reset your password.

    +
    + +
    + +
    + + +
    + Please provide a valid email address. +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    +
    +
    +{% endblock %} \ No newline at end of file diff --git a/schasite/templates/schasite/set_password.html b/schasite/templates/schasite/set_password.html new file mode 100644 index 0000000..23b544d --- /dev/null +++ b/schasite/templates/schasite/set_password.html @@ -0,0 +1,127 @@ +{% extends 'schasite/base2.html' %} +{% load static %} + +{% block pagetitle %} +Set Password | SCHA +{% endblock %} + +{% block content %} +
    +
    +
    +
    +
    +

    Set New Password

    +
    +
    +
    +
    + +
    + + + +
    + Password must contain at least 8 characters with uppercase, lowercase, and a number. +
    +
    +
    + Must be at least 8 characters with uppercase, lowercase, and a number. +
    +
    + +
    + +
    + + + +
    + Passwords must match. +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    +
    +
    +{% endblock %} +{% block extra_js %} + +{% endblock %} \ No newline at end of file diff --git a/schasite/templates/schasite/signin.html b/schasite/templates/schasite/signin.html new file mode 100644 index 0000000..1b2884e --- /dev/null +++ b/schasite/templates/schasite/signin.html @@ -0,0 +1,66 @@ +{% extends 'schasite/base2.html' %} +{% load static %} + +{% block pagetitle %} +Login | SCHA +{% endblock %} + +{% block content %} +
    +
    +
    +
    +
    +

    Member Login

    +
    +
    +
    +
    + +
    + + +
    + Please provide a valid email address. +
    +
    +
    + +
    + +
    + + + +
    + Please enter your password. +
    +
    +
    + +
    + + +
    + +
    + +
    + + +
    +
    + +
    +
    +
    +
    +{% endblock %} \ No newline at end of file diff --git a/schasite/templates/schasite/unauthenticated_base.html b/schasite/templates/schasite/unauthenticated_base.html new file mode 100644 index 0000000..e69de29 diff --git a/schasite/urls.py b/schasite/urls.py index a8f84d9..326ce99 100644 --- a/schasite/urls.py +++ b/schasite/urls.py @@ -1,8 +1,21 @@ from django.urls import path - +from django.conf import settings from . import views -urlpatterns = [ + +if settings.DEBUG: + authenticated_views = [ + path('login/',views.login, name="login"), + path('set_password/',views.set_password, name="set_password"), + path('password_reset/',views.password_reset, name="password_reset"), + path('directory/',views.member_directory, name="directory"), + path('dashboard/',views.member_dashboard, name="dashboard"), + + ] +else: + authenticated_views = [] + +urlpatterns = authenticated_views + [ # path("", views.index, name="index"), # path("useful_links", views.useful_links, name="useful_links"), # path("about_us", views.about_us, name="about_us"), @@ -23,4 +36,9 @@ urlpatterns = [ # stripe specific urls below path("config/", views.stripe_config), path("create-checkout-session/", views.create_checkout_session), + + # authenticated views + + + ] diff --git a/schasite/views.py b/schasite/views.py index 44178b2..78b7c1b 100644 --- a/schasite/views.py +++ b/schasite/views.py @@ -459,3 +459,34 @@ def membership_form(request): def scha_board(request): return render(request, "schasite/scha_board.html", {}) + + +def login(request): + if request.method == "POST": + raise NotImplementedError() + else: + return render(request, "schasite/signin.html",{}) + +def password_reset(request): + if request.method == "POST": + raise NotImplementedError() + else: + return render(request, "schasite/password_reset.html",{}) + +def set_password(request): + if request.method == "POST": + raise NotImplementedError() + else: + return render(request, "schasite/set_password.html",{}) + +def member_directory(request): + if request.method == "POST": + raise NotImplementedError() + else: + return render(request, "schasite/member_directory.html",{}) + +def member_dashboard(request): + if request.method == "POST": + raise NotImplementedError() + else: + return render(request, "schasite/member_dashboard.html",{}) \ No newline at end of file