From 9bab0c69af9f8328de668204de7b15bcfff7290c Mon Sep 17 00:00:00 2001 From: steven Date: Thu, 10 Apr 2025 01:17:42 -0400 Subject: [PATCH] use picocss --- templates/event.html | 33 ++++---- templates/index.html | 58 ++++++++------ templates/list.html | 181 +++++++++++++++++++++---------------------- templates/space.html | 29 +++---- 4 files changed, 155 insertions(+), 146 deletions(-) diff --git a/templates/event.html b/templates/event.html index a7d5e1a..dff16e1 100644 --- a/templates/event.html +++ b/templates/event.html @@ -17,11 +17,13 @@ {%- endif %} - + + -

{{ data.event_name }}{{ " ("+data.event_title+")" if data.event_title }}

-

+
+

{{ data.event_name }}{{ " ("+data.event_title+")" if data.event_title }}

+

{%- if "Rsrv" in data.profile.profile_name %} {%- if data.profile.reservation.append is defined %} Start: {{ data.profile.reservation[0].event_start_dt }}
@@ -33,9 +35,9 @@ {%- else %} {{ data.profile.profile_name }} {%- endif %} -

+

{%- if data.profile.append is not defined %} -

+

{%- if data.profile.reservation.append is defined %} {%- if data.profile.reservation[0].space_reservation.append is defined %} {%- for space in data.profile.reservation[0].space_reservation %} @@ -53,23 +55,23 @@ {{ data.profile.reservation.space_reservation.space.formal_name }} {%- endif %} {%- endif %} -

+ {%- endif %} {%- if data.event_text %} -

Description

+

Description

{%- if data.event_text.append is defined %} {%- for i in data.event_text %} {%- if i.text_type_id == 1 %} -

{{ i.text | safe }}

+

{{ i.text | safe }}

{%- endif %} {%- endfor %} {%- elif data.event_text.text_type_id == 1 %} -

{{ data.event_text.text | safe }}

+

{{ data.event_text.text | safe }}

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

Contact(s)

+

Contact(s)

{%- for i in data.role %} -

{{ i.role_name }}: {{ i.contact.contact_first_name }} {{ i.contact.contact_middle_name }} {{ i.contact.contact_last_name }}

+

{{ i.role_name }}: {{ i.contact.contact_first_name }} {{ i.contact.contact_middle_name }} {{ i.contact.contact_last_name }}

{%- if i.contact.email %}

Email: {{ i.contact.email }}

{%- endif %} @@ -81,17 +83,18 @@ {%- endif %} {%- endfor %} {%- if data.custom_attribute %} -

Custom Attribute(s)

+

Custom Attribute(s)

{%- if data.custom_attribute.append is defined %} {%- for i in data.custom_attribute %} -

{{ i.attribute_name }}

+

{{ i.attribute_name }}

{{ i.attribute_value }}

{%- endfor %} {%- else %} -

{{ data.custom_attribute.attribute_name }}

+

{{ data.custom_attribute.attribute_name }}

{{ data.custom_attribute.attribute_value }}

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

Last modified at {{ data.last_mod_dt }} by {{ data.last_mod_user }}

+ + diff --git a/templates/index.html b/templates/index.html index 8e6c741..7216351 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,37 +7,47 @@ - + + -

Choose a day:

- -
- -
- - -

[Optional] Select types of events to find:

- {%- for i in ["available","class","exam","booked","food"] %} - -
- {%- endfor %} -

+
+

UofL Events

+
+
+
+ Date to display + +
+ +
+ + +
+
+ Filter rooms by event type + {%- for i in ["closed","available","class","exam","booked","food"] %} + +
+ {%- endfor %} +
+
+ +
+
diff --git a/templates/list.html b/templates/list.html index 841d8e3..6d8c737 100644 --- a/templates/list.html +++ b/templates/list.html @@ -6,76 +6,64 @@ {{ day }} - 44live + - + @@ -85,98 +73,103 @@ a:hover{background-color:lightgray;color:black;}
diff --git a/templates/space.html b/templates/space.html index 12c8cd8..b76b004 100644 --- a/templates/space.html +++ b/templates/space.html @@ -6,38 +6,41 @@ {{ data.space_name }}{{ " ("+data.building_name+")" if data.building_name }} - + + -

{{ data.space_name }}{{ " ("+data.building_name+")" if data.building_name }}

-

Hours

-

+
+

{{ data.space_name }}{{ " ("+data.building_name+")" if data.building_name }}

+

Hours

+

{%- for i in data.hours %} {{ i.day_name[:3] }}: {{ i.open }} - {{ i.close }}
{%- endfor %} -

+

{% if data.instructions %} -

Instructions

-

{{ data.instructions|safe }}

+

Instructions

+

{{ data.instructions|safe }}

{% endif %} {%- if data.comments %} -

Comments

-

{{ data.comments|safe }}

+

Comments

+

{{ data.comments|safe }}

{%- endif %} -

Layout(s)

+

Layout(s)

{%- if data.layout %} {%- if data.layout.append is defined %} {%- for i in data.layout %} {%- if i.layout_photo_id %} -

{{ i.layout_name }} ({{ i.layout_capacity }} capacity)

+

{{ i.layout_name }} ({{ i.layout_capacity }} capacity)

{%- endif %} {%- endfor %} {%- elif data.layout.layout_photo_id %} -

{{ data.layout.layout_name }} ({{ data.layout.layout_capacity }} capacity)

+

{{ data.layout.layout_name }} ({{ data.layout.layout_capacity }} capacity)

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

Last modified at {{ data.last_mod_dt }} by {{ data.last_mod_user }}

+ +