From 0284db25687dbdc2d394582904067df72359e417 Mon Sep 17 00:00:00 2001 From: Corban-Lee <77944149+Corban-Lee@users.noreply.github.com> Date: Mon, 20 Nov 2023 23:56:51 +0000 Subject: [PATCH] Working through the modal changes on the rewrite. --- src/mainapp/templates/index.html | 794 ++++++++++++++----------------- src/static/js/base.js | 90 +++- src/static/js/mainapp/_venues.js | 386 +++++++++++++++ src/static/js/mainapp/venues.js | 440 +++-------------- src/static/scss/base.scss | 114 ++++- src/templates/base.html | 37 +- src/templates/fonts.html | 12 + 7 files changed, 1027 insertions(+), 846 deletions(-) create mode 100644 src/static/js/mainapp/_venues.js diff --git a/src/mainapp/templates/index.html b/src/mainapp/templates/index.html index 65e8e92..8f228ff 100644 --- a/src/mainapp/templates/index.html +++ b/src/mainapp/templates/index.html @@ -13,470 +13,392 @@ {% endblock header_buttons %} {% block content %} -
- -
-
-
-

Venues & Waters

-
-
- -
- -
-
- - - - -
+
+
+

Venues & Waters

+
+
+ +
+ +
+
+ + + + +
+
+
+
+
+
+
+
+
+
+ placeholder
+ maybe a graph here?
-
-
- -
-
-
-
-
-
- {% for venue in venues %} -
-
-
-
-

- {% if venue.venue_type == "FISHERY" %} - Fishery - {% elif venue.venue_type == "PRIVATE" %} - Private - {% elif venue.venue_type == "CLUB" %} - Club - {% endif %} -

-

{{ venue.name }}

-
- - -
-

{{ venue.description }}

-
- {% if venue.email_address %} - - - - {% endif %} - {% if venue.phone_number %} - - - - {% endif %} - {% if venue.latitude and venue.longitude %} - - - - {% endif %} - {% if venue.website_url %} - - - - {% endif %} -
- {% if venue.waters %} -
- {{ venue.waters|length }} - -
- {% endif %} - {% if not venue.latitude or not venue.longitude or not venue.phone_number or not venue.website_url or not venue.email_address %} -
- -
- {% endif %} - {% if not venue.active %} -
- -
- {% endif %} +
+
+ {% for venue in venues %} +
+
+
+
+

+ {% if venue.venue_type == "FISHERY" %} + Fishery + {% elif venue.venue_type == "PRIVATE" %} + Private + {% elif venue.venue_type == "CLUB" %} + Club + {% endif %} +

+

{{ venue.name }}

-
+ + + +

{{ venue.description }}

+
+ {% if venue.email_address %} + + + + {% endif %} + {% if venue.phone_number %} + + + + {% endif %} + {% if venue.latitude and venue.longitude %} + + + + {% endif %} + {% if venue.website_url %} + + + + {% endif %} +
+ {% if venue.waters %} +
+ {{ venue.waters|length }} + +
+ {% endif %} + {% if not venue.latitude or not venue.longitude or not venue.phone_number or not venue.website_url or not venue.email_address %} +
+ +
+ {% endif %} + {% if not venue.active %} +
+ +
+ {% endif %} +
- {% endfor %} +
+ {% endfor %} +
+
+ + + Create new + +
-