diff --git a/account/templates/_types/auth/_bookings_panel.html b/account/templates/_types/auth/_bookings_panel.html
deleted file mode 100644
index 28f8280..0000000
--- a/account/templates/_types/auth/_bookings_panel.html
+++ /dev/null
@@ -1,44 +0,0 @@
-
- {% set page_num = page %}
- {% include "_types/blog/_page_cards.html" %}
-
- No pages found.
- {% endif %}
-{% endif %}
diff --git a/blog/templates/_types/blog/admin/tag_groups/_edit_header.html b/blog/templates/_types/blog/admin/tag_groups/_edit_header.html
deleted file mode 100644
index 2e31494..0000000
--- a/blog/templates/_types/blog/admin/tag_groups/_edit_header.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='tag-groups-edit-row', oob=oob) %}
- {% from 'macros/admin_nav.html' import admin_nav_item %}
- {{ admin_nav_item(url_for('blog.tag_groups_admin.defpage_tag_group_edit', id=group.id), 'pencil', group.name, select_colours, aclass='') }}
- {% call links.desktop_nav() %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
diff --git a/blog/templates/_types/blog/admin/tag_groups/_edit_main_panel.html b/blog/templates/_types/blog/admin/tag_groups/_edit_main_panel.html
deleted file mode 100644
index 7d1fa96..0000000
--- a/blog/templates/_types/blog/admin/tag_groups/_edit_main_panel.html
+++ /dev/null
@@ -1,79 +0,0 @@
-
- {% include '_types/blog/desktop/menu/tag_groups.html' %}
- {% include '_types/blog/desktop/menu/authors.html' %}
-
-
-
- {% include '_types/blog/desktop/menu/tag_groups.html' %}
- {% include '_types/blog/desktop/menu/authors.html' %}
-
-{% endcall %}
-
\ No newline at end of file
diff --git a/blog/templates/_types/blog/mobile/_filter/summary/authors.html b/blog/templates/_types/blog/mobile/_filter/summary/authors.html
deleted file mode 100644
index 32796d9..0000000
--- a/blog/templates/_types/blog/mobile/_filter/summary/authors.html
+++ /dev/null
@@ -1,31 +0,0 @@
-{% if selected_authors and selected_authors|length %}
-
- {% if auth_menu_html %}
- {{ auth_menu_html | safe }}
- {% endif %}
-
-{% endmacro %}
diff --git a/blog/templates/_types/root/settings/_main_panel.html b/blog/templates/_types/root/settings/_main_panel.html
deleted file mode 100644
index 9f4c9a8..0000000
--- a/blog/templates/_types/root/settings/_main_panel.html
+++ /dev/null
@@ -1,2 +0,0 @@
-
- {% from '_types/cart/_cart.html' import show_cart with context %}
- {{ show_cart() }}
-
\ No newline at end of file
diff --git a/cart/templates/_types/cart/_mini.html b/cart/templates/_types/cart/_mini.html
deleted file mode 100644
index faaa9a6..0000000
--- a/cart/templates/_types/cart/_mini.html
+++ /dev/null
@@ -1,45 +0,0 @@
-{% macro mini(oob=False, count=None) %}
-
- {% from '_types/cart/_cart.html' import show_cart with context %}
- {{ show_cart() }}
-
diff --git a/cart/templates/_types/cart/page/_oob_elements.html b/cart/templates/_types/cart/page/_oob_elements.html
deleted file mode 100644
index b5416fc..0000000
--- a/cart/templates/_types/cart/page/_oob_elements.html
+++ /dev/null
@@ -1,27 +0,0 @@
-{% extends 'oob_elements.html' %}
-
-{# OOB elements for page cart HTMX navigation #}
-
-{% from '_types/root/_oob_menu.html' import mobile_menu with context %}
-
-{% block oobs %}
-
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('root-header-child', 'cart-header-child', '_types/cart/header/_header.html')}}
-
- {% from '_types/cart/page/header/_header.html' import page_header_row with context %}
- {{ page_header_row(oob=True) }}
-
- {% from '_types/root/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-
-{% block mobile_menu %}
- {% include '_types/cart/_nav.html' %}
-{% endblock %}
-
-
-{% block content %}
- {% include "_types/cart/page/_main_panel.html" %}
-{% endblock %}
diff --git a/cart/templates/_types/cart/page/header/_header.html b/cart/templates/_types/cart/page/header/_header.html
deleted file mode 100644
index 6afb1fb..0000000
--- a/cart/templates/_types/cart/page/header/_header.html
+++ /dev/null
@@ -1,25 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro page_header_row(oob=False) %}
- {% call links.menu_row(id='page-cart-row', oob=oob) %}
- {% call links.link(cart_url('/' + page_post.slug + '/'), hx_select_search) %}
- {% if page_post.feature_image %}
-
- {# Order summary card #}
- {% include '_types/order/_summary.html' %}
- {% include '_types/order/_items.html' %}
- {% include '_types/order/_calendar_items.html' %}
-
-
\ No newline at end of file
diff --git a/cart/templates/_types/order/_nav.html b/cart/templates/_types/order/_nav.html
deleted file mode 100644
index f5c504d..0000000
--- a/cart/templates/_types/order/_nav.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% from 'macros/admin_nav.html' import placeholder_nav %}
-{{ placeholder_nav() }}
diff --git a/cart/templates/_types/order/_oob_elements.html b/cart/templates/_types/order/_oob_elements.html
deleted file mode 100644
index 31d1e17..0000000
--- a/cart/templates/_types/order/_oob_elements.html
+++ /dev/null
@@ -1,30 +0,0 @@
-{% extends 'oob_elements.html' %}
-
-{# OOB elements for HTMX navigation - all elements that need updating #}
-
-{# Import shared OOB macros #}
-{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %}
-{% from '_types/root/_oob_menu.html' import mobile_menu with context %}
-
-{# Header with app title - includes cart-mini, navigation, and market-specific header #}
-
-{% block oobs %}
-
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('orders-header-child', 'order-header-child', '_types/order/header/_header.html')}}
-
- {% from '_types/order/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-
-{% block mobile_menu %}
- {% include '_types/order/_nav.html' %}
-{% endblock %}
-
-
-{% block content %}
- {% include "_types/order/_main_panel.html" %}
-{% endblock %}
-
-
diff --git a/cart/templates/_types/order/_summary.html b/cart/templates/_types/order/_summary.html
deleted file mode 100644
index ffe560b..0000000
--- a/cart/templates/_types/order/_summary.html
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
-
- {# Calendar grid #}
-
- {# Weekday header: only show on sm+ (desktop/tablet) #}
-
- {% for wd in weekday_names %}
-
{{ wd }}
- {% endfor %}
-
-
- {# On mobile: 1 column; on sm+: 7 columns #}
-
- {% for week in weeks %}
- {% for day in week %}
-
-
-
-
- {{ day.date.strftime('%a') }}
-
-
- {# Clickable day number: goes to day detail view #}
-
- {{ day.date.day }}
-
-
-
- {# Entries for this day: merged, chronological #}
-
- {# Build a list of entries for this specific day.
- month_entries is already sorted by start_at in Python. #}
- {% for e in month_entries %}
- {% if e.start_at.date() == day.date %}
- {# Decide colour: highlight "mine" differently if you want #}
- {% set is_mine = (g.user and e.user_id == g.user.id)
- or (not g.user and e.session_id == qsession.get('calendar_sid')) %}
-
-
- {{ e.name }}
-
-
- {{ (e.state or 'pending')|replace('_', ' ') }}
-
-
- {% endif %}
- {% endfor %}
-
-
-
- {% endfor %}
- {% endfor %}
-
-
diff --git a/events/templates/_types/calendar/_nav.html b/events/templates/_types/calendar/_nav.html
deleted file mode 100644
index 32077b5..0000000
--- a/events/templates/_types/calendar/_nav.html
+++ /dev/null
@@ -1,18 +0,0 @@
-
-{% import 'macros/links.html' as links %}
-{% call links.link(
- url_for('calendar.slots.defpage_slots_listing', calendar_slug=calendar.slug),
- hx_select_search,
- select_colours,
- True,
- aclass=styles.nav_button
-) %}
-
-
- Slots
-
-{% endcall %}
-{% if g.rights.admin %}
- {% from 'macros/admin_nav.html' import admin_nav_item %}
- {{ admin_nav_item(url_for('calendar.admin.defpage_calendar_admin', calendar_slug=calendar.slug)) }}
-{% endif %}
\ No newline at end of file
diff --git a/events/templates/_types/calendar/_oob_elements.html b/events/templates/_types/calendar/_oob_elements.html
deleted file mode 100644
index 1447e24..0000000
--- a/events/templates/_types/calendar/_oob_elements.html
+++ /dev/null
@@ -1,22 +0,0 @@
-{% extends "oob_elements.html" %}
-{# OOB elements for post admin page #}
-
-
-
-
-{% block oobs %}
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('post-header-child', 'calendar-header-child', '_types/calendar/header/_header.html')}}
-
- {% from '_types/post/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-
-{% block mobile_menu %}
-{% include '_types/calendar/_nav.html' %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/calendar/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/calendar/admin/_description.html b/events/templates/_types/calendar/admin/_description.html
deleted file mode 100644
index 6ffcbd5..0000000
--- a/events/templates/_types/calendar/admin/_description.html
+++ /dev/null
@@ -1,32 +0,0 @@
-
- {% if calendar.description %}
-
- {{ calendar.description }}
-
- {% else %}
-
- No description yet.
-
- {% endif %}
-
-
-
-
-
-
-{% if oob %}
-
- {% from '_types/calendar/_description.html' import description %}
- {{description(calendar, oob=True)}}
-{% endif %}
-
-
diff --git a/events/templates/_types/calendar/admin/_description_edit.html b/events/templates/_types/calendar/admin/_description_edit.html
deleted file mode 100644
index 29bd574..0000000
--- a/events/templates/_types/calendar/admin/_description_edit.html
+++ /dev/null
@@ -1,41 +0,0 @@
-
diff --git a/events/templates/_types/calendar/admin/_main_panel.html b/events/templates/_types/calendar/admin/_main_panel.html
deleted file mode 100644
index 9575ac6..0000000
--- a/events/templates/_types/calendar/admin/_main_panel.html
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
Calendar configuration
-
-
-
- Description
-
- {% include '_types/calendar/admin/_description.html' %}
-
-
-
-
-
-
Description
-
{{calendar.description or ''}}
-
{{ (calendar.description or '') }}
-
-
-
- Save
-
-
-
-
-
-
-
diff --git a/events/templates/_types/calendar/admin/_nav.html b/events/templates/_types/calendar/admin/_nav.html
deleted file mode 100644
index f5c504d..0000000
--- a/events/templates/_types/calendar/admin/_nav.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% from 'macros/admin_nav.html' import placeholder_nav %}
-{{ placeholder_nav() }}
diff --git a/events/templates/_types/calendar/admin/_oob_elements.html b/events/templates/_types/calendar/admin/_oob_elements.html
deleted file mode 100644
index ec6244c..0000000
--- a/events/templates/_types/calendar/admin/_oob_elements.html
+++ /dev/null
@@ -1,25 +0,0 @@
-{% extends 'oob_elements.html' %}
-
-{# OOB elements for calendar admin page #}
-
-{# Import shared OOB macros #}
-{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %}
-{% from '_types/root/_oob_menu.html' import mobile_menu with context %}
-
-
-{% block oobs %}
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('calendar-header-child', 'calendar-admin-header-child', '_types/calendar/admin/header/_header.html')}}
-
- {% from '_types/calendar/header/_header.html' import header_row with context %}
- {{header_row(oob=True)}}
-{% endblock %}
-
-
-{% block mobile_menu %}
- {% include '_types/calendar/admin/_nav.html' %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/calendar/admin/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/calendar/admin/header/_header.html b/events/templates/_types/calendar/admin/header/_header.html
deleted file mode 100644
index a138229..0000000
--- a/events/templates/_types/calendar/admin/header/_header.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='calendar-admin-row', oob=oob) %}
- {% call links.link(
- hx_select_search
- ) %}
- {{ links.admin() }}
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/calendar/admin/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
\ No newline at end of file
diff --git a/events/templates/_types/calendar/admin/index.html b/events/templates/_types/calendar/admin/index.html
deleted file mode 100644
index c27d6d2..0000000
--- a/events/templates/_types/calendar/admin/index.html
+++ /dev/null
@@ -1,24 +0,0 @@
-{% extends '_types/calendar/index.html' %}
-{% import 'macros/layout.html' as layout %}
-
-{% block calendar_header_child %}
- {% from '_types/root/_n/macros.html' import header with context %}
- {% call header() %}
- {% from '_types/calendar/admin/header/_header.html' import header_row with context %}
- {{ header_row() }}
-
- {% endcall %}
-{% endblock %}
-
-
-
-{% block _main_mobile_menu %}
- {% include '_types/calendar/admin/_nav.html' %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/calendar/admin/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/calendar/header/_header.html b/events/templates/_types/calendar/header/_header.html
deleted file mode 100644
index 3bb141b..0000000
--- a/events/templates/_types/calendar/header/_header.html
+++ /dev/null
@@ -1,23 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='calendar-row', oob=oob) %}
- {% call links.link(url_for('calendar.get', calendar_slug=calendar.slug), hx_select_search) %}
-
-
-
-
- {{ calendar.name }}
-
-
- {% from '_types/calendar/_description.html' import description %}
- {{description(calendar)}}
-
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/calendar/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
-
-
-
diff --git a/events/templates/_types/calendar/index.html b/events/templates/_types/calendar/index.html
deleted file mode 100644
index bdd0b49..0000000
--- a/events/templates/_types/calendar/index.html
+++ /dev/null
@@ -1,26 +0,0 @@
-{% extends '_types/root/_index.html' %}
-
-{% block meta %}{% endblock %}
-
-{% block root_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('post-header-child', '_types/post/header/_header.html') %}
- {% call index_row('post-admin-header-child', '_types/post/admin/header/_header.html') %}
- {% call index_row('calendar-header-child', '_types/calendar/header/_header.html') %}
- {% block calendar_header_child %}
- {% endblock %}
- {% endcall %}
- {% endcall %}
- {% endcall %}
-{% endblock %}
-
-
-{% block _main_mobile_menu %}
- {% include '_types/calendar/_nav.html' %}
-{% endblock %}
-
-
-
-{% block content %}
- {% include '_types/calendar/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/calendars/_calendars_list.html b/events/templates/_types/calendars/_calendars_list.html
deleted file mode 100644
index 0db4859..0000000
--- a/events/templates/_types/calendars/_calendars_list.html
+++ /dev/null
@@ -1,44 +0,0 @@
- {% for row in calendars %}
- {% set cal = row %}
-
- {% else %}
- No calendars yet. Create one above.
- {% endfor %}
diff --git a/events/templates/_types/calendars/_main_panel.html b/events/templates/_types/calendars/_main_panel.html
deleted file mode 100644
index 6a84aa0..0000000
--- a/events/templates/_types/calendars/_main_panel.html
+++ /dev/null
@@ -1,27 +0,0 @@
-
- {% if has_access('calendars.create_calendar') %}
-
-
-
-
-
-
- Name
-
-
- Add calendar
-
- {% endif %}
-
-
- {% include "_types/calendars/_calendars_list.html" %}
-
-
\ No newline at end of file
diff --git a/events/templates/_types/calendars/_nav.html b/events/templates/_types/calendars/_nav.html
deleted file mode 100644
index f5c504d..0000000
--- a/events/templates/_types/calendars/_nav.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% from 'macros/admin_nav.html' import placeholder_nav %}
-{{ placeholder_nav() }}
diff --git a/events/templates/_types/calendars/_oob_elements.html b/events/templates/_types/calendars/_oob_elements.html
deleted file mode 100644
index 6de3bea..0000000
--- a/events/templates/_types/calendars/_oob_elements.html
+++ /dev/null
@@ -1,28 +0,0 @@
-{% extends 'oob_elements.html' %}
-
-{# OOB elements for HTMX navigation - all elements that need updating #}
-
-{% from '_types/root/_oob_menu.html' import mobile_menu with context %}
-
-{# Header with app title - includes cart-mini, navigation, and market-specific header #}
-
-{% block oobs %}
-
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('post-admin-header-child', 'calendars-header-child', '_types/calendars/header/_header.html')}}
-
- {% from '_types/post/admin/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-
-{% block mobile_menu %}
- {% include '_types/calendars/_nav.html' %}
-{% endblock %}
-
-
-{% block content %}
- {% include "_types/calendars/_main_panel.html" %}
-{% endblock %}
-
-
diff --git a/events/templates/_types/calendars/header/_header.html b/events/templates/_types/calendars/header/_header.html
deleted file mode 100644
index 047e8a3..0000000
--- a/events/templates/_types/calendars/header/_header.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='calendars-row', oob=oob) %}
- {% call links.link(url_for('calendars.home'), hx_select_search) %}
-
-
- Calendars
-
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/calendars/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
diff --git a/events/templates/_types/calendars/index.html b/events/templates/_types/calendars/index.html
deleted file mode 100644
index d958a0c..0000000
--- a/events/templates/_types/calendars/index.html
+++ /dev/null
@@ -1,26 +0,0 @@
-{% extends '_types/root/_index.html' %}
-
-{% block meta %}{% endblock %}
-
-{% block root_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('post-header-child', '_types/post/header/_header.html') %}
- {% call index_row('post-admin-header-child', '_types/post/admin/header/_header.html') %}
- {% call index_row('calendars-header-child', '_types/calendars/header/_header.html') %}
- {% block calendars_header_child %}
- {% endblock %}
- {% endcall %}
- {% endcall %}
- {% endcall %}
-{% endblock %}
-
-
-{% block _main_mobile_menu %}
- {% include '_types/calendars/_nav.html' %}
-{% endblock %}
-
-
-
-{% block content %}
- {% include '_types/calendars/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/day/_add.html b/events/templates/_types/day/_add.html
deleted file mode 100644
index 6caba5a..0000000
--- a/events/templates/_types/day/_add.html
+++ /dev/null
@@ -1,299 +0,0 @@
-
-
-
-
-
- {# 1) Entry name #}
-
-
- {# 2) Slot picker for this weekday (required) #}
- {% if day_slots %}
-
- {% for slot in day_slots %}
-
- {{ slot.name }}
- ({{ slot.time_start.strftime('%H:%M') }}
- {% if slot.time_end %}–{{ slot.time_end.strftime('%H:%M') }}{% else %}–open-ended{% endif %})
- {% if slot | getattr('flexible', False) %}[flexible]{% endif %}
-
- {% endfor %}
-
- {% else %}
-
- No slots defined for this day.
-
- {% endif %}
-
- {# 3) Time entry + cost display #}
-
- {# Time inputs — hidden until a flexible slot is selected #}
-
-
- From
-
-
-
- To
-
-
-
-
-
- {# Cost display — shown when a slot is selected #}
-
- Estimated Cost: £0.00
-
-
- {# Summary of fixed times — shown for non-flexible slots #}
-
-
-
- {# Ticket Configuration #}
-
-
Ticket Configuration (Optional)
-
-
-
-
-
- Cancel
-
-
-
-
- Save entry
-
-
-
-
-{# --- Behaviour: lock / unlock times based on slot.flexible --- #}
-
\ No newline at end of file
diff --git a/events/templates/_types/day/_add_button.html b/events/templates/_types/day/_add_button.html
deleted file mode 100644
index a045b86..0000000
--- a/events/templates/_types/day/_add_button.html
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- + Add entry
-
diff --git a/events/templates/_types/day/_main_panel.html b/events/templates/_types/day/_main_panel.html
deleted file mode 100644
index 0eea6f0..0000000
--- a/events/templates/_types/day/_main_panel.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
- Name
- Slot/Time
- State
- Cost
- Tickets
- Actions
-
-
-
- {% for entry in day_entries %}
- {% include '_types/day/_row.html' %}
- {% else %}
- No entries yet.
- {% endfor %}
-
-
-
-
-
-
- {% include '_types/day/_add_button.html' %}
-
-
-
diff --git a/events/templates/_types/day/_nav.html b/events/templates/_types/day/_nav.html
deleted file mode 100644
index fc11d49..0000000
--- a/events/templates/_types/day/_nav.html
+++ /dev/null
@@ -1,39 +0,0 @@
-{% import 'macros/links.html' as links %}
-
-{# Confirmed Entries - vertical on mobile, horizontal with arrows on desktop #}
-
-
-{# Admin link #}
-{% if g.rights.admin %}
- {% from 'macros/admin_nav.html' import admin_nav_item %}
- {{admin_nav_item(
- url_for(
- 'calendar.day.admin.admin',
- calendar_slug=calendar.slug,
- year=day_date.year,
- month=day_date.month,
- day=day_date.day
- )
- )}}
-{% endif %}
\ No newline at end of file
diff --git a/events/templates/_types/day/_oob_elements.html b/events/templates/_types/day/_oob_elements.html
deleted file mode 100644
index 812e6b0..0000000
--- a/events/templates/_types/day/_oob_elements.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% extends "oob_elements.html" %}
-
-{% block oobs %}
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('calendar-header-child', 'day-header-child', '_types/day/header/_header.html')}}
-
- {% from '_types/calendar/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-
-{% block mobile_menu %}
- {% include '_types/day/_nav.html' %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/day/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/day/_row.html b/events/templates/_types/day/_row.html
deleted file mode 100644
index 0a4326a..0000000
--- a/events/templates/_types/day/_row.html
+++ /dev/null
@@ -1,74 +0,0 @@
-{% import 'macros/links.html' as links %}
-
-
-
- {% call links.link(
- url_for(
- 'calendar.day.calendar_entries.calendar_entry.get',
- calendar_slug=calendar.slug,
- day=day,
- month=month,
- year=year,
- entry_id=entry.id
- ),
- hx_select_search,
- aclass=styles.pill
- ) %}
- {{ entry.name }}
- {% endcall %}
-
-
-
- {% if entry.slot %}
-
- {% call links.link(
- url_for(
- 'calendar.slots.slot.defpage_slot_detail',
- calendar_slug=calendar.slug,
- slot_id=entry.slot.id
- ),
- hx_select_search,
- aclass=styles.pill
- ) %}
- {{ entry.slot.name }}
- {% endcall %}
-
- ({{ entry.slot.time_start.strftime('%H:%M') }}{% if entry.slot.time_end %} → {{ entry.slot.time_end.strftime('%H:%M') }}{% endif %})
-
-
- {% else %}
-
- {% include '_types/entry/_times.html' %}
-
- {% endif %}
-
-
-
- {% include '_types/entry/_state.html' %}
-
-
-
-
- £{{ ('%.2f'|format(entry.cost)) if entry.cost is not none else '0.00' }}
-
-
-
- {% if entry.ticket_price is not none %}
-
-
£{{ ('%.2f'|format(entry.ticket_price)) }}
-
- {% if entry.ticket_count is not none %}
- {{ entry.ticket_count }} tickets
- {% else %}
- Unlimited
- {% endif %}
-
-
- {% else %}
- No tickets
- {% endif %}
-
-
- {% include '_types/entry/_options.html' %}
-
-
\ No newline at end of file
diff --git a/events/templates/_types/day/admin/_main_panel.html b/events/templates/_types/day/admin/_main_panel.html
deleted file mode 100644
index f5c504d..0000000
--- a/events/templates/_types/day/admin/_main_panel.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% from 'macros/admin_nav.html' import placeholder_nav %}
-{{ placeholder_nav() }}
diff --git a/events/templates/_types/day/admin/_nav.html b/events/templates/_types/day/admin/_nav.html
deleted file mode 100644
index f5c504d..0000000
--- a/events/templates/_types/day/admin/_nav.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% from 'macros/admin_nav.html' import placeholder_nav %}
-{{ placeholder_nav() }}
diff --git a/events/templates/_types/day/admin/_nav_entries_oob.html b/events/templates/_types/day/admin/_nav_entries_oob.html
deleted file mode 100644
index 4fb9baf..0000000
--- a/events/templates/_types/day/admin/_nav_entries_oob.html
+++ /dev/null
@@ -1,33 +0,0 @@
-{# OOB swap for day confirmed entries nav when entries are edited #}
-{% import 'macros/links.html' as links %}
-
-{# Confirmed Entries - vertical on mobile, horizontal with arrows on desktop #}
-{% if confirmed_entries %}
-
-{% else %}
- {# Empty placeholder to remove nav entries when none are confirmed #}
-
-{% endif %}
diff --git a/events/templates/_types/day/admin/_oob_elements.html b/events/templates/_types/day/admin/_oob_elements.html
deleted file mode 100644
index 20986bf..0000000
--- a/events/templates/_types/day/admin/_oob_elements.html
+++ /dev/null
@@ -1,25 +0,0 @@
-{% extends 'oob_elements.html' %}
-
-{# OOB elements for calendar admin page #}
-
-{# Import shared OOB macros #}
-{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %}
-{% from '_types/root/_oob_menu.html' import mobile_menu with context %}
-
-
-{% block oobs %}
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('day-header-child', 'day-admin-header-child', '_types/day/admin/header/_header.html')}}
-
- {% from '_types/calendar/header/_header.html' import header_row with context %}
- {{header_row(oob=True)}}
-{% endblock %}
-
-
-{% block mobile_menu %}
- {% include '_types/day/admin/_nav.html' %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/day/admin/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/day/admin/header/_header.html b/events/templates/_types/day/admin/header/_header.html
deleted file mode 100644
index 0a4f3bb..0000000
--- a/events/templates/_types/day/admin/header/_header.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='day-admin-row', oob=oob) %}
- {% call links.link(
- url_for(
- 'calendar.day.admin.admin',
- calendar_slug=calendar.slug,
- year=day_date.year,
- month=day_date.month,
- day=day_date.day
- ),
- hx_select_search
- ) %}
- {{ links.admin() }}
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/day/admin/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
\ No newline at end of file
diff --git a/events/templates/_types/day/admin/index.html b/events/templates/_types/day/admin/index.html
deleted file mode 100644
index f4f37b5..0000000
--- a/events/templates/_types/day/admin/index.html
+++ /dev/null
@@ -1,24 +0,0 @@
-{% extends '_types/day/index.html' %}
-{% import 'macros/layout.html' as layout %}
-{% import 'macros/links.html' as links %}
-
-
-{% block day_header_child %}
- {% from '_types/root/_n/macros.html' import header with context %}
- {% call header() %}
- {% from '_types/day/admin/header/_header.html' import header_row with context %}
- {{ header_row() }}
-
- {% endcall %}
-{% endblock %}
-
-{% block _main_mobile_menu %}
- {% include '_types/day/admin/_nav.html' %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/day/admin/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/day/header/_header.html b/events/templates/_types/day/header/_header.html
deleted file mode 100644
index 2f2e999..0000000
--- a/events/templates/_types/day/header/_header.html
+++ /dev/null
@@ -1,26 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='day-row', oob=oob) %}
- {% call links.link(
- url_for(
- 'calendar.day.show_day',
- calendar_slug=calendar.slug,
- year=day_date.year,
- month=day_date.month,
- day=day_date.day
- ),
- hx_select_search,
- ) %}
-
-
- {{ day_date.strftime('%A %d %B %Y') }}
-
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/day/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
-
-
-
diff --git a/events/templates/_types/day/index.html b/events/templates/_types/day/index.html
deleted file mode 100644
index 655ee55..0000000
--- a/events/templates/_types/day/index.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% extends '_types/calendar/index.html' %}
-
-{% block calendar_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('day-header-child', '_types/day/header/_header.html') %}
- {% block day_header_child %}
- {% endblock %}
- {% endcall %}
-{% endblock %}
-
-{% block _main_mobile_menu %}
- {% include '_types/day/_nav.html' %}
-{% endblock %}
-
-
-{% block content %}
- {% include '_types/day/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/entry/_edit.html b/events/templates/_types/entry/_edit.html
deleted file mode 100644
index 1a6ff8c..0000000
--- a/events/templates/_types/entry/_edit.html
+++ /dev/null
@@ -1,332 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Slot
-
- {% if day_slots %}
-
- {% for slot in day_slots %}
-
- {{ slot.name }}
- ({{ slot.time_start.strftime('%H:%M') }}
- {% if slot.time_end %}–{{ slot.time_end.strftime('%H:%M') }}{% else %}–open-ended{% endif %})
- {% if slot.flexible %}[flexible]{% endif %}
-
- {% endfor %}
-
- {% else %}
-
- No slots defined for this day.
-
- {% endif %}
-
-
-
-
-
-
- From
-
-
-
-
-
-
- To
-
-
-
-
-
-
-
-
-
-
-
-
- Estimated Cost: £{{ ('%.2f'|format(entry.cost)) if entry.cost is not none else '0.00' }}
-
-
-
-
-
Ticket Configuration
-
-
-
-
- Ticket Price (£)
-
-
-
Leave empty if no tickets needed
-
-
-
-
- Total Tickets
-
-
-
Leave empty for unlimited
-
-
-
-
-
-
-
-
- Cancel
-
-
-
-
-
- Save entry
-
-
-
-
-
-
-
-{# --- Behaviour: lock / unlock times based on slot.flexible --- #}
-
\ No newline at end of file
diff --git a/events/templates/_types/entry/_main_panel.html b/events/templates/_types/entry/_main_panel.html
deleted file mode 100644
index 7b7a24d..0000000
--- a/events/templates/_types/entry/_main_panel.html
+++ /dev/null
@@ -1,128 +0,0 @@
-
-
-
-
-
- Name
-
-
- {{ entry.name }}
-
-
-
-
-
-
- Slot
-
-
- {% if entry.slot %}
-
- {{ entry.slot.name }}
-
- {% if entry.slot.flexible %}
- (flexible)
- {% else %}
- (fixed)
- {% endif %}
- {% else %}
- No slot assigned
- {% endif %}
-
-
-
-
-
-
- Time Period
-
-
- {{ entry.start_at.strftime('%H:%M') }}
- {% if entry.end_at %}
- – {{ entry.end_at.strftime('%H:%M') }}
- {% else %}
- – open-ended
- {% endif %}
-
-
-
-
-
-
- State
-
-
-
- {% include '_types/entry/_state.html' %}
-
-
-
-
-
-
-
- Cost
-
-
-
- £{{ ('%.2f'|format(entry.cost)) if entry.cost is not none else '0.00' }}
-
-
-
-
-
-
-
- Tickets
-
-
- {% include '_types/entry/_tickets.html' %}
-
-
-
-
- {% include '_types/tickets/_buy_form.html' %}
-
-
-
-
- Date
-
-
- {{ entry.start_at.strftime('%A, %B %d, %Y') }}
-
-
-
-
-
-
- Associated Posts
-
-
- {% include '_types/entry/_posts.html' %}
-
-
-
-
-
- {% include '_types/entry/_options.html' %}
-
-
- Edit
-
-
-
-
\ No newline at end of file
diff --git a/events/templates/_types/entry/_nav.html b/events/templates/_types/entry/_nav.html
deleted file mode 100644
index bfce783..0000000
--- a/events/templates/_types/entry/_nav.html
+++ /dev/null
@@ -1,39 +0,0 @@
-{% import 'macros/links.html' as links %}
-
-{# Associated Posts - vertical on mobile, horizontal with arrows on desktop #}
-
- {% from 'macros/scrolling_menu.html' import scrolling_menu with context %}
- {% call(entry_post) scrolling_menu('entry-posts-container', entry_posts) %}
-
- {% if entry_post.feature_image %}
-
- {% else %}
-
- {% endif %}
-
-
{{ entry_post.title }}
-
-
- {% endcall %}
-
-
-{# Admin link #}
-{% if g.rights.admin %}
-
- {% from 'macros/admin_nav.html' import admin_nav_item %}
- {{admin_nav_item(
- url_for(
- 'calendar.day.calendar_entries.calendar_entry.admin.admin',
- calendar_slug=calendar.slug,
- day=day,
- month=month,
- year=year,
- entry_id=entry.id
- )
- )}}
-{% endif %}
diff --git a/events/templates/_types/entry/_oob_elements.html b/events/templates/_types/entry/_oob_elements.html
deleted file mode 100644
index 8981fa1..0000000
--- a/events/templates/_types/entry/_oob_elements.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% extends "oob_elements.html" %}
-
-{% block oobs %}
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('day-header-child', 'entry-header-child', '_types/entry/header/_header.html')}}
-
- {% from '_types/day/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-
-{% block mobile_menu %}
- {% include '_types/entry/_nav.html' %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/entry/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/entry/_optioned.html b/events/templates/_types/entry/_optioned.html
deleted file mode 100644
index e4ec3c5..0000000
--- a/events/templates/_types/entry/_optioned.html
+++ /dev/null
@@ -1,9 +0,0 @@
-
-{% include '_types/entry/_options.html' %}
-
- {% include '_types/entry/_title.html' %}
-
-
-
- {% include '_types/entry/_state.html' %}
-
\ No newline at end of file
diff --git a/events/templates/_types/entry/_options.html b/events/templates/_types/entry/_options.html
deleted file mode 100644
index 748760f..0000000
--- a/events/templates/_types/entry/_options.html
+++ /dev/null
@@ -1,95 +0,0 @@
-
- {% if entry.state == 'provisional' %}
-
-
-
-
- confirm
-
-
-
-
-
-
- decline
-
-
- {% endif %}
- {% if entry.state == 'confirmed' %}
-
-
-
-
-
- provisional
-
-
- {% endif %}
-
\ No newline at end of file
diff --git a/events/templates/_types/entry/_post_search_results.html b/events/templates/_types/entry/_post_search_results.html
deleted file mode 100644
index 29b5308..0000000
--- a/events/templates/_types/entry/_post_search_results.html
+++ /dev/null
@@ -1,72 +0,0 @@
-{% for search_post in search_posts %}
-
-
-
-
- {% if search_post.feature_image %}
-
- {% else %}
-
- {% endif %}
- {{ search_post.title }}
-
-
-{% endfor %}
-
-{# Infinite scroll sentinel #}
-{% if page < total_pages|int %}
-
-
- Loading more...
-
-
- Connection error. Retrying...
-
-
-{% elif search_posts %}
-
- End of results
-
-{% endif %}
diff --git a/events/templates/_types/entry/_posts.html b/events/templates/_types/entry/_posts.html
deleted file mode 100644
index 92d5f33..0000000
--- a/events/templates/_types/entry/_posts.html
+++ /dev/null
@@ -1,72 +0,0 @@
-
-
- {% if entry_posts %}
-
- {% for entry_post in entry_posts %}
-
- {% if entry_post.feature_image %}
-
- {% else %}
-
- {% endif %}
-
{{ entry_post.title }}
-
- Remove
-
-
- {% endfor %}
-
- {% else %}
-
No posts associated
- {% endif %}
-
-
-
-
diff --git a/events/templates/_types/entry/_state.html b/events/templates/_types/entry/_state.html
deleted file mode 100644
index b67254a..0000000
--- a/events/templates/_types/entry/_state.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{% if entry.state %}
-
- {{ entry.state|capitalize }}
-
- {% endif %}
\ No newline at end of file
diff --git a/events/templates/_types/entry/_tickets.html b/events/templates/_types/entry/_tickets.html
deleted file mode 100644
index c05f8f0..0000000
--- a/events/templates/_types/entry/_tickets.html
+++ /dev/null
@@ -1,104 +0,0 @@
-{% if entry.ticket_price is not none %}
- {# Tickets are configured #}
-
-
- Price:
-
- £{{ ('%.2f'|format(entry.ticket_price)) }}
-
-
-
- Available:
-
- {% if entry.ticket_count is not none %}
- {{ entry.ticket_count }} tickets
- {% else %}
- Unlimited
- {% endif %}
-
-
-
- Edit ticket config
-
-
-{% else %}
- {# No tickets configured #}
-
- No tickets configured
-
- Configure tickets
-
-
-{% endif %}
-
-{# Ticket configuration form (hidden by default) #}
-
-
-
-
- Ticket Price (£)
-
-
-
-
-
-
- Total Tickets
-
-
-
-
-
-
- Save
-
-
- Cancel
-
-
-
diff --git a/events/templates/_types/entry/_times.html b/events/templates/_types/entry/_times.html
deleted file mode 100644
index 3543fe4..0000000
--- a/events/templates/_types/entry/_times.html
+++ /dev/null
@@ -1,5 +0,0 @@
-{% from 'macros/date.html' import t %}
-
- {{ t(entry.start_at) }}
- {% if entry.end_at %} → {{ t(entry.end_at) }}{% endif %}
-
\ No newline at end of file
diff --git a/events/templates/_types/entry/_title.html b/events/templates/_types/entry/_title.html
deleted file mode 100644
index 3c1dc63..0000000
--- a/events/templates/_types/entry/_title.html
+++ /dev/null
@@ -1,3 +0,0 @@
-
- {{ entry.name }}
- {% include '_types/entry/_state.html' %}
diff --git a/events/templates/_types/entry/admin/_main_panel.html b/events/templates/_types/entry/admin/_main_panel.html
deleted file mode 100644
index f5c504d..0000000
--- a/events/templates/_types/entry/admin/_main_panel.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% from 'macros/admin_nav.html' import placeholder_nav %}
-{{ placeholder_nav() }}
diff --git a/events/templates/_types/entry/admin/_nav.html b/events/templates/_types/entry/admin/_nav.html
deleted file mode 100644
index 54191d6..0000000
--- a/events/templates/_types/entry/admin/_nav.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% call links.link(
- url_for(
- 'calendar.day.calendar_entries.calendar_entry.ticket_types.get',
- calendar_slug=calendar.slug,
- entry_id=entry.id,
- year=year,
- month=month,
- day=day
- ),
- hx_select_search,
- select_colours,
- True,
- aclass=styles.nav_button,
-)%}
- ticket_types
-{% endcall %}
diff --git a/events/templates/_types/entry/admin/_nav_posts_oob.html b/events/templates/_types/entry/admin/_nav_posts_oob.html
deleted file mode 100644
index 00a27a0..0000000
--- a/events/templates/_types/entry/admin/_nav_posts_oob.html
+++ /dev/null
@@ -1,31 +0,0 @@
-{# OOB swap for entry posts nav when posts are associated/disassociated #}
-{% import 'macros/links.html' as links %}
-
-{# Associated Posts - vertical on mobile, horizontal with arrows on desktop #}
-{% if entry_posts %}
-
- {% from 'macros/scrolling_menu.html' import scrolling_menu with context %}
- {% call(entry_post) scrolling_menu('entry-posts-container', entry_posts) %}
-
- {% if entry_post.feature_image %}
-
- {% else %}
-
- {% endif %}
-
-
{{ entry_post.title }}
-
-
- {% endcall %}
-
-{% else %}
- {# Empty placeholder to remove nav posts when all are disassociated #}
-
-{% endif %}
diff --git a/events/templates/_types/entry/admin/_oob_elements.html b/events/templates/_types/entry/admin/_oob_elements.html
deleted file mode 100644
index bcf2255..0000000
--- a/events/templates/_types/entry/admin/_oob_elements.html
+++ /dev/null
@@ -1,25 +0,0 @@
-{% extends 'oob_elements.html' %}
-
-{# OOB elements for calendar admin page #}
-
-{# Import shared OOB macros #}
-{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %}
-{% from '_types/root/_oob_menu.html' import mobile_menu with context %}
-
-
-{% block oobs %}
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('entry-header-child', 'entry-admin-header-child', '_types/entry/admin/header/_header.html')}}
-
- {% from '_types/entry/header/_header.html' import header_row with context %}
- {{header_row(oob=True)}}
-{% endblock %}
-
-
-{% block mobile_menu %}
- {% include '_types/entry/admin/_nav.html' %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/entry/admin/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/entry/admin/header/_header.html b/events/templates/_types/entry/admin/header/_header.html
deleted file mode 100644
index 9179eaf..0000000
--- a/events/templates/_types/entry/admin/header/_header.html
+++ /dev/null
@@ -1,21 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='entry-admin-row', oob=oob) %}
- {% call links.link(
- url_for(
- 'calendar.day.calendar_entries.calendar_entry.admin.admin',
- calendar_slug=calendar.slug,
- day=day,
- month=month,
- year=year,
- entry_id=entry.id
- ),
- hx_select_search
- ) %}
- {{ links.admin() }}
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/entry/admin/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
\ No newline at end of file
diff --git a/events/templates/_types/entry/admin/index.html b/events/templates/_types/entry/admin/index.html
deleted file mode 100644
index caa100c..0000000
--- a/events/templates/_types/entry/admin/index.html
+++ /dev/null
@@ -1,24 +0,0 @@
-{% extends '_types/entry/index.html' %}
-{% import 'macros/layout.html' as layout %}
-{% import 'macros/links.html' as links %}
-
-
-{% block entry_header_child %}
- {% from '_types/root/_n/macros.html' import header with context %}
- {% call header() %}
- {% from '_types/entry/admin/header/_header.html' import header_row with context %}
- {{ header_row() }}
-
- {% endcall %}
-{% endblock %}
-
-{% block _main_mobile_menu %}
- {% include '_types/entry/admin/_nav.html' %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/entry/admin/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/entry/header/_header.html b/events/templates/_types/entry/header/_header.html
deleted file mode 100644
index 863d43c..0000000
--- a/events/templates/_types/entry/header/_header.html
+++ /dev/null
@@ -1,27 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='entry-row', oob=oob) %}
- {% call links.link(
- url_for(
- 'calendar.day.calendar_entries.calendar_entry.get',
- calendar_slug=calendar.slug,
- day=day,
- month=month,
- year=year,
- entry_id=entry.id
- ),
- hx_select_search,
- ) %}
-
- {% include '_types/entry/_title.html' %}
- {% include '_types/entry/_times.html' %}
-
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/entry/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
-
-
-
diff --git a/events/templates/_types/entry/index.html b/events/templates/_types/entry/index.html
deleted file mode 100644
index a980f46..0000000
--- a/events/templates/_types/entry/index.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends '_types/day/index.html' %}
-
-{% block day_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('entry-header-child', '_types/entry/header/_header.html') %}
- {% block entry_header_child %}
- {% endblock %}
- {% endcall %}
-{% endblock %}
-
-
-{% block _main_mobile_menu %}
- {% include '_types/entry/_nav.html' %}
-{% endblock %}
-
-
-
-{% block content %}
-{% include '_types/entry/_main_panel.html' %}
-{% endblock %}
\ No newline at end of file
diff --git a/events/templates/_types/markets/_main_panel.html b/events/templates/_types/markets/_main_panel.html
deleted file mode 100644
index c376bc7..0000000
--- a/events/templates/_types/markets/_main_panel.html
+++ /dev/null
@@ -1,25 +0,0 @@
-
- {% if has_access('markets.create_market') %}
-
-
-
-
-
- Name
-
-
- Add market
-
- {% endif %}
-
- {% include "_types/markets/_markets_list.html" %}
-
-
diff --git a/events/templates/_types/markets/_markets_list.html b/events/templates/_types/markets/_markets_list.html
deleted file mode 100644
index 986190e..0000000
--- a/events/templates/_types/markets/_markets_list.html
+++ /dev/null
@@ -1,37 +0,0 @@
- {% for m in markets %}
-
- {% else %}
- No markets yet. Create one above.
- {% endfor %}
diff --git a/events/templates/_types/markets/_nav.html b/events/templates/_types/markets/_nav.html
deleted file mode 100644
index f5c504d..0000000
--- a/events/templates/_types/markets/_nav.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% from 'macros/admin_nav.html' import placeholder_nav %}
-{{ placeholder_nav() }}
diff --git a/events/templates/_types/markets/_oob_elements.html b/events/templates/_types/markets/_oob_elements.html
deleted file mode 100644
index 93ec6d7..0000000
--- a/events/templates/_types/markets/_oob_elements.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{% extends 'oob_elements.html' %}
-
-{% from '_types/root/_oob_menu.html' import mobile_menu with context %}
-
-{% block oobs %}
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('post-admin-header-child', 'markets-header-child', '_types/markets/header/_header.html')}}
-
- {% from '_types/post/admin/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-{% block mobile_menu %}
- {% include '_types/markets/_nav.html' %}
-{% endblock %}
-
-{% block content %}
- {% include "_types/markets/_main_panel.html" %}
-{% endblock %}
diff --git a/events/templates/_types/markets/header/_header.html b/events/templates/_types/markets/header/_header.html
deleted file mode 100644
index a0f247f..0000000
--- a/events/templates/_types/markets/header/_header.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='markets-row', oob=oob) %}
- {% call links.link(url_for('markets.defpage_events_markets'), hx_select_search) %}
-
-
- Markets
-
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/markets/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
diff --git a/events/templates/_types/markets/index.html b/events/templates/_types/markets/index.html
deleted file mode 100644
index cb05b12..0000000
--- a/events/templates/_types/markets/index.html
+++ /dev/null
@@ -1,23 +0,0 @@
-{% extends '_types/root/_index.html' %}
-
-{% block meta %}{% endblock %}
-
-{% block root_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('post-header-child', '_types/post/header/_header.html') %}
- {% call index_row('post-admin-header-child', '_types/post/admin/header/_header.html') %}
- {% call index_row('markets-header-child', '_types/markets/header/_header.html') %}
- {% block markets_header_child %}
- {% endblock %}
- {% endcall %}
- {% endcall %}
- {% endcall %}
-{% endblock %}
-
-{% block _main_mobile_menu %}
- {% include '_types/markets/_nav.html' %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/markets/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/page_summary/_card.html b/events/templates/_types/page_summary/_card.html
deleted file mode 100644
index 3223d76..0000000
--- a/events/templates/_types/page_summary/_card.html
+++ /dev/null
@@ -1,49 +0,0 @@
-{# List card for page summary — one entry #}
-{% set pi = page_info.get(entry.calendar_container_id, {}) %}
-{% set page_slug = pi.get('slug', post.slug) %}
-{% set page_title = pi.get('title') %}
-
-
- {# Left: event info #}
-
- {% set day_href = events_url('/' ~ page_slug ~ '/' ~ entry.calendar_slug ~ '/day/' ~ entry.start_at.strftime('%Y/%-m/%-d') ~ '/') %}
- {% set entry_href = day_href ~ 'entries/' ~ entry.id ~ '/' %}
-
- {{ entry.name }}
-
-
-
- {% if page_title and page_title != post.title %}
-
- {{ page_title }}
-
- {% endif %}
- {% if entry.calendar_name %}
-
- {{ entry.calendar_name }}
-
- {% endif %}
-
-
-
- {{ entry.start_at.strftime('%H:%M') }}{% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %}
-
-
- {% if entry.cost %}
-
- £{{ '%.2f'|format(entry.cost) }}
-
- {% endif %}
-
-
- {# Right: ticket widget #}
- {% if entry.ticket_price is not none %}
-
- {% set qty = pending_tickets.get(entry.id, 0) %}
- {% set ticket_url = url_for('page_summary.adjust_ticket') %}
- {% include '_types/page_summary/_ticket_widget.html' %}
-
- {% endif %}
-
-
diff --git a/events/templates/_types/page_summary/_card_tile.html b/events/templates/_types/page_summary/_card_tile.html
deleted file mode 100644
index 5144386..0000000
--- a/events/templates/_types/page_summary/_card_tile.html
+++ /dev/null
@@ -1,48 +0,0 @@
-{# Tile card for page summary — compact event tile #}
-{% set pi = page_info.get(entry.calendar_container_id, {}) %}
-{% set page_slug = pi.get('slug', post.slug) %}
-{% set page_title = pi.get('title') %}
-
- {% set day_href = events_url('/' ~ page_slug ~ '/' ~ entry.calendar_slug ~ '/day/' ~ entry.start_at.strftime('%Y/%-m/%-d') ~ '/') %}
- {% set entry_href = day_href ~ 'entries/' ~ entry.id ~ '/' %}
-
-
- {{ entry.name }}
-
-
-
- {% if page_title and page_title != post.title %}
-
- {{ page_title }}
-
- {% endif %}
- {% if entry.calendar_name %}
-
- {{ entry.calendar_name }}
-
- {% endif %}
-
-
-
-
{{ entry.start_at.strftime('%a %-d %b') }}
- ·
- {{ entry.start_at.strftime('%H:%M') }}{% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %}
-
-
- {% if entry.cost %}
-
- £{{ '%.2f'|format(entry.cost) }}
-
- {% endif %}
-
-
- {# Ticket widget below card #}
- {% if entry.ticket_price is not none %}
-
- {% set qty = pending_tickets.get(entry.id, 0) %}
- {% set ticket_url = url_for('page_summary.adjust_ticket') %}
- {% include '_types/page_summary/_ticket_widget.html' %}
-
- {% endif %}
-
diff --git a/events/templates/_types/page_summary/_cards.html b/events/templates/_types/page_summary/_cards.html
deleted file mode 100644
index 2ae4c83..0000000
--- a/events/templates/_types/page_summary/_cards.html
+++ /dev/null
@@ -1,31 +0,0 @@
-{% for entry in entries %}
- {% if view == 'tile' %}
- {% include "_types/page_summary/_card_tile.html" %}
- {% else %}
- {# Date header when date changes (list view only) #}
- {% set entry_date = entry.start_at.strftime('%A %-d %B %Y') %}
- {% if loop.first or entry_date != entries[loop.index0 - 1].start_at.strftime('%A %-d %B %Y') %}
-
-
- {{ entry_date }}
-
-
- {% endif %}
- {% include "_types/page_summary/_card.html" %}
- {% endif %}
-{% endfor %}
-{% if has_more %}
- {# Infinite scroll sentinel #}
- {% set entries_url = url_for('page_summary.entries_fragment', page=page + 1, view=view if view != 'list' else '')|host %}
-
-{% endif %}
diff --git a/events/templates/_types/page_summary/_main_panel.html b/events/templates/_types/page_summary/_main_panel.html
deleted file mode 100644
index 168d050..0000000
--- a/events/templates/_types/page_summary/_main_panel.html
+++ /dev/null
@@ -1,54 +0,0 @@
-{# View toggle bar - desktop only #}
-
- {% set list_href = (current_local_href ~ {'view': None}|qs)|host %}
- {% set tile_href = (current_local_href ~ {'view': 'tile'}|qs)|host %}
-
-
-
-
-
-
-
-
-
-
-
-
-{# Cards container - list or grid based on view #}
-{% if entries %}
- {% if view == 'tile' %}
-
- {% include "_types/page_summary/_cards.html" %}
-
- {% else %}
-
- {% include "_types/page_summary/_cards.html" %}
-
- {% endif %}
-{% else %}
-
-{% endif %}
-
diff --git a/events/templates/_types/page_summary/_ticket_widget.html b/events/templates/_types/page_summary/_ticket_widget.html
deleted file mode 100644
index cd85e95..0000000
--- a/events/templates/_types/page_summary/_ticket_widget.html
+++ /dev/null
@@ -1,63 +0,0 @@
-{# Inline ticket +/- widget for page summary cards.
- Variables: entry, qty, ticket_url
- Wrapped in a div with stable ID for HTMX targeting. #}
-
-
£{{ '%.2f'|format(entry.ticket_price) }}
-
- {% if qty == 0 %}
-
-
-
-
-
-
-
-
- {% else %}
-
-
-
-
- -
-
-
-
-
-
-
- {{ qty }}
-
-
-
-
-
-
-
-
- +
-
- {% endif %}
-
diff --git a/events/templates/_types/page_summary/index.html b/events/templates/_types/page_summary/index.html
deleted file mode 100644
index d084317..0000000
--- a/events/templates/_types/page_summary/index.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends '_types/root/_index.html' %}
-
-{% block meta %}{% endblock %}
-
-{% block root_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('post-header-child', '_types/post/header/_header.html') %}
- {% block post_header_child %}
- {% endblock %}
- {% endcall %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/page_summary/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/payments/_main_panel.html b/events/templates/_types/payments/_main_panel.html
deleted file mode 100644
index 1b841ef..0000000
--- a/events/templates/_types/payments/_main_panel.html
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
- SumUp Payment
-
-
- Configure per-page SumUp credentials. Leave blank to use the global merchant account.
-
-
-
-
-
-
- Merchant Code
-
-
-
-
-
API Key
-
- {% if sumup_configured %}
-
Key is set. Leave blank to keep current key.
- {% endif %}
-
-
-
- Checkout Reference Prefix
-
-
-
-
- Save SumUp Settings
-
-
- {% if sumup_configured %}
-
- Connected
-
- {% endif %}
-
-
-
diff --git a/events/templates/_types/payments/_nav.html b/events/templates/_types/payments/_nav.html
deleted file mode 100644
index f5c504d..0000000
--- a/events/templates/_types/payments/_nav.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% from 'macros/admin_nav.html' import placeholder_nav %}
-{{ placeholder_nav() }}
diff --git a/events/templates/_types/payments/_oob_elements.html b/events/templates/_types/payments/_oob_elements.html
deleted file mode 100644
index 5232f7e..0000000
--- a/events/templates/_types/payments/_oob_elements.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{% extends 'oob_elements.html' %}
-
-{% from '_types/root/_oob_menu.html' import mobile_menu with context %}
-
-{% block oobs %}
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('post-admin-header-child', 'payments-header-child', '_types/payments/header/_header.html')}}
-
- {% from '_types/post/admin/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-{% block mobile_menu %}
- {% include '_types/payments/_nav.html' %}
-{% endblock %}
-
-{% block content %}
- {% include "_types/payments/_main_panel.html" %}
-{% endblock %}
diff --git a/events/templates/_types/payments/header/_header.html b/events/templates/_types/payments/header/_header.html
deleted file mode 100644
index 282aac6..0000000
--- a/events/templates/_types/payments/header/_header.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='payments-row', oob=oob) %}
- {% call links.link(url_for('payments.home'), hx_select_search) %}
-
-
- Payments
-
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/payments/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
diff --git a/events/templates/_types/payments/index.html b/events/templates/_types/payments/index.html
deleted file mode 100644
index 721145c..0000000
--- a/events/templates/_types/payments/index.html
+++ /dev/null
@@ -1,23 +0,0 @@
-{% extends '_types/root/_index.html' %}
-
-{% block meta %}{% endblock %}
-
-{% block root_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('post-header-child', '_types/post/header/_header.html') %}
- {% call index_row('post-admin-header-child', '_types/post/admin/header/_header.html') %}
- {% call index_row('payments-header-child', '_types/payments/header/_header.html') %}
- {% block payments_header_child %}
- {% endblock %}
- {% endcall %}
- {% endcall %}
- {% endcall %}
-{% endblock %}
-
-{% block _main_mobile_menu %}
- {% include '_types/payments/_nav.html' %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/payments/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/post/_nav.html b/events/templates/_types/post/_nav.html
deleted file mode 100644
index b563e18..0000000
--- a/events/templates/_types/post/_nav.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% if calendars %}
- {% for calendar in calendars %}
- {% call links.link(url_for('calendar.get', calendar_slug=calendar.slug), hx_select_search, select_colours, True, aclass=styles.nav_button_less_pad) %}
-
- {{ calendar.name }}
- {% endcall %}
- {% endfor %}
-{% endif %}
-{% if g.rights.admin %}
-
-
-
-{% endif %}
diff --git a/events/templates/_types/post/admin/_associated_entries.html b/events/templates/_types/post/admin/_associated_entries.html
deleted file mode 100644
index d5538e4..0000000
--- a/events/templates/_types/post/admin/_associated_entries.html
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
Associated Entries
- {% if associated_entry_ids %}
-
- {% for calendar in all_calendars %}
- {% for entry in calendar.entries %}
- {% if entry.id in associated_entry_ids and entry.deleted_at is none %}
-
-
- {% if calendar.post.feature_image %}
-
- {% else %}
-
- {% endif %}
-
-
{{ entry.name }}
-
- {{ calendar.name }} • {{ entry.start_at.strftime('%A, %B %d, %Y at %H:%M') }}
- {% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %}
-
-
-
-
-
- {% endif %}
- {% endfor %}
- {% endfor %}
-
- {% else %}
-
No entries associated yet. Browse calendars below to add entries.
- {% endif %}
-
diff --git a/events/templates/_types/post/admin/_nav.html b/events/templates/_types/post/admin/_nav.html
deleted file mode 100644
index 4be48c7..0000000
--- a/events/templates/_types/post/admin/_nav.html
+++ /dev/null
@@ -1,36 +0,0 @@
-{% import 'macros/links.html' as links %}
-
-
-
-
-
-
-
diff --git a/events/templates/_types/post/admin/_nav_entries_oob.html b/events/templates/_types/post/admin/_nav_entries_oob.html
deleted file mode 100644
index a661658..0000000
--- a/events/templates/_types/post/admin/_nav_entries_oob.html
+++ /dev/null
@@ -1,34 +0,0 @@
-{# OOB swap for nav entries and calendars when toggling associations or editing calendars #}
-{% from 'macros/nav_entries.html' import nav_entries_oob %}
-
-{% set has_items = (associated_entries and associated_entries.entries) or calendars %}
-{% call nav_entries_oob(has_items) %}
- {% if associated_entries and associated_entries.entries %}
- {% for entry in associated_entries.entries %}
- {% set _entry_path = '/' + post.slug + '/' +entry.calendar_slug + '/' + entry.start_at.year|string + '/' + entry.start_at.month|string + '/' + entry.start_at.day|string + '/entries/' + entry.id|string + '/' %}
-
-
-
-
{{ entry.name }}
-
- {{ entry.start_at.strftime('%b %d, %Y at %H:%M') }}
- {% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %}
-
-
-
- {% endfor %}
- {% endif %}
- {% if calendars %}
- {% for calendar in calendars %}
- {% set local_href=events_url('/' + post.slug + '/' +calendar.slug + '/') %}
-
-
- {{calendar.name}}
-
- {% endfor %}
- {% endif %}
-{% endcall %}
diff --git a/events/templates/_types/post/admin/header/_header.html b/events/templates/_types/post/admin/header/_header.html
deleted file mode 100644
index 9056d09..0000000
--- a/events/templates/_types/post/admin/header/_header.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='post-admin-row', oob=oob) %}
-
- {{ links.admin() }}
-
- {% call links.desktop_nav() %}
- {% include '_types/post/admin/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
diff --git a/events/templates/_types/post/header/_header.html b/events/templates/_types/post/header/_header.html
deleted file mode 100644
index 6655eb5..0000000
--- a/events/templates/_types/post/header/_header.html
+++ /dev/null
@@ -1,28 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='post-row', oob=oob) %}
- {% call links.link(blog_url('/' + post.slug + '/'), hx_select_search ) %}
- {% if post.feature_image %}
-
- {% endif %}
-
- {{ post.title | truncate(160, True, '…') }}
-
- {% endcall %}
- {% call links.desktop_nav() %}
- {% if page_cart_count is defined and page_cart_count > 0 %}
-
-
- {{ page_cart_count }}
-
- {% endif %}
- {% include '_types/post/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
\ No newline at end of file
diff --git a/events/templates/_types/post_entries/_main_panel.html b/events/templates/_types/post_entries/_main_panel.html
deleted file mode 100644
index fe5b80c..0000000
--- a/events/templates/_types/post_entries/_main_panel.html
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
- {# Associated Entries List #}
- {% include '_types/post/admin/_associated_entries.html' %}
-
- {# Calendars Browser #}
-
-
Browse Calendars
- {% for calendar in all_calendars %}
-
-
- {% if calendar.post.feature_image %}
-
- {% else %}
-
- {% endif %}
-
-
-
- {{ calendar.name }}
-
-
- {{ calendar.post.title }}
-
-
-
-
-
- {% else %}
-
No calendars found.
- {% endfor %}
-
-
\ No newline at end of file
diff --git a/events/templates/_types/post_entries/_nav.html b/events/templates/_types/post_entries/_nav.html
deleted file mode 100644
index f5c504d..0000000
--- a/events/templates/_types/post_entries/_nav.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% from 'macros/admin_nav.html' import placeholder_nav %}
-{{ placeholder_nav() }}
diff --git a/events/templates/_types/post_entries/header/_header.html b/events/templates/_types/post_entries/header/_header.html
deleted file mode 100644
index 18859eb..0000000
--- a/events/templates/_types/post_entries/header/_header.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='post_entries-row', oob=oob) %}
- {% call links.link(blog_url('/' + post.slug + '/admin/entries/'), hx_select_search) %}
-
-
- entries
-
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/post_entries/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
-
-
-
diff --git a/events/templates/_types/slot/__description.html b/events/templates/_types/slot/__description.html
deleted file mode 100644
index b9ae8df..0000000
--- a/events/templates/_types/slot/__description.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% macro description(slot, oob=False) %}
-
- {{ slot.description or ''}}
-
-
-{% endmacro %}
diff --git a/events/templates/_types/slot/_description.html b/events/templates/_types/slot/_description.html
deleted file mode 100644
index 32e28e6..0000000
--- a/events/templates/_types/slot/_description.html
+++ /dev/null
@@ -1,5 +0,0 @@
-
- {% if slot.description %}
- {{ slot.description }}
- {% endif %}
-
diff --git a/events/templates/_types/slot/_edit.html b/events/templates/_types/slot/_edit.html
deleted file mode 100644
index cdbeddc..0000000
--- a/events/templates/_types/slot/_edit.html
+++ /dev/null
@@ -1,180 +0,0 @@
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Cost
-
-
-
-
-
-
-
- Start time
-
-
-
-
-
-
-
- End time
-
-
-
-
-
-
-
- Description
-
- {{ slot.description or '' }}
-
-
-
-
-
- Days
-
-
- {# pre-check "All" if every day is true on this slot #}
- {% set all_days_checked =
- slot|getattr('mon')
- and slot|getattr('tue')
- and slot|getattr('wed')
- and slot|getattr('thu')
- and slot|getattr('fri')
- and slot|getattr('sat')
- and slot|getattr('sun') %}
-
-
- {# "All" toggle – no name so it’s not submitted #}
-
-
- All
-
-
- {# Individual days, with data-day like the add form #}
- {% for key, label in [
- ('mon','Mon'),('tue','Tue'),('wed','Wed'),('thu','Thu'),
- ('fri','Fri'),('sat','Sat'),('sun','Sun')
- ] %}
- {% set is_checked = slot|getattr(key) %}
-
-
- {{ label }}
-
- {% endfor %}
-
-
-
-
-
-
- Flexible booking
-
-
-
- Allow bookings at any time within this band
-
-
-
-
-
- Cancel
-
-
-
-
- Save slot
-
-
-
-
diff --git a/events/templates/_types/slot/_main_panel.html b/events/templates/_types/slot/_main_panel.html
deleted file mode 100644
index d67206b..0000000
--- a/events/templates/_types/slot/_main_panel.html
+++ /dev/null
@@ -1,72 +0,0 @@
-
-
-
-
- Days
-
-
- {% set days = slot.days_display.split(', ') %}
- {% if days and days[0] != "—" %}
-
- {% for day in days %}
-
- {{ day }}
-
- {% endfor %}
-
- {% else %}
-
No days
- {% endif %}
-
-
-
-
-
-
- Flexible
-
-
- {{ 'yes' if slot.flexible else 'no' }}
-
-
-
-
-
-
-
- Time
-
-
- {{ slot.time_start.strftime('%H:%M') }} — {{ slot.time_end.strftime('%H:%M') }}
-
-
-
-
-
- Cost
-
-
- {{ ('%.2f'|format(slot.cost)) if slot.cost is not none else '' }}
-
-
-
-
- Edit
-
-
-
-{% if oob %}
- {% from '_types/slot/__description.html' import description %}
- {{description(slot, oob=True)}}
-
-{% endif %}
\ No newline at end of file
diff --git a/events/templates/_types/slot/_oob_elements.html b/events/templates/_types/slot/_oob_elements.html
deleted file mode 100644
index 3b82170..0000000
--- a/events/templates/_types/slot/_oob_elements.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends "oob_elements.html" %}
-
-{% block oobs %}
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('slots-header-child', 'slot-header-child', '_types/slot/header/_header.html')}}
-
- {% from '_types/slots/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-
-
-{% block content %}
- {% include '_types/slot/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/slot/header/_header.html b/events/templates/_types/slot/header/_header.html
deleted file mode 100644
index fc5381d..0000000
--- a/events/templates/_types/slot/header/_header.html
+++ /dev/null
@@ -1,25 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='slot-row', oob=oob) %}
- {% call links.link(
- hx_select_search,
- ) %}
-
-
-
-
- {{ slot.name }}
-
-
- {% from '_types/slot/__description.html' import description %}
- {{description(slot)}}
-
- {% endcall %}
- {% call links.desktop_nav() %}
- {#% include '_types/slot/_nav.html' %#}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
-
-
-
diff --git a/events/templates/_types/slot/index.html b/events/templates/_types/slot/index.html
deleted file mode 100644
index 265be24..0000000
--- a/events/templates/_types/slot/index.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends '_types/slots/index.html' %}
-{% import 'macros/layout.html' as layout %}
-
-
-{% block slots_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('slot-header-child', '_types/slot/header/_header.html') %}
- {% block slot_header_child %}
- {% endblock %}
- {% endcall %}
-{% endblock %}
-
-
-{% block _main_mobile_menu %}
- {#% include '_types/slot/_nav.html' %#}
-{% endblock %}
-
-{% block content %}
- {% include '_types/slot/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/slots/_add.html b/events/templates/_types/slots/_add.html
deleted file mode 100644
index af1f4cf..0000000
--- a/events/templates/_types/slots/_add.html
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
- Name
-
-
-
-
- Description
-
-
-
-
-
Days
-
- {# "All" toggle – no name so it’s not submitted #}
-
-
- All
-
-
- {# Individual days #}
- {% for key, label in [
- ('mon','Mon'),('tue','Tue'),('wed','Wed'),('thu','Thu'),
- ('fri','Fri'),('sat','Sat'),('sun','Sun')
- ] %}
-
-
- {{ label }}
-
- {% endfor %}
-
-
-
-
- Time start
-
-
-
-
- Time end
-
-
-
-
- Cost
-
-
-
- {# NEW: flexible flag #}
-
- Flexible booking
-
-
- Allow bookings at any time within this band
-
-
-
-
-
-
- Cancel
-
-
-
-
- Save slot
-
-
-
diff --git a/events/templates/_types/slots/_add_button.html b/events/templates/_types/slots/_add_button.html
deleted file mode 100644
index da79339..0000000
--- a/events/templates/_types/slots/_add_button.html
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
- + Add slot
-
diff --git a/events/templates/_types/slots/_main_panel.html b/events/templates/_types/slots/_main_panel.html
deleted file mode 100644
index a2ac263..0000000
--- a/events/templates/_types/slots/_main_panel.html
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
- Name
- Flexible
- Days
- Time
- Cost
- Actions
-
-
-
- {% for s in slots %}
- {% include '_types/slots/_row.html' %}
- {% else %}
- No slots yet.
- {% endfor %}
-
-
-
-
-
- {% include '_types/slots/_add_button.html' %}
-
-
diff --git a/events/templates/_types/slots/_oob_elements.html b/events/templates/_types/slots/_oob_elements.html
deleted file mode 100644
index acf0d05..0000000
--- a/events/templates/_types/slots/_oob_elements.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends "oob_elements.html" %}
-
-{% block oobs %}
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('calendar-header-child', 'slots-header-child', '_types/slots/header/_header.html')}}
-
- {% from '_types/calendar/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-
-
-{% block content %}
- {% include '_types/slots/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/slots/_row.html b/events/templates/_types/slots/_row.html
deleted file mode 100644
index b781596..0000000
--- a/events/templates/_types/slots/_row.html
+++ /dev/null
@@ -1,61 +0,0 @@
-{% import 'macros/links.html' as links %}
-
-
-
- {% call links.link(
- hx_select_search,
- aclass=styles.pill
- ) %}
- {{ s.name }}
- {% endcall %}
-
- {% set slot = s %}
- {% include '_types/slot/_description.html' %}
-
-
- {{ 'yes' if s.flexible else 'no' }}
-
-
- {% set days = s.days_display.split(', ') %}
- {% if days and days[0] != "—" %}
-
- {% for day in days %}
-
- {{ day }}
-
- {% endfor %}
-
- {% else %}
- No days
- {% endif %}
-
-
- {{ s.time_start.strftime('%H:%M') }} - {{ s.time_end.strftime('%H:%M') }}
-
-
- {{ ('%.2f'|format(s.cost)) if s.cost is not none else '' }}
-
-
-
-
-
-
-
diff --git a/events/templates/_types/slots/header/_header.html b/events/templates/_types/slots/header/_header.html
deleted file mode 100644
index eb34edb..0000000
--- a/events/templates/_types/slots/header/_header.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='slots-row', oob=oob) %}
- {% call links.link(
- hx_select_search,
- ) %}
-
-
- slots
-
- {% endcall %}
- {% call links.desktop_nav() %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
-
-
-
diff --git a/events/templates/_types/slots/index.html b/events/templates/_types/slots/index.html
deleted file mode 100644
index 453ba5f..0000000
--- a/events/templates/_types/slots/index.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{% extends '_types/calendar/index.html' %}
-
-{% block calendar_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('slots-header-child', '_types/slots/header/_header.html') %}
- {% block slots_header_child %}
- {% endblock %}
- {% endcall %}
-{% endblock %}
-
-{% block _main_mobile_menu %}
- {#% include '_types/calendar/_nav.html' %#}
-{% endblock %}
-
-
-
-{% block content %}
- {% include '_types/slots/_main_panel.html' %}
-{% endblock %}
\ No newline at end of file
diff --git a/events/templates/_types/ticket_admin/_checkin_result.html b/events/templates/_types/ticket_admin/_checkin_result.html
deleted file mode 100644
index 4d6447e..0000000
--- a/events/templates/_types/ticket_admin/_checkin_result.html
+++ /dev/null
@@ -1,39 +0,0 @@
-{# Check-in result — replaces ticket row or action area #}
-{% if success and ticket %}
-
-
- {{ ticket.code[:12] }}...
-
-
- {{ ticket.entry.name if ticket.entry else '—' }}
- {% if ticket.entry and ticket.entry.start_at %}
-
- {{ ticket.entry.start_at.strftime('%d %b %Y, %H:%M') }}
-
- {% endif %}
-
-
- {{ ticket.ticket_type.name if ticket.ticket_type else '—' }}
-
-
-
- Checked in
-
-
-
-
-
- {% if ticket.checked_in_at %}
- {{ ticket.checked_in_at.strftime('%H:%M') }}
- {% else %}
- Just now
- {% endif %}
-
-
-
-{% elif not success %}
-
-
- {{ error or 'Check-in failed' }}
-
-{% endif %}
diff --git a/events/templates/_types/ticket_admin/_entry_tickets.html b/events/templates/_types/ticket_admin/_entry_tickets.html
deleted file mode 100644
index 892e327..0000000
--- a/events/templates/_types/ticket_admin/_entry_tickets.html
+++ /dev/null
@@ -1,75 +0,0 @@
-{# Tickets for a specific calendar entry — admin view #}
-
-
-
- Tickets for: {{ entry.name }}
-
-
- {{ tickets|length }} ticket{{ 's' if tickets|length != 1 else '' }}
-
-
-
- {% if tickets %}
-
-
-
-
- Code
- Type
- State
- Actions
-
-
-
- {% for ticket in tickets %}
-
- {{ ticket.code[:12] }}...
- {{ ticket.ticket_type.name if ticket.ticket_type else '—' }}
-
-
- {{ ticket.state|replace('_', ' ')|capitalize }}
-
-
-
- {% if ticket.state in ('confirmed', 'reserved') %}
-
-
-
- Check in
-
-
- {% elif ticket.state == 'checked_in' %}
-
-
- {% if ticket.checked_in_at %}{{ ticket.checked_in_at.strftime('%H:%M') }}{% endif %}
-
- {% endif %}
-
-
- {% endfor %}
-
-
-
- {% else %}
-
- No tickets for this entry
-
- {% endif %}
-
diff --git a/events/templates/_types/ticket_admin/_lookup_result.html b/events/templates/_types/ticket_admin/_lookup_result.html
deleted file mode 100644
index b701649..0000000
--- a/events/templates/_types/ticket_admin/_lookup_result.html
+++ /dev/null
@@ -1,82 +0,0 @@
-{# Ticket lookup result — rendered into #lookup-result #}
-{% if error %}
-
-
- {{ error }}
-
-{% elif ticket %}
-
-
-
-
- {{ ticket.entry.name if ticket.entry else 'Unknown event' }}
-
- {% if ticket.ticket_type %}
-
{{ ticket.ticket_type.name }}
- {% endif %}
- {% if ticket.entry and ticket.entry.start_at %}
-
- {{ ticket.entry.start_at.strftime('%A, %B %d, %Y at %H:%M') }}
-
- {% endif %}
- {% if ticket.entry and ticket.entry.calendar %}
-
- {{ ticket.entry.calendar.name }}
-
- {% endif %}
-
-
- {{ ticket.state|replace('_', ' ')|capitalize }}
-
- {{ ticket.code }}
-
- {% if ticket.checked_in_at %}
-
- Checked in: {{ ticket.checked_in_at.strftime('%B %d, %Y at %H:%M') }}
-
- {% endif %}
-
-
-
- {% if ticket.state in ('confirmed', 'reserved') %}
-
-
-
-
- Check In
-
-
- {% elif ticket.state == 'checked_in' %}
-
- {% elif ticket.state == 'cancelled' %}
-
- {% endif %}
-
-
-
-{% endif %}
diff --git a/events/templates/_types/ticket_admin/_main_panel.html b/events/templates/_types/ticket_admin/_main_panel.html
deleted file mode 100644
index dcea6fe..0000000
--- a/events/templates/_types/ticket_admin/_main_panel.html
+++ /dev/null
@@ -1,148 +0,0 @@
-
- Ticket Admin
-
- {# Stats row #}
-
-
-
{{ stats.total }}
-
Total
-
-
-
{{ stats.confirmed }}
-
Confirmed
-
-
-
{{ stats.checked_in }}
-
Checked In
-
-
-
{{ stats.reserved }}
-
Reserved
-
-
-
- {# Scanner section #}
-
-
-
- Scan / Look Up Ticket
-
-
-
-
-
-
-
-
-
-
-
- Enter a ticket code to look it up
-
-
-
-
- {# Recent tickets table #}
-
-
- Recent Tickets
-
-
- {% if tickets %}
-
-
-
-
- Code
- Event
- Type
- State
- Actions
-
-
-
- {% for ticket in tickets %}
-
-
- {{ ticket.code[:12] }}...
-
-
- {{ ticket.entry.name if ticket.entry else '—' }}
- {% if ticket.entry and ticket.entry.start_at %}
-
- {{ ticket.entry.start_at.strftime('%d %b %Y, %H:%M') }}
-
- {% endif %}
-
-
- {{ ticket.ticket_type.name if ticket.ticket_type else '—' }}
-
-
-
- {{ ticket.state|replace('_', ' ')|capitalize }}
-
-
-
- {% if ticket.state in ('confirmed', 'reserved') %}
-
-
-
-
- Check in
-
-
- {% elif ticket.state == 'checked_in' %}
-
-
- {% if ticket.checked_in_at %}
- {{ ticket.checked_in_at.strftime('%H:%M') }}
- {% endif %}
-
- {% endif %}
-
-
- {% endfor %}
-
-
-
- {% else %}
-
- No tickets yet
-
- {% endif %}
-
-
diff --git a/events/templates/_types/ticket_admin/index.html b/events/templates/_types/ticket_admin/index.html
deleted file mode 100644
index 47ecb0a..0000000
--- a/events/templates/_types/ticket_admin/index.html
+++ /dev/null
@@ -1,8 +0,0 @@
-{% extends '_types/root/index.html' %}
-
-{% block _main_mobile_menu %}
-{% endblock %}
-
-{% block content %}
-{% include '_types/ticket_admin/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/ticket_type/_edit.html b/events/templates/_types/ticket_type/_edit.html
deleted file mode 100644
index 355bbc0..0000000
--- a/events/templates/_types/ticket_type/_edit.html
+++ /dev/null
@@ -1,101 +0,0 @@
-
diff --git a/events/templates/_types/ticket_type/_main_panel.html b/events/templates/_types/ticket_type/_main_panel.html
deleted file mode 100644
index 85d5f2e..0000000
--- a/events/templates/_types/ticket_type/_main_panel.html
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
- Name
-
-
- {{ ticket_type.name }}
-
-
-
-
-
- Cost
-
-
- £{{ ('%.2f'|format(ticket_type.cost)) if ticket_type.cost is not none else '0.00' }}
-
-
-
-
-
- Count
-
-
- {{ ticket_type.count }}
-
-
-
-
-
- Edit
-
-
diff --git a/events/templates/_types/ticket_type/_nav.html b/events/templates/_types/ticket_type/_nav.html
deleted file mode 100644
index f5c504d..0000000
--- a/events/templates/_types/ticket_type/_nav.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% from 'macros/admin_nav.html' import placeholder_nav %}
-{{ placeholder_nav() }}
diff --git a/events/templates/_types/ticket_type/_oob_elements.html b/events/templates/_types/ticket_type/_oob_elements.html
deleted file mode 100644
index 824e62a..0000000
--- a/events/templates/_types/ticket_type/_oob_elements.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% extends "oob_elements.html" %}
-
-{% block oobs %}
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('ticket_types-header-child', 'ticket_type-header-child', '_types/ticket_type/header/_header.html')}}
-
- {% from '_types/ticket_types/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-
-{% block mobile_menu %}
- {% include '_types/ticket_type/_nav.html' %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/ticket_type/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/ticket_type/header/_header.html b/events/templates/_types/ticket_type/header/_header.html
deleted file mode 100644
index 156e120..0000000
--- a/events/templates/_types/ticket_type/header/_header.html
+++ /dev/null
@@ -1,32 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='ticket_type-row', oob=oob) %}
- {% call links.link(
- url_for(
- 'calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.get',
- calendar_slug=calendar.slug,
- year=year,
- month=month,
- day=day,
- entry_id=entry.id,
- ticket_type_id=ticket_type.id
- ),
- hx_select_search,
- ) %}
-
-
-
-
- {{ ticket_type.name }}
-
-
-
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/ticket_type/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
-
-
-
diff --git a/events/templates/_types/ticket_type/index.html b/events/templates/_types/ticket_type/index.html
deleted file mode 100644
index 245992c..0000000
--- a/events/templates/_types/ticket_type/index.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{% extends '_types/ticket_types/index.html' %}
-{% import 'macros/layout.html' as layout %}
-
-{% block ticket_types_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('ticket_types-header-child', '_types/ticket_type/header/_header.html') %}
- {% block ticket_type_header_child %}
- {% endblock %}
- {% endcall %}
-{% endblock %}
-
-
-{% block _main_mobile_menu %}
- {#% include '_types/ticket_type/_nav.html' %#}
-{% endblock %}
-
-{% block content %}
- {% include '_types/ticket_type/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/ticket_types/_add.html b/events/templates/_types/ticket_types/_add.html
deleted file mode 100644
index f84e39f..0000000
--- a/events/templates/_types/ticket_types/_add.html
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
-
-
- Cancel
-
-
-
-
- Save ticket type
-
-
-
diff --git a/events/templates/_types/ticket_types/_add_button.html b/events/templates/_types/ticket_types/_add_button.html
deleted file mode 100644
index e0436ff..0000000
--- a/events/templates/_types/ticket_types/_add_button.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
- Add ticket type
-
diff --git a/events/templates/_types/ticket_types/_main_panel.html b/events/templates/_types/ticket_types/_main_panel.html
deleted file mode 100644
index 2afaa7a..0000000
--- a/events/templates/_types/ticket_types/_main_panel.html
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
- Name
- Cost
- Count
- Actions
-
-
-
- {% for tt in ticket_types %}
- {% include '_types/ticket_types/_row.html' %}
- {% else %}
- No ticket types yet.
- {% endfor %}
-
-
-
-
-
- {% include '_types/ticket_types/_add_button.html' %}
-
-
diff --git a/events/templates/_types/ticket_types/_nav.html b/events/templates/_types/ticket_types/_nav.html
deleted file mode 100644
index f5c504d..0000000
--- a/events/templates/_types/ticket_types/_nav.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% from 'macros/admin_nav.html' import placeholder_nav %}
-{{ placeholder_nav() }}
diff --git a/events/templates/_types/ticket_types/_oob_elements.html b/events/templates/_types/ticket_types/_oob_elements.html
deleted file mode 100644
index a746f17..0000000
--- a/events/templates/_types/ticket_types/_oob_elements.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% extends "oob_elements.html" %}
-
-{% block oobs %}
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('entry-admin-header-child', 'ticket_types-header-child', '_types/ticket_types/header/_header.html')}}
-
- {% from '_types/entry/admin/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-
-{% block mobile_menu %}
- {% include '_types/ticket_types/_nav.html' %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/ticket_types/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/ticket_types/_row.html b/events/templates/_types/ticket_types/_row.html
deleted file mode 100644
index cd340de..0000000
--- a/events/templates/_types/ticket_types/_row.html
+++ /dev/null
@@ -1,55 +0,0 @@
-{% import 'macros/links.html' as links %}
-
-
-
- {% call links.link(
- url_for(
- 'calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.get',
- calendar_slug=calendar.slug,
- year=year,
- month=month,
- day=day,
- entry_id=entry.id,
- ticket_type_id=tt.id
- ),
- hx_select_search,
- aclass=styles.pill
- ) %}
- {{ tt.name }}
- {% endcall %}
-
-
-
- £{{ ('%.2f'|format(tt.cost)) if tt.cost is not none else '0.00' }}
-
-
- {{ tt.count }}
-
-
-
-
-
-
-
diff --git a/events/templates/_types/ticket_types/header/_header.html b/events/templates/_types/ticket_types/header/_header.html
deleted file mode 100644
index 979954a..0000000
--- a/events/templates/_types/ticket_types/header/_header.html
+++ /dev/null
@@ -1,24 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='ticket_types-row', oob=oob) %}
- {% call links.link(url_for(
- 'calendar.day.calendar_entries.calendar_entry.ticket_types.get',
- calendar_slug=calendar.slug,
- entry_id=entry.id,
- year=year,
- month=month,
- day=day
- ), hx_select_search) %}
-
-
- ticket types
-
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/ticket_types/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
-
-
-
diff --git a/events/templates/_types/ticket_types/index.html b/events/templates/_types/ticket_types/index.html
deleted file mode 100644
index 9d0362a..0000000
--- a/events/templates/_types/ticket_types/index.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends '_types/entry/admin/index.html' %}
-
-{% block entry_admin_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('ticket_type-header-child', '_types/ticket_types/header/_header.html') %}
- {% block ticket_types_header_child %}
- {% endblock %}
- {% endcall %}
-{% endblock %}
-
-
-{% block _main_mobile_menu %}
- {% include '_types/ticket_types/_nav.html' %}
-{% endblock %}
-
-
-
-{% block content %}
- {% include '_types/ticket_types/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/tickets/_adjust_response.html b/events/templates/_types/tickets/_adjust_response.html
deleted file mode 100644
index 24ec2fc..0000000
--- a/events/templates/_types/tickets/_adjust_response.html
+++ /dev/null
@@ -1,4 +0,0 @@
-{# Response for ticket adjust — buy form + OOB cart-mini update #}
-{% from 'macros/cart_icon.html' import cart_icon %}
-{{ cart_icon(count=cart_count, oob='true') }}
-{% include '_types/tickets/_buy_form.html' %}
diff --git a/events/templates/_types/tickets/_buy_form.html b/events/templates/_types/tickets/_buy_form.html
deleted file mode 100644
index 0c9a2d8..0000000
--- a/events/templates/_types/tickets/_buy_form.html
+++ /dev/null
@@ -1,206 +0,0 @@
-{# Ticket purchase form — shown on entry detail when tickets are available #}
-{% if entry.ticket_price is not none and entry.state == 'confirmed' %}
-
-
-
- Tickets
-
-
- {# Sold / remaining info #}
-
- {% if ticket_sold_count is defined and ticket_sold_count %}
- {{ ticket_sold_count }} sold
- {% endif %}
- {% if ticket_remaining is not none %}
- {{ ticket_remaining }} remaining
- {% endif %}
- {% if user_ticket_count is defined and user_ticket_count %}
-
-
- {{ user_ticket_count }} in basket
-
- {% endif %}
-
-
- {% if entry.ticket_types %}
- {# Multiple ticket types #}
-
- {% for tt in entry.ticket_types %}
- {% if tt.deleted_at is none %}
- {% set type_count = user_ticket_counts_by_type.get(tt.id, 0) if user_ticket_counts_by_type is defined else 0 %}
-
-
-
{{ tt.name }}
-
- £{{ '%.2f'|format(tt.cost) }}
-
-
-
- {% if type_count == 0 %}
- {# Add to basket button #}
-
-
-
-
-
-
-
-
-
- {% else %}
- {# +/- controls #}
-
- {% endif %}
-
- {% endif %}
- {% endfor %}
-
-
- {% else %}
- {# Simple ticket (single price) #}
-
-
-
- £{{ '%.2f'|format(entry.ticket_price) }}
-
- per ticket
-
-
-
- {% set qty = user_ticket_count if user_ticket_count is defined else 0 %}
-
- {% if qty == 0 %}
- {# Add to basket button #}
-
-
-
-
-
-
-
-
-
-
- {% else %}
- {# +/- controls #}
-
- {% endif %}
- {% endif %}
-
-{% elif entry.ticket_price is not none %}
- {# Tickets configured but entry not confirmed yet #}
-
-
- Tickets available once this event is confirmed.
-
-{% endif %}
diff --git a/events/templates/_types/tickets/_buy_result.html b/events/templates/_types/tickets/_buy_result.html
deleted file mode 100644
index 585da9c..0000000
--- a/events/templates/_types/tickets/_buy_result.html
+++ /dev/null
@@ -1,43 +0,0 @@
-{# Shown after ticket purchase — replaces the buy form #}
-{# OOB: refresh cart badge to reflect new ticket count #}
-{% from 'macros/cart_icon.html' import cart_icon %}
-{{ cart_icon(count=cart_count|default(0), oob='true') }}
-
-
-
-
-
- {{ created_tickets|length }} ticket{{ 's' if created_tickets|length != 1 else '' }} reserved
-
-
-
-
-
- {% if remaining is not none %}
-
- {{ remaining }} ticket{{ 's' if remaining != 1 else '' }} remaining
-
- {% endif %}
-
-
-
diff --git a/events/templates/_types/tickets/_detail_panel.html b/events/templates/_types/tickets/_detail_panel.html
deleted file mode 100644
index 2ea70df..0000000
--- a/events/templates/_types/tickets/_detail_panel.html
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
- {# Back link #}
-
-
- Back to my tickets
-
-
- {# Ticket card #}
-
- {# Header with state #}
-
-
-
- {{ ticket.entry.name if ticket.entry else 'Ticket' }}
-
-
- {{ ticket.state|replace('_', ' ')|capitalize }}
-
-
- {% if ticket.ticket_type %}
-
- {{ ticket.ticket_type.name }}
-
- {% endif %}
-
-
- {# QR Code #}
-
-
- {# QR code rendered via JavaScript #}
-
-
- {{ ticket.code }}
-
-
-
- {# Event details #}
-
- {% if ticket.entry %}
-
-
-
-
- {{ ticket.entry.start_at.strftime('%A, %B %d, %Y') }}
-
-
- {{ ticket.entry.start_at.strftime('%H:%M') }}
- {% if ticket.entry.end_at %}
- – {{ ticket.entry.end_at.strftime('%H:%M') }}
- {% endif %}
-
-
-
-
- {% if ticket.entry.calendar %}
-
-
-
- {{ ticket.entry.calendar.name }}
-
-
- {% endif %}
- {% endif %}
-
- {% if ticket.ticket_type and ticket.ticket_type.cost %}
-
-
-
- {{ ticket.ticket_type.name }} — £{{ '%.2f'|format(ticket.ticket_type.cost) }}
-
-
- {% endif %}
-
- {% if ticket.checked_in_at %}
-
-
-
- Checked in: {{ ticket.checked_in_at.strftime('%B %d, %Y at %H:%M') }}
-
-
- {% endif %}
-
-
-
- {# QR code generation script #}
-
-
-
diff --git a/events/templates/_types/tickets/_main_panel.html b/events/templates/_types/tickets/_main_panel.html
deleted file mode 100644
index 0e8580c..0000000
--- a/events/templates/_types/tickets/_main_panel.html
+++ /dev/null
@@ -1,65 +0,0 @@
-
- My Tickets
-
- {% if tickets %}
-
- {% else %}
-
-
-
No tickets yet
-
Tickets will appear here after you purchase them.
-
- {% endif %}
-
diff --git a/events/templates/_types/tickets/detail.html b/events/templates/_types/tickets/detail.html
deleted file mode 100644
index 31c9319..0000000
--- a/events/templates/_types/tickets/detail.html
+++ /dev/null
@@ -1,8 +0,0 @@
-{% extends '_types/root/index.html' %}
-
-{% block _main_mobile_menu %}
-{% endblock %}
-
-{% block content %}
-{% include '_types/tickets/_detail_panel.html' %}
-{% endblock %}
diff --git a/events/templates/_types/tickets/index.html b/events/templates/_types/tickets/index.html
deleted file mode 100644
index 908be8b..0000000
--- a/events/templates/_types/tickets/index.html
+++ /dev/null
@@ -1,8 +0,0 @@
-{% extends '_types/root/index.html' %}
-
-{% block _main_mobile_menu %}
-{% endblock %}
-
-{% block content %}
-{% include '_types/tickets/_main_panel.html' %}
-{% endblock %}
diff --git a/events/templates/macros/date.html b/events/templates/macros/date.html
deleted file mode 100644
index 5954f28..0000000
--- a/events/templates/macros/date.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{% macro dt(d) -%}
-{{ d.astimezone().strftime('%-d %b %Y, %H:%M') if d.tzinfo else d.strftime('%-d %b %Y, %H:%M') }}
-{%- endmacro %}
-
-{% macro t(d) -%}
-{{ d.astimezone().strftime('%H:%M') if d.tzinfo else d.strftime('%H:%M') }}
-{%- endmacro %}
diff --git a/federation/templates/_types/federation/index.html b/federation/templates/_types/federation/index.html
deleted file mode 100644
index e2caacb..0000000
--- a/federation/templates/_types/federation/index.html
+++ /dev/null
@@ -1,3 +0,0 @@
-{% extends '_types/root/_index.html' %}
-{% block meta %}{% endblock %}
-{% block content %}{% endblock %}
diff --git a/federation/templates/auth/check_email.html b/federation/templates/auth/check_email.html
deleted file mode 100644
index 5eb1b61..0000000
--- a/federation/templates/auth/check_email.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{% extends "_types/root/_index.html" %}
-{% block meta %}{% endblock %}
-{% block title %}Check your email — Rose Ash{% endblock %}
-{% block content %}
-
-
Check your email
-
- We sent a sign-in link to {{ email }} .
-
-
- Click the link in the email to sign in. The link expires in 15 minutes.
-
- {% if email_error %}
-
- {{ email_error }}
-
- {% endif %}
-
-{% endblock %}
diff --git a/federation/templates/auth/login.html b/federation/templates/auth/login.html
deleted file mode 100644
index 79031e5..0000000
--- a/federation/templates/auth/login.html
+++ /dev/null
@@ -1,36 +0,0 @@
-{% extends "_types/root/_index.html" %}
-{% block meta %}{% endblock %}
-{% block title %}Login — Rose Ash{% endblock %}
-{% block content %}
-
-
Sign in
-
- {% if error %}
-
- {{ error }}
-
- {% endif %}
-
-
-
-
- Email address
-
-
-
- Send magic link
-
-
-
-{% endblock %}
diff --git a/federation/templates/federation/_actor_list_items.html b/federation/templates/federation/_actor_list_items.html
deleted file mode 100644
index 2233789..0000000
--- a/federation/templates/federation/_actor_list_items.html
+++ /dev/null
@@ -1,63 +0,0 @@
-{% for a in actors %}
-
- {% if a.icon_url %}
-
- {% else %}
-
- {{ (a.display_name or a.preferred_username)[0] | upper }}
-
- {% endif %}
-
-
-
- {% if actor %}
-
- {% if list_type == "following" or a.actor_url in (followed_urls or []) %}
-
-
-
-
- Unfollow
-
-
- {% else %}
-
-
-
-
- Follow Back
-
-
- {% endif %}
-
- {% endif %}
-
-{% endfor %}
-
-{% if actors | length >= 20 %}
-
-
-{% endif %}
diff --git a/federation/templates/federation/_interaction_buttons.html b/federation/templates/federation/_interaction_buttons.html
deleted file mode 100644
index 70ab6f8..0000000
--- a/federation/templates/federation/_interaction_buttons.html
+++ /dev/null
@@ -1,61 +0,0 @@
-{% set oid = item.object_id if item is defined and item.object_id is defined else item_object_id | default('') %}
-{% set ainbox = item.author_inbox if item is defined and item.author_inbox is defined else item_author_inbox | default('') %}
-{% set lcount = item.like_count if item is defined and item.like_count is defined else like_count | default(0) %}
-{% set bcount = item.boost_count if item is defined and item.boost_count is defined else boost_count | default(0) %}
-{% set liked = item.liked_by_me if item is defined and item.liked_by_me is defined else liked_by_me | default(false) %}
-{% set boosted = item.boosted_by_me if item is defined and item.boosted_by_me is defined else boosted_by_me | default(false) %}
-
-
- {% if liked %}
-
-
-
-
-
- ♥ {{ lcount }}
-
-
- {% else %}
-
-
-
-
-
- ♡ {{ lcount }}
-
-
- {% endif %}
-
- {% if boosted %}
-
-
-
-
-
- ↻ {{ bcount }}
-
-
- {% else %}
-
-
-
-
-
- ↻ {{ bcount }}
-
-
- {% endif %}
-
- {% if oid %}
-
Reply
- {% endif %}
-
diff --git a/federation/templates/federation/_notification.html b/federation/templates/federation/_notification.html
deleted file mode 100644
index 06fcd6e..0000000
--- a/federation/templates/federation/_notification.html
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
- {% if notif.from_actor_icon %}
-
- {% else %}
-
- {{ notif.from_actor_name[0] | upper if notif.from_actor_name else '?' }}
-
- {% endif %}
-
-
-
- {{ notif.from_actor_name }}
-
- @{{ notif.from_actor_username }}{% if notif.from_actor_domain %}@{{ notif.from_actor_domain }}{% endif %}
-
-
- {% if notif.notification_type == "follow" %}
- followed you{% if notif.app_domain and notif.app_domain != "federation" %} on {{ notif.app_domain }}{% endif %}
- {% elif notif.notification_type == "like" %}
- liked your post
- {% elif notif.notification_type == "boost" %}
- boosted your post
- {% elif notif.notification_type == "mention" %}
- mentioned you
- {% elif notif.notification_type == "reply" %}
- replied to your post
- {% endif %}
-
-
- {% if notif.target_content_preview %}
-
- {{ notif.target_content_preview }}
-
- {% endif %}
-
-
- {{ notif.created_at.strftime('%b %d, %H:%M') }}
-
-
-
-
diff --git a/federation/templates/federation/_post_card.html b/federation/templates/federation/_post_card.html
deleted file mode 100644
index 33102ca..0000000
--- a/federation/templates/federation/_post_card.html
+++ /dev/null
@@ -1,52 +0,0 @@
-
- {% if item.boosted_by %}
-
- Boosted by {{ item.boosted_by }}
-
- {% endif %}
-
-
- {% if item.actor_icon %}
-
- {% else %}
-
- {{ item.actor_name[0] | upper if item.actor_name else '?' }}
-
- {% endif %}
-
-
-
- {{ item.actor_name }}
-
- @{{ item.actor_username }}{% if item.actor_domain %}@{{ item.actor_domain }}{% endif %}
-
-
- {% if item.published %}
- {{ item.published.strftime('%b %d, %H:%M') }}
- {% endif %}
-
-
-
- {% if item.summary %}
-
- CW: {{ item.summary }}
- {{ item.content | safe }}
-
- {% else %}
-
{{ item.content | safe }}
- {% endif %}
-
- {% if item.url and item.post_type == "remote" %}
-
- original
-
- {% endif %}
-
- {% if actor %}
-
- {% include "federation/_interaction_buttons.html" with context %}
-
- {% endif %}
-
-
-
diff --git a/federation/templates/federation/_search_results.html b/federation/templates/federation/_search_results.html
deleted file mode 100644
index abc7d2e..0000000
--- a/federation/templates/federation/_search_results.html
+++ /dev/null
@@ -1,61 +0,0 @@
-{% for a in actors %}
-
- {% if a.icon_url %}
-
- {% else %}
-
- {{ (a.display_name or a.preferred_username)[0] | upper }}
-
- {% endif %}
-
-
- {% if a.id %}
-
- {{ a.display_name or a.preferred_username }}
-
- {% else %}
-
{{ a.display_name or a.preferred_username }}
- {% endif %}
-
@{{ a.preferred_username }}@{{ a.domain }}
- {% if a.summary %}
-
{{ a.summary | striptags }}
- {% endif %}
-
-
- {% if actor %}
-
- {% if a.actor_url in (followed_urls or []) %}
-
-
-
-
- Unfollow
-
-
- {% else %}
-
-
-
-
- Follow
-
-
- {% endif %}
-
- {% endif %}
-
-{% endfor %}
-
-{% if actors | length >= 20 %}
-
-
-{% endif %}
diff --git a/federation/templates/federation/_timeline_items.html b/federation/templates/federation/_timeline_items.html
deleted file mode 100644
index d22eaa0..0000000
--- a/federation/templates/federation/_timeline_items.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% for item in items %}
- {% include "federation/_post_card.html" %}
-{% endfor %}
-
-{% if items %}
- {% set last = items[-1] %}
- {% if timeline_type == "actor" %}
-
-
- {% else %}
-
-
- {% endif %}
-{% endif %}
diff --git a/federation/templates/federation/account.html b/federation/templates/federation/account.html
deleted file mode 100644
index ef7f7d6..0000000
--- a/federation/templates/federation/account.html
+++ /dev/null
@@ -1,27 +0,0 @@
-{% extends "_types/social/index.html" %}
-{% block title %}Account — Rose Ash{% endblock %}
-{% block social_content %}
-
-{% endblock %}
diff --git a/federation/templates/federation/actor_card.html b/federation/templates/federation/actor_card.html
deleted file mode 100644
index cd97c70..0000000
--- a/federation/templates/federation/actor_card.html
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
- {% if result.icon_url %}
-
- {% else %}
-
- {{ result.preferred_username[0] | upper }}
-
- {% endif %}
-
-
-
- {{ result.display_name or result.preferred_username }}
- @{{ result.preferred_username }}@{{ result.domain }}
-
-
- {% if result.summary %}
-
- {{ result.summary | safe }}
-
- {% endif %}
-
- {% if actor %}
-
-
-
-
-
- Follow
-
-
-
-
-
-
- Unfollow
-
-
-
- {% endif %}
-
-
-
diff --git a/federation/templates/federation/actor_timeline.html b/federation/templates/federation/actor_timeline.html
deleted file mode 100644
index 0c69f8a..0000000
--- a/federation/templates/federation/actor_timeline.html
+++ /dev/null
@@ -1,53 +0,0 @@
-{% extends "_types/social/index.html" %}
-
-{% block title %}{{ remote_actor.display_name or remote_actor.preferred_username }} — Rose Ash{% endblock %}
-
-{% block social_content %}
-
-
- {% if remote_actor.icon_url %}
-
- {% else %}
-
- {{ (remote_actor.display_name or remote_actor.preferred_username)[0] | upper }}
-
- {% endif %}
-
-
-
{{ remote_actor.display_name or remote_actor.preferred_username }}
-
@{{ remote_actor.preferred_username }}@{{ remote_actor.domain }}
- {% if remote_actor.summary %}
-
{{ remote_actor.summary | safe }}
- {% endif %}
-
-
- {% if actor %}
-
- {% if is_following %}
-
-
-
-
- Unfollow
-
-
- {% else %}
-
-
-
-
- Follow
-
-
- {% endif %}
-
- {% endif %}
-
-
-
-
- {% set timeline_type = "actor" %}
- {% set actor_id = remote_actor.id %}
- {% include "federation/_timeline_items.html" %}
-
-{% endblock %}
diff --git a/federation/templates/federation/choose_username.html b/federation/templates/federation/choose_username.html
deleted file mode 100644
index e2b88c4..0000000
--- a/federation/templates/federation/choose_username.html
+++ /dev/null
@@ -1,54 +0,0 @@
-{% extends "_types/social/index.html" %}
-{% block title %}Choose Username — Rose Ash{% endblock %}
-{% block social_content %}
-
-
Choose your username
-
- This will be your identity on the fediverse:
- @username@{{ config.get('ap_domain', 'rose-ash.com') }}
-
-
- {% if error %}
-
- {{ error }}
-
- {% endif %}
-
-
-
-
-
Username
-
- @
-
-
-
-
- 3-32 characters. Lowercase letters, numbers, underscores. Must start with a letter.
-
-
-
-
- Claim username
-
-
-
-{% endblock %}
diff --git a/federation/templates/federation/compose.html b/federation/templates/federation/compose.html
deleted file mode 100644
index d82a031..0000000
--- a/federation/templates/federation/compose.html
+++ /dev/null
@@ -1,34 +0,0 @@
-{% extends "_types/social/index.html" %}
-
-{% block title %}Compose — Rose Ash{% endblock %}
-
-{% block social_content %}
-Compose
-
-
-
- {% if reply_to %}
-
-
- Replying to {{ reply_to }}
-
- {% endif %}
-
-
-
-
-
- Public
- Unlisted
- Followers only
-
-
-
- Publish
-
-
-
-{% endblock %}
diff --git a/federation/templates/federation/followers.html b/federation/templates/federation/followers.html
deleted file mode 100644
index 07eb862..0000000
--- a/federation/templates/federation/followers.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{% extends "_types/social/index.html" %}
-
-{% block title %}Followers — Rose Ash{% endblock %}
-
-{% block social_content %}
-Followers ({{ total }})
-
-
- {% set list_type = "followers" %}
- {% include "federation/_actor_list_items.html" %}
-
-{% endblock %}
diff --git a/federation/templates/federation/following.html b/federation/templates/federation/following.html
deleted file mode 100644
index ca900e4..0000000
--- a/federation/templates/federation/following.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% extends "_types/social/index.html" %}
-
-{% block title %}Following — Rose Ash{% endblock %}
-
-{% block social_content %}
-Following ({{ total }})
-
-
- {% set list_type = "following" %}
- {% set followed_urls = [] %}
- {% include "federation/_actor_list_items.html" %}
-
-{% endblock %}
diff --git a/federation/templates/federation/notifications.html b/federation/templates/federation/notifications.html
deleted file mode 100644
index 11eb3f8..0000000
--- a/federation/templates/federation/notifications.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{% extends "_types/social/index.html" %}
-
-{% block title %}Notifications — Rose Ash{% endblock %}
-
-{% block social_content %}
-Notifications
-
-{% if not notifications %}
- No notifications yet.
-{% endif %}
-
-
- {% for notif in notifications %}
- {% include "federation/_notification.html" %}
- {% endfor %}
-
-{% endblock %}
diff --git a/federation/templates/federation/search.html b/federation/templates/federation/search.html
deleted file mode 100644
index 090dabc..0000000
--- a/federation/templates/federation/search.html
+++ /dev/null
@@ -1,32 +0,0 @@
-{% extends "_types/social/index.html" %}
-
-{% block title %}Search — Rose Ash{% endblock %}
-
-{% block social_content %}
-Search
-
-
-
-
-
- Search
-
-
-
-
-{% if query and total %}
- {{ total }} result{{ 's' if total != 1 }} for {{ query }}
-{% elif query %}
- No results found for {{ query }}
-{% endif %}
-
-
- {% include "federation/_search_results.html" %}
-
-{% endblock %}
diff --git a/federation/templates/federation/timeline.html b/federation/templates/federation/timeline.html
deleted file mode 100644
index 22baa78..0000000
--- a/federation/templates/federation/timeline.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{% extends "_types/social/index.html" %}
-
-{% block title %}{{ "Home" if timeline_type == "home" else "Public" }} Timeline — Rose Ash{% endblock %}
-
-{% block social_content %}
-
-
{{ "Home" if timeline_type == "home" else "Public" }} Timeline
- {% if actor %}
-
- Compose
-
- {% endif %}
-
-
-
- {% include "federation/_timeline_items.html" %}
-
-{% endblock %}
diff --git a/market/templates/_types/all_markets/_card.html b/market/templates/_types/all_markets/_card.html
deleted file mode 100644
index 3680e60..0000000
--- a/market/templates/_types/all_markets/_card.html
+++ /dev/null
@@ -1,33 +0,0 @@
-{# Card for a single market in the global listing #}
-{% set pi = page_info.get(market.container_id, {}) %}
-{% set page_slug = pi.get('slug', '') %}
-{% set page_title = pi.get('title') %}
-{% if page_slug %}
- {% set market_href = market_url('/' ~ page_slug ~ '/' ~ market.slug ~ '/') %}
-{% else %}
- {% set market_href = '' %}
-{% endif %}
-
-
- {% if market_href %}
-
- {{ market.name }}
-
- {% else %}
-
{{ market.name }}
- {% endif %}
-
- {% if market.description %}
-
{{ market.description }}
- {% endif %}
-
-
-
-
diff --git a/market/templates/_types/all_markets/_cards.html b/market/templates/_types/all_markets/_cards.html
deleted file mode 100644
index d6c6302..0000000
--- a/market/templates/_types/all_markets/_cards.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% for market in markets %}
- {% include "_types/all_markets/_card.html" %}
-{% endfor %}
-{% if has_more %}
- {# Infinite scroll sentinel #}
- {% set next_url = url_for('all_markets.markets_fragment', page=page + 1)|host %}
-
-{% endif %}
diff --git a/market/templates/_types/all_markets/_main_panel.html b/market/templates/_types/all_markets/_main_panel.html
deleted file mode 100644
index 3599065..0000000
--- a/market/templates/_types/all_markets/_main_panel.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{# Markets grid #}
-{% if markets %}
-
- {% include "_types/all_markets/_cards.html" %}
-
-{% else %}
-
-
-
No markets available
-
-{% endif %}
-
diff --git a/market/templates/_types/all_markets/index.html b/market/templates/_types/all_markets/index.html
deleted file mode 100644
index 2e7990d..0000000
--- a/market/templates/_types/all_markets/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{% extends '_types/root/_index.html' %}
-
-{% block meta %}{% endblock %}
-
-{% block content %}
- {% include '_types/all_markets/_main_panel.html' %}
-{% endblock %}
diff --git a/market/templates/_types/browse/_admin.html b/market/templates/_types/browse/_admin.html
deleted file mode 100644
index e3cf3a2..0000000
--- a/market/templates/_types/browse/_admin.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{% import "macros/links.html" as links %}
-{% if g.rights.admin %}
- {% from 'macros/admin_nav.html' import admin_nav_item %}
- {{admin_nav_item(
- url_for('market.browse.product.admin', product_slug=slug)
- )}}
-{% endif %}
\ No newline at end of file
diff --git a/market/templates/_types/browse/_main_panel.html b/market/templates/_types/browse/_main_panel.html
deleted file mode 100644
index 8640ce8..0000000
--- a/market/templates/_types/browse/_main_panel.html
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- {% include "_types/browse/_product_cards.html" %}
-
-
diff --git a/market/templates/_types/browse/_oob_elements.html b/market/templates/_types/browse/_oob_elements.html
deleted file mode 100644
index dac5626..0000000
--- a/market/templates/_types/browse/_oob_elements.html
+++ /dev/null
@@ -1,37 +0,0 @@
-{% extends 'oob_elements.html' %}
-
-{# OOB elements for HTMX navigation - all elements that need updating #}
-
-{# Import shared OOB macros #}
-{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %}
-{% from '_types/root/_oob_menu.html' import mobile_menu with context %}
-
-{# Header with app title - includes cart-mini, navigation, and market-specific header #}
-
-{% block oobs %}
-
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('post-header-child', 'market-header-child', '_types/market/header/_header.html')}}
-
- {% from '_types/post/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-
-{% block mobile_menu %}
- {% include '_types/market/mobile/_nav_panel.html' %}
-{% endblock %}
-
-{# Filter container with child summary - from browse/index.html child_summary block #}
-{% block filter %}
- {% include "_types/browse/mobile/_filter/summary.html" %}
-{% endblock %}
-
-{% block aside %}
- {% include "_types/browse/desktop/menu.html" %}
-{% endblock %}
-
-
-{% block content %}
- {% include "_types/browse/_main_panel.html" %}
-{% endblock %}
diff --git a/market/templates/_types/browse/_product_card.html b/market/templates/_types/browse/_product_card.html
deleted file mode 100644
index 7e7aa13..0000000
--- a/market/templates/_types/browse/_product_card.html
+++ /dev/null
@@ -1,104 +0,0 @@
-{% import 'macros/stickers.html' as stick %}
-{% import '_types/product/prices.html' as prices %}
-{% set prices_ns = namespace() %}
-{{ prices.set_prices(p, prices_ns) }}
-{% set item_href = url_for('market.browse.product.product_detail', product_slug=p.slug)|host %}
-
\ No newline at end of file
diff --git a/market/templates/_types/browse/_product_cards.html b/market/templates/_types/browse/_product_cards.html
deleted file mode 100644
index 7d2f8c5..0000000
--- a/market/templates/_types/browse/_product_cards.html
+++ /dev/null
@@ -1,38 +0,0 @@
-{% for p in products %}
- {% include "_types/browse/_product_card.html" %}
-{% endfor %}
-{% if page < total_pages|int %}
-
-
-
- {% include "sentinel/mobile_content.html" %}
-
-
-
- {% include "sentinel/desktop_content.html" %}
-
-{% else %}
- End of results
-{% endif %}
-
diff --git a/market/templates/_types/browse/desktop/_category_selector.html b/market/templates/_types/browse/desktop/_category_selector.html
deleted file mode 100644
index 1bb1fe6..0000000
--- a/market/templates/_types/browse/desktop/_category_selector.html
+++ /dev/null
@@ -1,40 +0,0 @@
-{# Categories #}
-
-
- {% set top_active = (sub_slug is not defined or sub_slug is none or sub_slug == '') %}
- {% set href = (url_for('market.browse.browse_top', top_slug=top_slug) ~ qs)|host %}
-
-
- All products
-
-
-
- {% for sub in subs_local %}
- {% set active = (sub.slug == sub_slug) %}
- {% set href = (url_for('market.browse.browse_sub', top_slug=top_slug, sub_slug=sub.slug) ~ qs)|host %}
-
-
- {{ (sub.html_label or sub.name) | safe }}
-
-
- {% endfor %}
-
-
diff --git a/market/templates/_types/browse/desktop/_filter/brand.html b/market/templates/_types/browse/desktop/_filter/brand.html
deleted file mode 100644
index 0088586..0000000
--- a/market/templates/_types/browse/desktop/_filter/brand.html
+++ /dev/null
@@ -1,40 +0,0 @@
-{# Brand filter (desktop, single-select) #}
-
-{# Brands #}
-
- Brands
-
-
diff --git a/market/templates/_types/browse/desktop/_filter/labels.html b/market/templates/_types/browse/desktop/_filter/labels.html
deleted file mode 100644
index 3ab350c..0000000
--- a/market/templates/_types/browse/desktop/_filter/labels.html
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-{% import 'macros/stickers.html' as stick %}
-
-
diff --git a/market/templates/_types/browse/desktop/_filter/like.html b/market/templates/_types/browse/desktop/_filter/like.html
deleted file mode 100644
index 5b6f7a3..0000000
--- a/market/templates/_types/browse/desktop/_filter/like.html
+++ /dev/null
@@ -1,38 +0,0 @@
-{% import 'macros/stickers.html' as stick %}
- {% set qs = {"liked": None if liked else True, "page": None}|qs %}
- {% set href = (current_local_href ~ qs)|host %}
-
- {% if liked %}
-
- {% else %}
-
- {% endif %}
-
- {{ liked_count }}
-
-
diff --git a/market/templates/_types/browse/desktop/_filter/search.html b/market/templates/_types/browse/desktop/_filter/search.html
deleted file mode 100644
index 69d7817..0000000
--- a/market/templates/_types/browse/desktop/_filter/search.html
+++ /dev/null
@@ -1,44 +0,0 @@
-
-{% macro search(current_local_href,search, search_count, hx_select) -%}
-
-
-
-
-
-
- {% if search %}
- {{search_count}}
- {% endif %}
- {{zap_filter}}
-
-
-{% endmacro %}
\ No newline at end of file
diff --git a/market/templates/_types/browse/desktop/_filter/sort.html b/market/templates/_types/browse/desktop/_filter/sort.html
deleted file mode 100644
index f92807e..0000000
--- a/market/templates/_types/browse/desktop/_filter/sort.html
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-{% import 'macros/stickers.html' as stick %}
-{% set sort_val = sort|default('az', true) %}
-
-
- {% for key,label,icon in sort_options %}
- {% set is_on = (sort_val == key) %}
- {% set qs = {"sort": None, "page": None}|qs if is_on
- else {"sort": key, "page": None}|qs %}
- {% set href = (current_local_href ~ qs)|host %}
-
-
-
- {{ stick.sticker(asset_url(icon), label, is_on) }}
-
-
- {% endfor %}
-
diff --git a/market/templates/_types/browse/desktop/_filter/stickers.html b/market/templates/_types/browse/desktop/_filter/stickers.html
deleted file mode 100644
index 5d600e1..0000000
--- a/market/templates/_types/browse/desktop/_filter/stickers.html
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-{% import 'macros/stickers.html' as stick %}
-
-
diff --git a/market/templates/_types/browse/desktop/menu.html b/market/templates/_types/browse/desktop/menu.html
deleted file mode 100644
index 893cf2d..0000000
--- a/market/templates/_types/browse/desktop/menu.html
+++ /dev/null
@@ -1,37 +0,0 @@
- {% import '_types/browse/desktop/_filter/search.html' as s %}
- {{ s.search(current_local_href, search, search_count, hx_select) }}
-
-
-
- {% include "_types/browse/desktop/_filter/sort.html" %}
-
- {% include "_types/browse/desktop/_filter/like.html" %}
- {% if labels %}
- {% include "_types/browse/desktop/_filter/labels.html" %}
- {% endif %}
-
-
- {% if stickers %}
- {% include "_types/browse/desktop/_filter/stickers.html" %}
- {% endif %}
-
-
- {% if subs_local and top_local_href %}
- {% include "_types/browse/desktop/_category_selector.html" %}
- {% endif %}
-
-
-
-
-
- {% include "_types/browse/desktop/_filter/brand.html" %}
-
-
diff --git a/market/templates/_types/browse/index.html b/market/templates/_types/browse/index.html
deleted file mode 100644
index 015e6b3..0000000
--- a/market/templates/_types/browse/index.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% extends '_types/market/index.html' %}
-
-{% block filter %}
- {% include "_types/browse/mobile/_filter/summary.html" %}
-{% endblock %}
-
-{% block aside %}
- {% include "_types/browse/desktop/menu.html" %}
-{% endblock %}
-
-{% block content %}
- {% include "_types/browse/_main_panel.html" %}
-{% endblock %}
diff --git a/market/templates/_types/browse/like/button.html b/market/templates/_types/browse/like/button.html
deleted file mode 100644
index c409bc3..0000000
--- a/market/templates/_types/browse/like/button.html
+++ /dev/null
@@ -1,20 +0,0 @@
-
- {% if liked %}
-
- {% else %}
-
- {% endif %}
-
diff --git a/market/templates/_types/browse/mobile/_filter/brand_ul.html b/market/templates/_types/browse/mobile/_filter/brand_ul.html
deleted file mode 100644
index ccfcef1..0000000
--- a/market/templates/_types/browse/mobile/_filter/brand_ul.html
+++ /dev/null
@@ -1,40 +0,0 @@
-
- {% if brands|length %}
- Brands
-
- {% endif %}
-
\ No newline at end of file
diff --git a/market/templates/_types/browse/mobile/_filter/index.html b/market/templates/_types/browse/mobile/_filter/index.html
deleted file mode 100644
index 76c5817..0000000
--- a/market/templates/_types/browse/mobile/_filter/index.html
+++ /dev/null
@@ -1,30 +0,0 @@
-
- {% include "_types/browse/mobile/_filter/sort_ul.html" %}
- {% if search or selected_labels|length or selected_stickers|length or selected_brands|length %}
- {% set href = (current_local_href ~ {"clear_filters": True}|qs)|host %}
-
- {% endif %}
-
- {% include "_types/browse/mobile/_filter/like.html" %}
- {% include "_types/browse/mobile/_filter/labels.html" %}
-
- {% include "_types/browse/mobile/_filter/stickers.html" %}
- {% include "_types/browse/mobile/_filter/brand_ul.html" %}
-
diff --git a/market/templates/_types/browse/mobile/_filter/labels.html b/market/templates/_types/browse/mobile/_filter/labels.html
deleted file mode 100644
index bac6f4f..0000000
--- a/market/templates/_types/browse/mobile/_filter/labels.html
+++ /dev/null
@@ -1,47 +0,0 @@
-{% import 'macros/stickers.html' as stick %}
-
- {# One row only; center when not overflowing; horizontal scroll when needed #}
-
-
-
-{# Optional: hide horizontal scrollbar on mobile while keeping scrollable #}
-
diff --git a/market/templates/_types/browse/mobile/_filter/like.html b/market/templates/_types/browse/mobile/_filter/like.html
deleted file mode 100644
index 1d45fdf..0000000
--- a/market/templates/_types/browse/mobile/_filter/like.html
+++ /dev/null
@@ -1,40 +0,0 @@
-{% import 'macros/stickers.html' as stick %}
-
- {% set qs = {"liked": None if liked else True, "page": None}|qs%}
- {% set href = (current_local_href ~ qs)|host %}
-
- {% if liked %}
-
- {% else %}
-
- {% endif %}
-
- {{ liked_count }}
-
-
-
\ No newline at end of file
diff --git a/market/templates/_types/browse/mobile/_filter/search.html b/market/templates/_types/browse/mobile/_filter/search.html
deleted file mode 100644
index 43a2f30..0000000
--- a/market/templates/_types/browse/mobile/_filter/search.html
+++ /dev/null
@@ -1,40 +0,0 @@
-{% macro search(current_local_href, search, search_count, hx_select) -%}
-
-
-
-
-
- {% if search %}
- {{search_count}}
- {% endif %}
-
-
-{% endmacro %}
\ No newline at end of file
diff --git a/market/templates/_types/browse/mobile/_filter/sort_ul.html b/market/templates/_types/browse/mobile/_filter/sort_ul.html
deleted file mode 100644
index 5b3b2f4..0000000
--- a/market/templates/_types/browse/mobile/_filter/sort_ul.html
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-{% import 'macros/stickers.html' as stick %}
-
-
-
-
-
\ No newline at end of file
diff --git a/market/templates/_types/browse/mobile/_filter/stickers.html b/market/templates/_types/browse/mobile/_filter/stickers.html
deleted file mode 100644
index 9f3070c..0000000
--- a/market/templates/_types/browse/mobile/_filter/stickers.html
+++ /dev/null
@@ -1,50 +0,0 @@
-{% import 'macros/stickers.html' as stick %}
-
-
- {# One row only; center when not overflowing; horizontal scroll when needed #}
-
-
-
-{# Optional: hide horizontal scrollbar on mobile while keeping scrollable #}
-
diff --git a/market/templates/_types/browse/mobile/_filter/summary.html b/market/templates/_types/browse/mobile/_filter/summary.html
deleted file mode 100644
index 07a86a1..0000000
--- a/market/templates/_types/browse/mobile/_filter/summary.html
+++ /dev/null
@@ -1,120 +0,0 @@
-{% import 'macros/stickers.html' as stick %}
-{% import 'macros/layout.html' as layout %}
-
-
-
-
-{% call layout.details('/filter', 'md:hidden') %}
- {% call layout.filter_summary("filter-summary-mobile", current_local_href, search, search_count, hx_select) %}
-
-
-
-
- {% if sort %}
-
-
- {% for k,l,i in sort_options %}
- {% if k == sort %}
- {% set key = k %}
- {% set label = l %}
- {% set icon = i %}
-
- {{ stick.sticker(asset_url(icon), label, True)}}
-
- {% endif %}
- {% endfor %}
-
- {% endif %}
- {% if liked %}
-
-
- {% if liked_count is not none %}
-
- {{ liked_count }}
-
- {% endif %}
-
- {% endif %}
- {% if selected_labels and selected_labels|length %}
-
- {% for st in selected_labels %}
- {% for s in labels %}
- {% if st == s.name %}
-
- {{ stick.sticker(asset_url('nav-labels/' + s.name + '.svg'), s.name, True)}}
- {% if s.count is not none %}
-
- {{ s.count }}
-
- {% endif %}
-
- {% endif %}
- {% endfor %}
- {% endfor %}
-
- {% endif %}
- {% if selected_stickers and selected_stickers|length %}
-
- {% for st in selected_stickers %}
- {% for s in stickers %}
- {% if st == s.name %}
-
-
- {{ stick.sticker(asset_url('stickers/' + s.name + '.svg'), s.name, True)}}
- {% if s.count is not none %}
-
- {{ s.count }}
-
- {% endif %}
-
- {% endif %}
- {% endfor %}
- {% endfor %}
-
- {% endif %}
-
-
- {% if selected_brands and selected_brands|length %}
-
- {% for b in selected_brands %}
-
- {% set ns = namespace(count=0) %}
- {% for brand in brands %}
- {% if brand.name == b %}
- {% set ns.count = brand.count %}
- {% endif %}
- {% endfor %}
- {% if ns.count %}
- {{ b }}
- {{ ns.count }}
- {% else %}
- {{ b }}
- 0
- {% endif %}
-
- {% endfor %}
-
-
-
- {% endif %}
-
- {% endcall %}
-
- {% include "_types/browse/mobile/_filter/index.html" %}
-
-{% endcall %}
diff --git a/market/templates/_types/market/_admin.html b/market/templates/_types/market/_admin.html
deleted file mode 100644
index 0b09927..0000000
--- a/market/templates/_types/market/_admin.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{% import "macros/links.html" as links %}
-{% if g.rights.admin %}
- {% from 'macros/admin_nav.html' import admin_nav_item %}
- {{admin_nav_item(
- url_for('market.admin.admin')
- )}}
-{% endif %}
\ No newline at end of file
diff --git a/market/templates/_types/market/_main_panel.html b/market/templates/_types/market/_main_panel.html
deleted file mode 100644
index 87bb965..0000000
--- a/market/templates/_types/market/_main_panel.html
+++ /dev/null
@@ -1,23 +0,0 @@
-{# Main panel fragment for HTMX navigation - market landing page #}
-
- {% if post.custom_excerpt %}
-
- {{post.custom_excerpt|safe}}
-
- {% endif %}
- {% if post.feature_image %}
-
-
-
- {% endif %}
-
- {% if post.html %}
- {{post.html|safe}}
- {% endif %}
-
-
-
diff --git a/market/templates/_types/market/_oob_elements.html b/market/templates/_types/market/_oob_elements.html
deleted file mode 100644
index 075c166..0000000
--- a/market/templates/_types/market/_oob_elements.html
+++ /dev/null
@@ -1,30 +0,0 @@
-{% extends 'oob_elements.html' %}
-
-{# OOB elements for HTMX navigation - all elements that need updating #}
-
-{# Import shared OOB macros #}
-{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %}
-{% from '_types/root/_oob_menu.html' import mobile_menu with context %}
-
-{# Header with app title - includes cart-mini, navigation, and market-specific header #}
-
-{% block oobs %}
-
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('post-header-child', 'market-header-child', '_types/market/header/_header.html')}}
-
- {% from '_types/post/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-
-{% block mobile_menu %}
- {% include '_types/market/mobile/_nav_panel.html' %}
-{% endblock %}
-
-
-{% block content %}
- {% include "_types/market/_main_panel.html" %}
-{% endblock %}
-
-
diff --git a/market/templates/_types/market/_title.html b/market/templates/_types/market/_title.html
deleted file mode 100644
index 6e8024b..0000000
--- a/market/templates/_types/market/_title.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
- {{ market_title }}
-
-
-
- {{top_slug or ''}}
-
- {% if sub_slug %}
-
- {{sub_slug}}
-
- {% endif %}
-
-
\ No newline at end of file
diff --git a/market/templates/_types/market/admin/_main_panel.html b/market/templates/_types/market/admin/_main_panel.html
deleted file mode 100644
index a354325..0000000
--- a/market/templates/_types/market/admin/_main_panel.html
+++ /dev/null
@@ -1 +0,0 @@
-market admin
\ No newline at end of file
diff --git a/market/templates/_types/market/admin/_nav.html b/market/templates/_types/market/admin/_nav.html
deleted file mode 100644
index f5c504d..0000000
--- a/market/templates/_types/market/admin/_nav.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% from 'macros/admin_nav.html' import placeholder_nav %}
-{{ placeholder_nav() }}
diff --git a/market/templates/_types/market/admin/_oob_elements.html b/market/templates/_types/market/admin/_oob_elements.html
deleted file mode 100644
index 9b306fd..0000000
--- a/market/templates/_types/market/admin/_oob_elements.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{% extends 'oob_elements.html' %}
-
-{# OOB elements for HTMX navigation - all elements that need updating #}
-
-{# Import shared OOB macros #}
-{% from '_types/root/_oob_menu.html' import mobile_menu with context %}
-
-{# Header with app title - includes cart-mini, navigation, and market-specific header #}
-
-{% block oobs %}
-
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('market-header-child', 'market-admin-header-child', '_types/market/admin/header/_header.html')}}
-
- {% from '_types/market/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-
-{% block mobile_menu %}
- {% include '_types/market/admin/_nav.html' %}
-{% endblock %}
-
-
-{% block content %}
- {% include "_types/market/admin/_main_panel.html" %}
-{% endblock %}
-
-
diff --git a/market/templates/_types/market/admin/header/_header.html b/market/templates/_types/market/admin/header/_header.html
deleted file mode 100644
index 950eefc..0000000
--- a/market/templates/_types/market/admin/header/_header.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='market-admin-row', oob=oob) %}
- {% call links.link(url_for('market.admin.admin'), hx_select_search) %}
- {{ links.admin() }}
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/market/admin/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
\ No newline at end of file
diff --git a/market/templates/_types/market/admin/index.html b/market/templates/_types/market/admin/index.html
deleted file mode 100644
index 4798c46..0000000
--- a/market/templates/_types/market/admin/index.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{% extends '_types/market/index.html' %}
-
-
-{% block market_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('market-admin-header-child', '_types/market/admin/header/_header.html') %}
- {% block market_admin_header_child %}
- {% endblock %}
- {% endcall %}
-{% endblock %}
-
-{% block _main_mobile_menu %}
- {% include '_types/market/admin/_nav.html' %}
-{% endblock %}
-
-
-{% block content %}
- {% include '_types/market/admin/_main_panel.html' %}
-{% endblock %}
diff --git a/market/templates/_types/market/desktop/_nav.html b/market/templates/_types/market/desktop/_nav.html
deleted file mode 100644
index 7f9d8e6..0000000
--- a/market/templates/_types/market/desktop/_nav.html
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
- {% set all_href = (url_for('market.browse.browse_all') ~ qs)|host %}
- {% set all_active = (category_label == 'All Products') %}
-
-
- {% for cat, data in categories.items() %}
- {% set cat_href = (url_for('market.browse.browse_top', top_slug=data.slug) ~ qs)|host%}
- {% set cat_active = (cat == category_label) %}
-
- {% endfor %}
- {% include '_types/market/_admin.html' %}
-
diff --git a/market/templates/_types/market/header/_header.html b/market/templates/_types/market/header/_header.html
deleted file mode 100644
index 2d92286..0000000
--- a/market/templates/_types/market/header/_header.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='market-row', oob=oob) %}
- {% call links.link(url_for('market.browse.home'), hx_select_search ) %}
- {% include '_types/market/_title.html' %}
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/market/desktop/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
\ No newline at end of file
diff --git a/market/templates/_types/market/index.html b/market/templates/_types/market/index.html
deleted file mode 100644
index 4da7f68..0000000
--- a/market/templates/_types/market/index.html
+++ /dev/null
@@ -1,27 +0,0 @@
-{% extends '_types/root/_index.html' %}
-
-
-{% block root_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('post-header-child', '_types/post/header/_header.html') %}
- {% call index_row('market-header-child', '_types/market/header/_header.html') %}
- {% block market_header_child %}
- {% endblock %}
- {% endcall %}
- {% endcall %}
-{% endblock %}
-
-
-{% block _main_mobile_menu %}
- {% include '_types/market/mobile/_nav_panel.html' %}
-{% endblock %}
-
-
-
-{% block aside %}
-{# No aside on landing page #}
-{% endblock %}
-
-{% block content %}
- {% include "_types/market/_main_panel.html" %}
-{% endblock %}
diff --git a/market/templates/_types/market/markets_listing.html b/market/templates/_types/market/markets_listing.html
deleted file mode 100644
index ab8d2b0..0000000
--- a/market/templates/_types/market/markets_listing.html
+++ /dev/null
@@ -1,23 +0,0 @@
-{% extends '_types/root/_index.html' %}
-
-{% block content %}
-
-
Markets
-
- {% if markets %}
-
- {% else %}
-
No markets available.
- {% endif %}
-
-{% endblock %}
diff --git a/market/templates/_types/market/mobile/_nav_panel.html b/market/templates/_types/market/mobile/_nav_panel.html
deleted file mode 100644
index 2753f0a..0000000
--- a/market/templates/_types/market/mobile/_nav_panel.html
+++ /dev/null
@@ -1,110 +0,0 @@
-{% from 'macros/glyphs.html' import opener %}
-
-
- {% set all_href = (url_for('market.browse.browse_all') ~ qs)|host %}
- {% set all_active = (category_label == 'All Products') %}
-
-
- All
-
-
- {% for cat, data in categories.items() %}
-
-
-
- {% set href = (url_for('market.browse.browse_top', top_slug=data.slug) ~ qs)|host %}
-
-
- {{ cat }}
- {{ data.count }}
-
- {{ opener('cat')}}
-
-
-
-
- {% if data.subs %}
-
-
-
-
- {% for sub in data.subs %}
- {% set href = (url_for('market.browse.browse_sub', top_slug=data.slug, sub_slug=sub.slug) ~qs)|host%}
- {% if top_slug==(data.slug | lower) and sub_slug == sub.slug %}
-
- {{ sub.html_label or sub.name }}
- {{ sub.count }}
-
- {% endif %}
- {% endfor %}
- {% for sub in data.subs %}
- {% if not (top_slug==(data.slug | lower) and sub_slug == sub.slug) %}
- {% set href = (url_for('market.browse.browse_sub', top_slug=data.slug, sub_slug=sub.slug) ~ qs)|host%}
-
- {{ sub.name }}
- {{ sub.count }}
-
- {% endif %}
- {% endfor %}
-
-
- {% else %}
- {% set href = (url_for('market.browse.browse_top', top_slug=data.slug) ~ qs)|host%}
-
View all
- {% endif %}
-
-
- {% endfor %}
- {% include '_types/market/_admin.html' %}
-
-
diff --git a/market/templates/_types/market/mobile/menu.html b/market/templates/_types/market/mobile/menu.html
deleted file mode 100644
index 145b551..0000000
--- a/market/templates/_types/market/mobile/menu.html
+++ /dev/null
@@ -1,6 +0,0 @@
-{% extends 'mobile/menu.html' %}
-{% block menu %}
- {% block mobile_menu %}
- {% endblock %}
- {% include '_types/market/mobile/_nav_panel.html' %}
-{% endblock %}
diff --git a/market/templates/_types/page_markets/_card.html b/market/templates/_types/page_markets/_card.html
deleted file mode 100644
index 19e31af..0000000
--- a/market/templates/_types/page_markets/_card.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{# Card for a single market in a page-scoped listing #}
-{% set market_href = market_url('/' ~ post.slug ~ '/' ~ market.slug ~ '/') %}
-
-
-
diff --git a/market/templates/_types/page_markets/_cards.html b/market/templates/_types/page_markets/_cards.html
deleted file mode 100644
index 91021e8..0000000
--- a/market/templates/_types/page_markets/_cards.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% for market in markets %}
- {% include "_types/page_markets/_card.html" %}
-{% endfor %}
-{% if has_more %}
- {# Infinite scroll sentinel #}
- {% set next_url = url_for('page_markets.markets_fragment', page=page + 1)|host %}
-
-{% endif %}
diff --git a/market/templates/_types/page_markets/_main_panel.html b/market/templates/_types/page_markets/_main_panel.html
deleted file mode 100644
index c01cfb2..0000000
--- a/market/templates/_types/page_markets/_main_panel.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{# Markets grid for a single page #}
-{% if markets %}
-
- {% include "_types/page_markets/_cards.html" %}
-
-{% else %}
-
-
-
No markets for this page
-
-{% endif %}
-
diff --git a/market/templates/_types/page_markets/index.html b/market/templates/_types/page_markets/index.html
deleted file mode 100644
index 23f99a1..0000000
--- a/market/templates/_types/page_markets/index.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends '_types/root/_index.html' %}
-
-{% block meta %}{% endblock %}
-
-{% block root_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('post-header-child', '_types/post/header/_header.html') %}
- {% block post_header_child %}
- {% endblock %}
- {% endcall %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/page_markets/_main_panel.html' %}
-{% endblock %}
diff --git a/market/templates/_types/post/_nav.html b/market/templates/_types/post/_nav.html
deleted file mode 100644
index f2a7af8..0000000
--- a/market/templates/_types/post/_nav.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{% import 'macros/links.html' as links %}
- {# Container nav from fragments (calendars, markets) #}
- {% if container_nav_html %}
-
- {{ container_nav_html | safe }}
-
- {% endif %}
-
- {# Admin link #}
- {% if post and has_access('blog.post.admin.admin') %}
- {% call links.link(url_for('blog.post.admin.admin', slug=post.slug), hx_select_search, select_colours, True, aclass=styles.nav_button) %}
-
- {% endcall %}
- {% endif %}
diff --git a/market/templates/_types/post/admin/_nav_entries.html b/market/templates/_types/post/admin/_nav_entries.html
deleted file mode 100644
index 04732b1..0000000
--- a/market/templates/_types/post/admin/_nav_entries.html
+++ /dev/null
@@ -1,41 +0,0 @@
-
- {# Left scroll arrow - desktop only #}
-
-
-
-
- {# Widget-driven nav items container #}
-
-
-
-
- {# Right scroll arrow - desktop only #}
-
-
-
diff --git a/market/templates/_types/post/header/_header.html b/market/templates/_types/post/header/_header.html
deleted file mode 100644
index 6655eb5..0000000
--- a/market/templates/_types/post/header/_header.html
+++ /dev/null
@@ -1,28 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='post-row', oob=oob) %}
- {% call links.link(blog_url('/' + post.slug + '/'), hx_select_search ) %}
- {% if post.feature_image %}
-
- {% endif %}
-
- {{ post.title | truncate(160, True, '…') }}
-
- {% endcall %}
- {% call links.desktop_nav() %}
- {% if page_cart_count is defined and page_cart_count > 0 %}
-
-
- {{ page_cart_count }}
-
- {% endif %}
- {% include '_types/post/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
\ No newline at end of file
diff --git a/market/templates/_types/product/_added.html b/market/templates/_types/product/_added.html
deleted file mode 100644
index 251387a..0000000
--- a/market/templates/_types/product/_added.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{# HTMX response after add-to-cart: OOB-swap the mini cart + product buttons #}
-{% import '_types/product/_cart.html' as _cart %}
-
-{# 1. Update mini cart directly — handler already has the cart data #}
-{% from 'macros/cart_icon.html' import cart_icon %}
-{{ cart_icon(count=cart | sum(attribute="quantity")) }}
-
-{# 2. Update add/remove buttons on the product #}
-{{ _cart.add(d.slug, cart, oob='true') }}
-
-{# 3. Update cart item row if visible #}
-{% from '_types/product/_cart.html' import cart_item with context %}
-{% if item and item.quantity > 0 %}
- {{ cart_item(oob='true') }}
-{% elif item %}
- {{ cart_item(oob='delete') }}
-{% endif %}
diff --git a/market/templates/_types/product/_cart.html b/market/templates/_types/product/_cart.html
deleted file mode 100644
index 77ff3dc..0000000
--- a/market/templates/_types/product/_cart.html
+++ /dev/null
@@ -1,250 +0,0 @@
-{% macro add(slug, cart, oob='false') %}
-{% set quantity = cart
- | selectattr('product.slug', 'equalto', slug)
- | sum(attribute='quantity') %}
-
-
-
- {% if not quantity %}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {% else %}
-
- {% endif %}
-
-{% endmacro %}
-
-
-
-{% macro cart_item(oob=False) %}
-
-{% set p = item.product %}
-{% set unit_price = p.special_price or p.regular_price %}
-
-
- {% if p.image %}
-
- {% else %}
-
- No image
-
'market', 'product', p.slug
- {% endif %}
-
-
- {# Details #}
-
-
-
-
- {% set href=url_for('market.browse.product.product_detail', product_slug=p.slug) %}
-
- {{ p.title }}
-
-
-
- {% if p.brand %}
-
- {{ p.brand }}
-
- {% endif %}
-
- {% if item.is_deleted %}
-
-
- This item is no longer available or price has changed
-
- {% endif %}
-
-
- {# Unit price #}
-
- {% if unit_price %}
- {% set symbol = "£" if p.regular_price_currency == "GBP" else p.regular_price_currency %}
-
- {{ symbol }}{{ "%.2f"|format(unit_price) }}
-
- {% if p.special_price and p.special_price != p.regular_price %}
-
- {{ symbol }}{{ "%.2f"|format(p.regular_price) }}
-
- {% endif %}
- {% else %}
-
No price
- {% endif %}
-
-
-
-
-
- Quantity
-
-
-
-
- -
-
-
-
- {{ item.quantity }}
-
-
-
-
-
- +
-
-
-
-
-
- {% if unit_price %}
- {% set line_total = unit_price * item.quantity %}
- {% set symbol = "£" if p.regular_price_currency == "GBP" else p.regular_price_currency %}
-
- Line total:
- {{ symbol }}{{ "%.2f"|format(line_total) }}
-
- {% endif %}
-
-
-
-
-
-{% endmacro %}
diff --git a/market/templates/_types/product/_main_panel.html b/market/templates/_types/product/_main_panel.html
deleted file mode 100644
index cf8df31..0000000
--- a/market/templates/_types/product/_main_panel.html
+++ /dev/null
@@ -1,131 +0,0 @@
-{# Main panel fragment for HTMX navigation - product detail content #}
-{% import 'macros/stickers.html' as stick %}
-{% import '_types/product/prices.html' as prices %}
-{% set prices_ns = namespace() %}
-{{ prices.set_prices(d, prices_ns)}}
-
- {# Product detail grid from content block #}
-
-
- {% if d.images and d.images|length > 0 %}
-
- {# --- like button overlay in top-right --- #}
- {% if g.user %}
-
- {% set slug = d.slug %}
- {% set liked = liked_by_current_user %}
- {% include "_types/browse/like/button.html" %}
-
- {% endif %}
-
-
-
-
-
- {% for l in d.labels %}
-
- {% endfor %}
-
-
- {{ d.brand }}
-
-
-
- {% if d.images|length > 1 %}
-
‹
-
›
- {% endif %}
-
-
-
- {% else %}
-
- {# Even if no image, still render the like button in the corner for consistency #}
- {% if g.user %}
-
- {% set slug = d.slug %}
- {% set liked = liked_by_current_user %}
- {% include "_types/browse/like/button.html" %}
-
- {% endif %}
-
- No image
-
- {% endif %}
-
-
- {% for s in d.stickers %}
- {{ stick.sticker(asset_url('stickers/' + s + '.svg'), s, True, size=40) }}
- {% endfor %}
-
-
-
-
- {# Optional extras shown quietly #}
-
- {% if d.price_per_unit or d.price_per_unit_raw %}
-
Unit price: {{ prices.price_str(d.price_per_unit, d.price_per_unit_raw, d.price_per_unit_currency) }}
- {% endif %}
- {% if d.case_size_raw %}
-
Case size: {{ d.case_size_raw }}
- {% endif %}
-
-
-
- {% if d.description_short or d.description_html %}
-
- {% if d.description_short %}
-
{{ d.description_short }}
- {% endif %}
- {% if d.description_html %}
-
- {{ d.description_html | safe }}
-
- {% endif %}
-
- {% endif %}
-
- {% if d.sections and d.sections|length %}
-
- {% for sec in d.sections %}
-
-
- {{ sec.title }}
- ⌄
-
-
- {{ sec.html | safe }}
-
-
- {% endfor %}
-
- {% endif %}
-
-
-
-
diff --git a/market/templates/_types/product/_meta.html b/market/templates/_types/product/_meta.html
deleted file mode 100644
index aebb684..0000000
--- a/market/templates/_types/product/_meta.html
+++ /dev/null
@@ -1,106 +0,0 @@
-{# --- social/meta_product.html --- #}
-{# Context expected:
- site, d (Product), request
-#}
-
-{# Visibility → robots: index unless soft-deleted #}
-{% set robots_here = 'noindex,nofollow' if d.deleted_at else 'index,follow' %}
-
-{# Compute canonical #}
-{% set _site_url = site().url.rstrip('/') if site and site().url else '' %}
-{% set _product_path = request.path if request else ('/products/' ~ (d.slug or '')) %}
-{% set canonical = _site_url ~ _product_path if _site_url else (request.url if request else None) %}
-
-{# Include common base (charset, viewport, robots default, RSS, Org/WebSite JSON-LD) #}
-{% set robots_override = robots_here %}
-{% include 'social/meta_base.html' %}
-
-{# ---- Titles / descriptions ---- #}
-{% set base_product_title = d.title or base_title %}
-{% set og_title = base_product_title %}
-{% set tw_title = base_product_title %}
-
-{# Description: prefer short, then HTML stripped #}
-{% set desc_source = d.description_short
- or (d.description_html|striptags if d.description_html else '') %}
-{% set description = (desc_source|trim|replace('\n',' ')|replace('\r',' ')|striptags)|truncate(160, True, '…') %}
-
-{# ---- Image priority: product image, then first gallery image, then site default ---- #}
-{% set image_url = d.image
- or ((d.images|first).url if d.images and (d.images|first).url else None)
- or (site().default_image if site and site().default_image else None) %}
-
-{# ---- Price / offer helpers ---- #}
-{% set price = d.special_price or d.regular_price or d.rrp %}
-{% set price_currency = d.special_price_currency or d.regular_price_currency or d.rrp_currency %}
-
-{# ---- Basic meta ---- #}
-{{ base_product_title }}
-
-{% if canonical %} {% endif %}
-
-{# ---- Open Graph ---- #}
-
-
-
-
-{% if canonical %} {% endif %}
-{% if image_url %} {% endif %}
-
-{# Optional product OG price tags #}
-{% if price and price_currency %}
-
-
-{% endif %}
-{% if d.brand %}
-
-{% endif %}
-{% if d.sku %}
-
-{% endif %}
-
-{# ---- Twitter ---- #}
-
-{% if site and site().twitter_site %} {% endif %}
-
-
-{% if image_url %} {% endif %}
-
-{# ---- JSON-LD Product ---- #}
-{% set jsonld = {
- "@context": "https://schema.org",
- "@type": "Product",
- "name": d.title,
- "image": image_url,
- "description": description,
- "sku": d.sku,
- "brand": d.brand,
- "url": canonical
-} %}
-
-{# Brand as proper object if present #}
-{% if d.brand %}
- {% set jsonld = jsonld | combine({
- "brand": {
- "@type": "Brand",
- "name": d.brand
- }
- }) %}
-{% endif %}
-
-{# Offers if price available #}
-{% if price and price_currency %}
- {% set jsonld = jsonld | combine({
- "offers": {
- "@type": "Offer",
- "price": price,
- "priceCurrency": price_currency,
- "url": canonical,
- "availability": "https://schema.org/InStock"
- }
- }) %}
-{% endif %}
-
-
diff --git a/market/templates/_types/product/_oob_elements.html b/market/templates/_types/product/_oob_elements.html
deleted file mode 100644
index 589d369..0000000
--- a/market/templates/_types/product/_oob_elements.html
+++ /dev/null
@@ -1,49 +0,0 @@
-{% extends 'oob_elements.html' %}
-{# OOB elements for HTMX navigation - product extends browse so use similar structure #}
-{% import 'macros/layout.html' as layout %}
-{% import 'macros/stickers.html' as stick %}
-{% import '_types/product/prices.html' as prices %}
-{% set prices_ns = namespace() %}
-{{ prices.set_prices(d, prices_ns)}}
-
-{# Import shared OOB macros #}
-{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %}
-{% from '_types/root/_oob_menu.html' import mobile_menu with context %}
-
-
-
-{% block oobs %}
- {% from '_types/market/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('market-header-child', 'product-header-child', '_types/product/header/_header.html')}}
-
-{% endblock %}
-
-
-
-{% block mobile_menu %}
- {% include '_types/market/mobile/_nav_panel.html' %}
- {% include '_types/browse/_admin.html' %}
-{% endblock %}
-
-{% block filter %}
- {% call layout.details() %}
- {% call layout.summary('blog-child-header') %}
- {% endcall %}
- {% call layout.menu('blog-child-menu') %}
- {% endcall %}
- {% endcall %}
-
- {% call layout.details() %}
- {% call layout.summary('product-child-header') %}
- {% endcall %}
- {% call layout.menu('item-child-menu') %}
- {% endcall %}
- {% endcall %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/product/_main_panel.html' %}
-{% endblock %}
diff --git a/market/templates/_types/product/_prices.html b/market/templates/_types/product/_prices.html
deleted file mode 100644
index e56339f..0000000
--- a/market/templates/_types/product/_prices.html
+++ /dev/null
@@ -1,33 +0,0 @@
-{% import '_types/product/_cart.html' as _cart %}
- {# ---- Price block ---- #}
- {% import '_types/product/prices.html' as prices %}
- {% set prices_ns = namespace() %}
- {{ prices.set_prices(d, prices_ns)}}
-
-
- {{ _cart.add(d.slug, cart)}}
-
- {% if prices_ns.sp_val %}
-
- Special price
-
-
- {{ prices.price_str(prices_ns.sp_val, prices_ns.sp_raw, prices_ns.sp_cur) }}
-
- {% if prices_ns.sp_val and prices_ns.rp_val %}
-
- {{ prices.price_str(prices_ns.rp_val, prices_ns.rp_raw, prices_ns.rp_cur) }}
-
- {% endif %}
- {% elif prices_ns.rp_val %}
-
- Our price
-
-
- {{ prices.price_str(prices_ns.rp_val, prices_ns.rp_raw, prices_ns.rp_cur) }}
-
- {% endif %}
- {{ prices.rrp(prices_ns) }}
-
-
-
diff --git a/market/templates/_types/product/_title.html b/market/templates/_types/product/_title.html
deleted file mode 100644
index 0b3be43..0000000
--- a/market/templates/_types/product/_title.html
+++ /dev/null
@@ -1,2 +0,0 @@
-
-{{ d.title }}
diff --git a/market/templates/_types/product/admin/_nav.html b/market/templates/_types/product/admin/_nav.html
deleted file mode 100644
index f5c504d..0000000
--- a/market/templates/_types/product/admin/_nav.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% from 'macros/admin_nav.html' import placeholder_nav %}
-{{ placeholder_nav() }}
diff --git a/market/templates/_types/product/admin/_oob_elements.html b/market/templates/_types/product/admin/_oob_elements.html
deleted file mode 100644
index 84acac6..0000000
--- a/market/templates/_types/product/admin/_oob_elements.html
+++ /dev/null
@@ -1,40 +0,0 @@
-{% extends 'oob_elements.html' %}
-
-
-{# OOB elements for HTMX navigation - all elements that need updating #}
-{# Import shared OOB macros #}
-{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %}
-{% from '_types/root/_oob_menu.html' import mobile_menu with context %}
-
-
-
-{% block oobs %}
-
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('product-header-child', 'product-admin-header-child', '_types/product/admin/header/_header.html')}}
-
- {% from '_types/product/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-
-{% from '_types/root/_n/macros.html' import header with context %}
-{% call header(id='product-header-child', oob=True) %}
- {% call header() %}
- {% from '_types/product/admin/header/_header.html' import header_row with context %}
- {{header_row()}}
-
- {% endcall %}
-{% endcall %}
-
-
-{% block mobile_menu %}
- {% include '_types/product/admin/_nav.html' %}
-{% endblock %}
-
-
-{% block content %}
- {% include '_types/product/_main_panel.html' %}
-{% endblock %}
diff --git a/market/templates/_types/product/admin/header/_header.html b/market/templates/_types/product/admin/header/_header.html
deleted file mode 100644
index eacdf7d..0000000
--- a/market/templates/_types/product/admin/header/_header.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='product-admin-row', oob=oob) %}
- {% call links.link(url_for('market.browse.product.admin', product_slug=d.slug), hx_select_search ) %}
- admin!!
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/product/admin/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
\ No newline at end of file
diff --git a/market/templates/_types/product/admin/index.html b/market/templates/_types/product/admin/index.html
deleted file mode 100644
index d1cb714..0000000
--- a/market/templates/_types/product/admin/index.html
+++ /dev/null
@@ -1,39 +0,0 @@
-{% extends '_types/product/index.html' %}
-
-{% import 'macros/layout.html' as layout %}
-
-{% block product_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('market-header-child', '_types/product/admin/header/_header.html') %}
- {% block product_admin_header_child %}
- {% endblock %}
- {% endcall %}
-{% endblock %}
-
-
-
-{% block ___app_title %}
- {% import 'macros/links.html' as links %}
- {% call links.menu_row() %}
- {% call links.link(url_for('market.browse.product.admin', product_slug=slug), hx_select_search) %}
- {{ links.admin() }}
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/product/admin/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endblock %}
-
-
-
-{% block _main_mobile_menu %}
- {% include '_types/product/admin/_nav.html' %}
-{% endblock %}
-
-{% block aside %}
-{% endblock %}
-
-
-{% block content %}
-{% include '_types/product/_main_panel.html' %}
-{% endblock %}
diff --git a/market/templates/_types/product/header/_header.html b/market/templates/_types/product/header/_header.html
deleted file mode 100644
index 6608fce..0000000
--- a/market/templates/_types/product/header/_header.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='product-row', oob=oob) %}
- {% call links.link(url_for('market.browse.product.product_detail', product_slug=d.slug), hx_select_search ) %}
- {% include '_types/product/_title.html' %}
- {% endcall %}
- {% include '_types/product/_prices.html' %}
- {% call links.desktop_nav() %}
- {% include '_types/browse/_admin.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
-
-
-
diff --git a/market/templates/_types/product/index.html b/market/templates/_types/product/index.html
deleted file mode 100644
index 31ccd88..0000000
--- a/market/templates/_types/product/index.html
+++ /dev/null
@@ -1,61 +0,0 @@
-{% extends '_types/browse/index.html' %}
-
-{% block meta %}
- {% include '_types/product/_meta.html' %}
-{% endblock %}
-
-
-{% import 'macros/stickers.html' as stick %}
-{% import '_types/product/prices.html' as prices %}
-{% set prices_ns = namespace() %}
-{{ prices.set_prices(d, prices_ns)}}
-
-
-
-{% block market_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('market-header-child', '_types/product/header/_header.html') %}
- {% block product_header_child %}
- {% endblock %}
- {% endcall %}
-{% endblock %}
-
-
-{% block _main_mobile_menu %}
- {% include '_types/browse/_admin.html' %}
-{% endblock %}
-
-
-
-{% block filter %}
-
-{% call layout.details() %}
- {% call layout.summary('blog-child-header') %}
- {% block blog_child_summary %}
- {% endblock %}
- {% endcall %}
- {% call layout.menu('blog-child-menu') %}
- {% block post_child_menu %}
- {% endblock %}
- {% endcall %}
- {% endcall %}
-
- {% call layout.details() %}
- {% call layout.summary('product-child-header') %}
- {% block item_child_summary %}
- {% endblock %}
- {% endcall %}
- {% call layout.menu('item-child-menu') %}
- {% block item_child_menu %}
- {% endblock %}
- {% endcall %}
- {% endcall %}
-
-{% endblock %}
-
-{% block aside %}
-{% endblock %}
-
-{% block content %}
- {% include '_types/product/_main_panel.html' %}
-{% endblock %}
diff --git a/market/templates/_types/product/prices.html b/market/templates/_types/product/prices.html
deleted file mode 100644
index be9cc4c..0000000
--- a/market/templates/_types/product/prices.html
+++ /dev/null
@@ -1,66 +0,0 @@
-{# ---- Price formatting helpers ---- #}
-{% set _sym = {'GBP':'£','EUR':'€','USD':'$'} %}
-{% macro price_str(val, raw, cur) -%}
- {%- if raw -%}
- {{ raw }}
- {%- elif val is number -%}
- {{ (_sym.get(cur) or '') ~ ('%.2f'|format(val)) }}
- {%- else -%}
- {{ val or '' }}
- {%- endif -%}
-{%- endmacro %}
-
-
-{% macro set_prices(item, ns) -%}
-
-{% set ns.sp_val = item.special_price or (item.oe_list_price and item.oe_list_price.special) %}
-{% set ns.sp_raw = item.special_price_raw or (item.oe_list_price and item.oe_list_price.special_raw) %}
-{% set ns.sp_cur = item.special_price_currency or (item.oe_list_price and item.oe_list_price.special_currency) %}
-
-{% set ns.rp_val = item.regular_price or item.rrp or (item.oe_list_price and item.oe_list_price.rrp) %}
-{% set ns.rp_raw = item.regular_price_raw or item.rrp_raw or (item.oe_list_price and item.oe_list_price.rrp_raw) %}
-{% set ns.rp_cur = item.regular_price_currency or item.rrp_currency or (item.oe_list_price and item.oe_list_price.rrp_currency) %}
-
-{% set ns.case_size_count = (item.case_size_count or 1) %}
-{% set ns.rrp = item.rrp_raw[0] ~ "%.2f"|format(item.rrp * (ns.case_size_count)) %}
-{% set ns.rrp_raw = item.rrp_raw %}
-
-{%- endmacro %}
-
-
-{% macro rrp(ns) -%}
- {% if ns.rrp %}
-
- rrp:
-
- {{ ns.rrp }}
-
-
- {% endif %}
-{%- endmacro %}
-
-
-{% macro card_price(item) %}
-
-
-{# price block unchanged #}
- {% set _sym = {'GBP':'£','EUR':'€','USD':'$'} %}
- {% set sp_val = item.special_price or (item.oe_list_price and item.oe_list_price.special) %}
- {% set sp_raw = item.special_price_raw or (item.oe_list_price and item.oe_list_price.special_raw) %}
- {% set sp_cur = item.special_price_currency or (item.oe_list_price and item.oe_list_price.special_currency) %}
- {% set rp_val = item.regular_price or item.rrp or (item.oe_list_price and item.oe_list_price.rrp) %}
- {% set rp_raw = item.regular_price_raw or item.rrp_raw or (item.oe_list_price and item.oe_list_price.rrp_raw) %}
- {% set rp_cur = item.regular_price_currency or item.rrp_currency or (item.oe_list_price and item.oe_list_price.rrp_currency) %}
- {% set sp_str = sp_raw if sp_raw else ( (_sym.get(sp_cur, '') ~ ('%.2f'|format(sp_val))) if sp_val is number else (sp_val or '')) %}
- {% set rp_str = rp_raw if rp_raw else ( (_sym.get(rp_cur, '') ~ ('%.2f'|format(rp_val))) if rp_val is number else (rp_val or '')) %}
-
- {% if sp_val %}
-
{{ sp_str }}
- {% if rp_val %}
-
{{ rp_str }}
- {% endif %}
- {% elif rp_val %}
-
{{ rp_str }}
- {% endif %}
-
-{% endmacro %}
diff --git a/market/templates/aside_clear.html b/market/templates/aside_clear.html
deleted file mode 100644
index d1ac5c9..0000000
--- a/market/templates/aside_clear.html
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/market/templates/filter_clear.html b/market/templates/filter_clear.html
deleted file mode 100644
index 578b0b9..0000000
--- a/market/templates/filter_clear.html
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
diff --git a/market/templates/macros/filters.html b/market/templates/macros/filters.html
deleted file mode 100644
index 40b477f..0000000
--- a/market/templates/macros/filters.html
+++ /dev/null
@@ -1,117 +0,0 @@
-{#
- Unified filter macros for browse/shop pages
- Consolidates duplicate mobile/desktop filter components
-#}
-
-{% macro filter_item(href, is_on, title, icon_html, count=none, variant='desktop') %}
- {#
- Generic filter item (works for labels, stickers, etc.)
- variant: 'desktop' or 'mobile'
- #}
- {% set base_class = "flex flex-col items-center justify-center" %}
- {% if variant == 'mobile' %}
- {% set item_class = base_class ~ " p-1 rounded hover:bg-stone-50" %}
- {% set count_class = "text-[10px] text-stone-500 mt-1 leading-none tabular-nums" if count != 0 else "text-md text-red-500 font-bold mt-1 leading-none tabular-nums" %}
- {% else %}
- {% set item_class = base_class ~ " py-2 w-full h-full" %}
- {% set count_class = "text-xs text-stone-500 leading-none justify-self-end tabular-nums" if count != 0 else "text-md text-red-500 font-bold leading-none justify-self-end tabular-nums" %}
- {% endif %}
-
-
- {{ icon_html | safe }}
- {% if count is not none %}
- {{ count }}
- {% endif %}
-
-{% endmacro %}
-
-
-{% macro labels_list(labels, selected_labels, current_local_href, variant='desktop') %}
- {#
- Unified labels filter list
- variant: 'desktop' or 'mobile'
- #}
- {% import 'macros/stickers.html' as stick %}
-
- {% if variant == 'mobile' %}
-
-
- {% endif %}
-{% endmacro %}
-
-
-{% macro stickers_list(stickers, selected_stickers, current_local_href, variant='desktop') %}
- {#
- Unified stickers filter list
- variant: 'desktop' or 'mobile'
- #}
- {% import 'macros/stickers.html' as stick %}
-
- {% if variant == 'mobile' %}
-
-
-
- {% endif %}
-{% endmacro %}
-
-
diff --git a/orders/templates/_types/cart/checkout_error.html b/orders/templates/_types/cart/checkout_error.html
deleted file mode 100644
index a15b1e9..0000000
--- a/orders/templates/_types/cart/checkout_error.html
+++ /dev/null
@@ -1,38 +0,0 @@
-{% extends '_types/root/index.html' %}
-
-{% block filter %}
-
-{% endblock %}
-
-{% block content %}
-
-
-
Something went wrong.
-
- {{ error or "Unexpected error while creating the hosted checkout session." }}
-
- {% if order %}
-
- Order ID: #{{ order.id }}
-
- {% endif %}
-
-
-
-
-{% endblock %}
diff --git a/orders/templates/_types/cart/checkout_return.html b/orders/templates/_types/cart/checkout_return.html
deleted file mode 100644
index b08a09d..0000000
--- a/orders/templates/_types/cart/checkout_return.html
+++ /dev/null
@@ -1,68 +0,0 @@
-{% extends '_types/root/index.html' %}
-
-{% block filter %}
-
-{% endblock %}
-
-{% block aside %}
- {# no aside content for now #}
-{% endblock %}
-
-{% block content %}
-
- {% if order %}
-
- {% include '_types/order/_summary.html' %}
-
- {% else %}
-
- We couldn’t find that order. If you reached this page from an old link, please start a new order.
-
- {% endif %}
- {% include '_types/order/_items.html' %}
- {% include '_types/order/_calendar_items.html' %}
- {% include '_types/order/_ticket_items.html' %}
-
- {% if order.status == 'failed' and order %}
-
-
Your payment was not completed.
-
- You can go back to your cart and try checkout again. If the problem persists,
- please contact us and mention order #{{ order.id }} .
-
-
- {% elif order.status == 'paid' %}
-
-
All done!
-
We’ll start processing your order shortly.
-
- {% endif %}
-
-
-{% endblock %}
diff --git a/orders/templates/_types/order/_calendar_items.html b/orders/templates/_types/order/_calendar_items.html
deleted file mode 100644
index 019f048..0000000
--- a/orders/templates/_types/order/_calendar_items.html
+++ /dev/null
@@ -1,43 +0,0 @@
-{# --- NEW: calendar bookings in this order --- #}
- {% if order and calendar_entries %}
-
-
- Calendar bookings in this order
-
-
-
-
- {% endif %}
\ No newline at end of file
diff --git a/orders/templates/_types/order/_items.html b/orders/templates/_types/order/_items.html
deleted file mode 100644
index 92d674d..0000000
--- a/orders/templates/_types/order/_items.html
+++ /dev/null
@@ -1,51 +0,0 @@
-{# Items list #}
-{% if order and order.items %}
-
-{% endif %}
\ No newline at end of file
diff --git a/orders/templates/_types/order/_main_panel.html b/orders/templates/_types/order/_main_panel.html
deleted file mode 100644
index 679b846..0000000
--- a/orders/templates/_types/order/_main_panel.html
+++ /dev/null
@@ -1,7 +0,0 @@
-
- {# Order summary card #}
- {% include '_types/order/_summary.html' %}
- {% include '_types/order/_items.html' %}
- {% include '_types/order/_calendar_items.html' %}
-
-
\ No newline at end of file
diff --git a/orders/templates/_types/order/_nav.html b/orders/templates/_types/order/_nav.html
deleted file mode 100644
index f5c504d..0000000
--- a/orders/templates/_types/order/_nav.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% from 'macros/admin_nav.html' import placeholder_nav %}
-{{ placeholder_nav() }}
diff --git a/orders/templates/_types/order/_oob_elements.html b/orders/templates/_types/order/_oob_elements.html
deleted file mode 100644
index 31d1e17..0000000
--- a/orders/templates/_types/order/_oob_elements.html
+++ /dev/null
@@ -1,30 +0,0 @@
-{% extends 'oob_elements.html' %}
-
-{# OOB elements for HTMX navigation - all elements that need updating #}
-
-{# Import shared OOB macros #}
-{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %}
-{% from '_types/root/_oob_menu.html' import mobile_menu with context %}
-
-{# Header with app title - includes cart-mini, navigation, and market-specific header #}
-
-{% block oobs %}
-
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('orders-header-child', 'order-header-child', '_types/order/header/_header.html')}}
-
- {% from '_types/order/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-
-{% block mobile_menu %}
- {% include '_types/order/_nav.html' %}
-{% endblock %}
-
-
-{% block content %}
- {% include "_types/order/_main_panel.html" %}
-{% endblock %}
-
-
diff --git a/orders/templates/_types/order/_summary.html b/orders/templates/_types/order/_summary.html
deleted file mode 100644
index ffe560b..0000000
--- a/orders/templates/_types/order/_summary.html
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
- Order ID:
- #{{ order.id }}
-
-
-
- Created:
- {% if order.created_at %}
- {{ order.created_at.strftime('%-d %b %Y, %H:%M') }}
- {% else %}
- —
- {% endif %}
-
-
-
- Description:
- {{ order.description or '–' }}
-
-
-
- Status:
-
- {{ order.status or 'pending' }}
-
-
-
-
- Currency:
- {{ order.currency or 'GBP' }}
-
-
-
- Total:
- {% if order.total_amount %}
- {{ order.currency or 'GBP' }} {{ '%.2f'|format(order.total_amount) }}
- {% else %}
- –
- {% endif %}
-
-
-
-
-
\ No newline at end of file
diff --git a/orders/templates/_types/order/_ticket_items.html b/orders/templates/_types/order/_ticket_items.html
deleted file mode 100644
index ef06c0b..0000000
--- a/orders/templates/_types/order/_ticket_items.html
+++ /dev/null
@@ -1,49 +0,0 @@
-{# --- Tickets in this order --- #}
- {% if order and order_tickets %}
-
-
- Event tickets in this order
-
-
-
-
- {% endif %}
\ No newline at end of file
diff --git a/orders/templates/_types/order/header/_header.html b/orders/templates/_types/order/header/_header.html
deleted file mode 100644
index 4d7f74b..0000000
--- a/orders/templates/_types/order/header/_header.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='order-row', oob=oob) %}
- {% call links.link(url_for('orders.order.order_detail', order_id=order.id), hx_select_search ) %}
-
-
- Order
-
-
- {{ order.id }}
-
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/order/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
\ No newline at end of file
diff --git a/orders/templates/_types/order/index.html b/orders/templates/_types/order/index.html
deleted file mode 100644
index c3d301e..0000000
--- a/orders/templates/_types/order/index.html
+++ /dev/null
@@ -1,68 +0,0 @@
-{% extends '_types/orders/index.html' %}
-
-
-{% block orders_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('order-header-child', '_types/order/header/_header.html') %}
- {% block order_header_child %}
- {% endblock %}
- {% endcall %}
-{% endblock %}
-
-{% block _main_mobile_menu %}
- {% include '_types/order/_nav.html' %}
-{% endblock %}
-
-
-
-{% block filter %}
-
-{% endblock %}
-
-{% block content %}
- {% include '_types/order/_main_panel.html' %}
-{% endblock %}
-
-{% block aside %}
-{% endblock %}
diff --git a/orders/templates/_types/orders/_main_panel.html b/orders/templates/_types/orders/_main_panel.html
deleted file mode 100644
index 01ad410..0000000
--- a/orders/templates/_types/orders/_main_panel.html
+++ /dev/null
@@ -1,26 +0,0 @@
-
- {% if not orders %}
-
- No orders yet.
-
- {% else %}
-
-
-
-
- Order
- Created
- Description
- Total
- Status
-
-
-
-
- {# rows + infinite-scroll sentinel #}
- {% include "_types/orders/_rows.html" %}
-
-
-
- {% endif %}
-
diff --git a/orders/templates/_types/orders/_nav.html b/orders/templates/_types/orders/_nav.html
deleted file mode 100644
index f5c504d..0000000
--- a/orders/templates/_types/orders/_nav.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% from 'macros/admin_nav.html' import placeholder_nav %}
-{{ placeholder_nav() }}
diff --git a/orders/templates/_types/orders/_oob_elements.html b/orders/templates/_types/orders/_oob_elements.html
deleted file mode 100644
index 741e8fa..0000000
--- a/orders/templates/_types/orders/_oob_elements.html
+++ /dev/null
@@ -1,38 +0,0 @@
-{% extends 'oob_elements.html' %}
-
-{# OOB elements for HTMX navigation - all elements that need updating #}
-
-{# Import shared OOB macros #}
-{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %}
-{% from '_types/root/_oob_menu.html' import mobile_menu with context %}
-
-{# Header with app title - includes cart-mini, navigation, and market-specific header #}
-
-{% block oobs %}
-
- {% from '_types/root/_n/macros.html' import oob_header with context %}
- {{oob_header('auth-header-child', 'orders-header-child', '_types/orders/header/_header.html')}}
-
- {% from '_types/auth/header/_header.html' import header_row with context %}
- {{ header_row(oob=True) }}
-{% endblock %}
-
-{% block aside %}
- {% from 'macros/search.html' import search_desktop %}
- {{ search_desktop(current_local_href, search, search_count, hx_select) }}
-{% endblock %}
-
-{% block filter %}
-{% include '_types/orders/_summary.html' %}
-{% endblock %}
-
-{% block mobile_menu %}
- {% include '_types/orders/_nav.html' %}
-{% endblock %}
-
-
-{% block content %}
- {% include "_types/orders/_main_panel.html" %}
-{% endblock %}
-
-
diff --git a/orders/templates/_types/orders/_rows.html b/orders/templates/_types/orders/_rows.html
deleted file mode 100644
index e2d671e..0000000
--- a/orders/templates/_types/orders/_rows.html
+++ /dev/null
@@ -1,131 +0,0 @@
-{# suma_browser/templates/_types/order/_orders_rows.html #}
-
-{# --- existing rows, but split into desktop/tablet vs mobile --- #}
-{% for order in orders %}
- {# Desktop / tablet table row #}
-
-
- #{{ order.id }}
-
-
- {% if order.created_at %}
- {{ order.created_at.strftime('%-d %b %Y, %H:%M') }}
- {% else %}
- —
- {% endif %}
-
-
- {{ order.description or '' }}
-
-
-
- {{ order.currency or 'GBP' }}
- {{ '%.2f'|format(order.total_amount or 0) }}
-
-
- {# status pill, roughly matching existing styling #}
-
- {{ order.status or 'pending' }}
-
-
-
-
- View
-
-
-
-
- {# Mobile card row #}
-
-
-
-
-
- #{{ order.id }}
-
-
-
- {{ order.status or 'pending' }}
-
-
-
-
- {{ order.created_at or '' }}
-
-
-
-
- {{ order.currency or 'GBP' }}
- {{ '%.2f'|format(order.total_amount or 0) }}
-
-
-
- View
-
-
-
-
-
-{% endfor %}
-
-{# --- sentinel / end-of-results --- #}
-{% if page < total_pages|int %}
-
-
- {# Mobile sentinel content #}
-
- {% include "sentinel/mobile_content.html" %}
-
-
- {# Desktop sentinel content #}
-
- {% include "sentinel/desktop_content.html" %}
-
-
-
-{% else %}
-
-
- End of results
-
-
-{% endif %}
diff --git a/orders/templates/_types/orders/_summary.html b/orders/templates/_types/orders/_summary.html
deleted file mode 100644
index f812413..0000000
--- a/orders/templates/_types/orders/_summary.html
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
- Recent orders placed via the checkout.
-
-
-
- {% from 'macros/search.html' import search_mobile %}
- {{ search_mobile(current_local_href, search, search_count, hx_select) }}
-
-
\ No newline at end of file
diff --git a/orders/templates/_types/orders/header/_header.html b/orders/templates/_types/orders/header/_header.html
deleted file mode 100644
index 32c1659..0000000
--- a/orders/templates/_types/orders/header/_header.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{% import 'macros/links.html' as links %}
-{% macro header_row(oob=False) %}
- {% call links.menu_row(id='orders-row', oob=oob) %}
- {% call links.link(url_for('orders.list_orders'), hx_select_search, ) %}
-
-
- Orders
-
- {% endcall %}
- {% call links.desktop_nav() %}
- {% include '_types/orders/_nav.html' %}
- {% endcall %}
- {% endcall %}
-{% endmacro %}
\ No newline at end of file
diff --git a/orders/templates/_types/orders/index.html b/orders/templates/_types/orders/index.html
deleted file mode 100644
index 7ee80a0..0000000
--- a/orders/templates/_types/orders/index.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{% extends '_types/auth/index.html' %}
-
-
-{% block auth_header_child %}
- {% from '_types/root/_n/macros.html' import index_row with context %}
- {% call index_row('orders-header-child', '_types/orders/header/_header.html') %}
- {% block orders_header_child %}
- {% endblock %}
- {% endcall %}
-
-{% endblock %}
-
-{% block _main_mobile_menu %}
- {% include '_types/orders/_nav.html' %}
-{% endblock %}
-
-{% block aside %}
- {% from 'macros/search.html' import search_desktop %}
- {{ search_desktop(current_local_href, search, search_count, hx_select) }}
-{% endblock %}
-
-
-{% block filter %}
- {% include '_types/orders/_summary.html' %}
-{% endblock %}
-
-{% block content %}
-{% include '_types/orders/_main_panel.html' %}
-{% endblock %}
diff --git a/shared/browser/templates/macros/cart_icon.html b/shared/browser/templates/macros/cart_icon.html
deleted file mode 100644
index 9fcac0a..0000000
--- a/shared/browser/templates/macros/cart_icon.html
+++ /dev/null
@@ -1,31 +0,0 @@
-{# Cart icon/badge — shows logo when empty, cart icon with count when items present #}
-
-{% macro cart_icon(count=0, oob=False) %}
-
-{% endmacro %}