From 30f09ae04adb35d1613a5ae7e9866e0b96a59cbe Mon Sep 17 00:00:00 2001 From: Zorex Date: Fri, 21 Oct 2022 11:53:57 +0800 Subject: [PATCH] Update our_team.html template --- landing/templates/landing/our_team.html | 87 ++----------------------- organisation/admin.py | 8 ++- 2 files changed, 13 insertions(+), 82 deletions(-) diff --git a/landing/templates/landing/our_team.html b/landing/templates/landing/our_team.html index 74f87ed..269a9a7 100644 --- a/landing/templates/landing/our_team.html +++ b/landing/templates/landing/our_team.html @@ -217,101 +217,26 @@ aria-labelledby="volunteers-tab" >
+ {% for commitee in commitees %}

- Meetup / Events + {{ commitee.name }}

    -
  • Vanessa Bermudez
  • -
  • Freilla Mae Espinola
  • -
  • Janine Bagares
  • -
  • Jay Mendez
  • -
-
-
-

- Marketing -

-
    -
  • Angelica Lapastora
  • -
  • Carl John ViƱas
  • -
  • Aira Joan Alonzo
  • -
-
-
-

- Public Training -

-
    -
  • Ryan Ermita
  • -
  • Sony Valdez
  • -
  • Ariel Conde
  • -
  • Jeff Paredes
  • -
-
-
-

- Engineering -

-
    -
  • Zorex Salvo
  • -
  • Rommel Philip Afurong
  • -
  • Von Louie Cruto
  • -
  • Dan Belza
  • -
  • Laurence Rebadulla
  • -
-
-
-

- Content Creation -

-
    -
  • Albert Yumol
  • -
  • Alysson Alvaran
  • -
  • Jeff Paredes
  • -
  • Von Louie Cruto
  • + {% for volunteer in commitee.volunteers.all %} +
  • {{ volunteer.display_name }}
  • + {% endfor %}
+ {% endfor %}
diff --git a/organisation/admin.py b/organisation/admin.py index 58ebef3..0d7bb7d 100644 --- a/organisation/admin.py +++ b/organisation/admin.py @@ -3,5 +3,11 @@ from .models import Commitee, Volunteer + +class VolunteerAdmin(admin.ModelAdmin): + list_display = ("display_name", "commitee", "first_name", "last_name",) + list_filter = ("commitee",) + + admin.site.register(Commitee) -admin.site.register(Volunteer) +admin.site.register(Volunteer, VolunteerAdmin)