fix: replace stale blog.post.calendars.* endpoint refs with calendars.*

Calendar blueprints moved to standalone events service — blog app no
longer registers these routes. Replace all url_for/has_access references
from blog.post.calendars.X to calendars.X across 38 shared calendar
templates. Also replace blog.post.post_detail cross-links with coop_url()
for cross-service navigation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-10 13:02:11 +00:00
parent 125c9bd64a
commit 193014a4d8
39 changed files with 66 additions and 66 deletions

View File

@@ -6,12 +6,12 @@
{# Outer left: -1 year #} {# Outer left: -1 year #}
<a <a
class="{{styles.pill}} text-xl" class="{{styles.pill}} text-xl"
href="{{ url_for('blog.post.calendars.calendar.get', href="{{ url_for('calendars.calendar.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=prev_year, year=prev_year,
month=month) }}" month=month) }}"
hx-get="{{ url_for('blog.post.calendars.calendar.get', hx-get="{{ url_for('calendars.calendar.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=prev_year, year=prev_year,
@@ -27,12 +27,12 @@
{# Inner left: -1 month #} {# Inner left: -1 month #}
<a <a
class="{{styles.pill}} text-xl" class="{{styles.pill}} text-xl"
href="{{ url_for('blog.post.calendars.calendar.get', href="{{ url_for('calendars.calendar.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=prev_month_year, year=prev_month_year,
month=prev_month) }}" month=prev_month) }}"
hx-get="{{ url_for('blog.post.calendars.calendar.get', hx-get="{{ url_for('calendars.calendar.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=prev_month_year, year=prev_month_year,
@@ -52,12 +52,12 @@
{# Inner right: +1 month #} {# Inner right: +1 month #}
<a <a
class="{{styles.pill}} text-xl" class="{{styles.pill}} text-xl"
href="{{ url_for('blog.post.calendars.calendar.get', href="{{ url_for('calendars.calendar.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=next_month_year, year=next_month_year,
month=next_month) }}" month=next_month) }}"
hx-get="{{ url_for('blog.post.calendars.calendar.get', hx-get="{{ url_for('calendars.calendar.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=next_month_year, year=next_month_year,
@@ -73,12 +73,12 @@
{# Outer right: +1 year #} {# Outer right: +1 year #}
<a <a
class="{{styles.pill}} text-xl" class="{{styles.pill}} text-xl"
href="{{ url_for('blog.post.calendars.calendar.get', href="{{ url_for('calendars.calendar.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=next_year, year=next_year,
month=month) }}" month=month) }}"
hx-get="{{ url_for('blog.post.calendars.calendar.get', hx-get="{{ url_for('calendars.calendar.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=next_year, year=next_year,
@@ -118,13 +118,13 @@
{# Clickable day number: goes to day detail view #} {# Clickable day number: goes to day detail view #}
<a <a
class="{{styles.pill}}" class="{{styles.pill}}"
href="{{ url_for('blog.post.calendars.calendar.day.show_day', href="{{ url_for('calendars.calendar.day.show_day',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=day.date.year, year=day.date.year,
month=day.date.month, month=day.date.month,
day=day.date.day) }}" day=day.date.day) }}"
hx-get="{{ url_for('blog.post.calendars.calendar.day.show_day', hx-get="{{ url_for('calendars.calendar.day.show_day',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=day.date.year, year=day.date.year,

View File

@@ -13,7 +13,7 @@
type="button" type="button"
class="mt-2 text-xs underline" class="mt-2 text-xs underline"
hx-get="{{ url_for( hx-get="{{ url_for(
'blog.post.calendars.calendar.admin.calendar_description_edit', 'calendars.calendar.admin.calendar_description_edit',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
) }}" ) }}"

View File

@@ -1,7 +1,7 @@
<div id="calendar-description"> <div id="calendar-description">
<form <form
hx-post="{{ url_for( hx-post="{{ url_for(
'blog.post.calendars.calendar.admin.calendar_description_save', 'calendars.calendar.admin.calendar_description_save',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
) }}" ) }}"
@@ -29,7 +29,7 @@
type="button" type="button"
class="px-3 py-1 rounded border" class="px-3 py-1 rounded border"
hx-get="{{ url_for( hx-get="{{ url_for(
'blog.post.calendars.calendar.admin.calendar_description_view', 'calendars.calendar.admin.calendar_description_view',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
) }}" ) }}"

View File

@@ -14,7 +14,7 @@
<form <form
id="calendar-form" id="calendar-form"
method="post" method="post"
hx-put="{{ url_for('blog.post.calendars.calendar.put', slug=post.slug, calendar_slug=calendar.slug ) }}" hx-put="{{ url_for('calendars.calendar.put', slug=post.slug, calendar_slug=calendar.slug ) }}"
hx-target="#main-panel" hx-target="#main-panel"
hx-select="{{ hx_select_search }}" hx-select="{{ hx_select_search }}"
hx-on::before-request="document.querySelector('#cal-put-errors').textContent='';" hx-on::before-request="document.querySelector('#cal-put-errors').textContent='';"

View File

@@ -2,7 +2,7 @@
{% macro header_row(oob=False) %} {% macro header_row(oob=False) %}
{% call links.menu_row(id='calendar-admin-row', oob=oob) %} {% call links.menu_row(id='calendar-admin-row', oob=oob) %}
{% call links.link( {% call links.link(
url_for('blog.post.calendars.calendar.admin.admin', slug=post.slug, calendar_slug=calendar.slug), url_for('calendars.calendar.admin.admin', slug=post.slug, calendar_slug=calendar.slug),
hx_select_search hx_select_search
) %} ) %}
{{ links.admin() }} {{ links.admin() }}

View File

@@ -3,7 +3,7 @@
<div class="mt-6 border rounded-lg p-4"> <div class="mt-6 border rounded-lg p-4">
<div class="flex items-center justify-between gap-3"> <div class="flex items-center justify-between gap-3">
{% set calendar_href = url_for('blog.post.calendars.calendar.get', slug=post.slug, calendar_slug=cal.slug)|host%} {% set calendar_href = url_for('calendars.calendar.get', slug=post.slug, calendar_slug=cal.slug)|host%}
<a <a
class="flex items-baseline gap-3" class="flex items-baseline gap-3"
href="{{ calendar_href }}" href="{{ calendar_href }}"
@@ -27,7 +27,7 @@
data-confirm-confirm-text="Yes, delete it" data-confirm-confirm-text="Yes, delete it"
data-confirm-cancel-text="Cancel" data-confirm-cancel-text="Cancel"
data-confirm-event="confirmed" data-confirm-event="confirmed"
hx-delete="{{ url_for('blog.post.calendars.calendar.delete', slug=post.slug, calendar_slug=cal.slug) }}" hx-delete="{{ url_for('calendars.calendar.delete', slug=post.slug, calendar_slug=cal.slug) }}"
hx-trigger="confirmed" hx-trigger="confirmed"
hx-target="#calendars-list" hx-target="#calendars-list"
hx-select="#calendars-list" hx-select="#calendars-list"

View File

@@ -1,11 +1,11 @@
<section class="p-4"> <section class="p-4">
{% if has_access('blog.post.calendars.create_calendar') %} {% if has_access('calendars.create_calendar') %}
<!-- error container under the inputs --> <!-- error container under the inputs -->
<div id="cal-create-errors" class="mt-2 text-sm text-red-600"></div> <div id="cal-create-errors" class="mt-2 text-sm text-red-600"></div>
<form <form
class="mt-4 flex gap-2 items-end" class="mt-4 flex gap-2 items-end"
hx-post="{{ url_for('blog.post.calendars.create_calendar', slug=post.slug) }}" hx-post="{{ url_for('calendars.create_calendar', slug=post.slug) }}"
hx-target="#calendars-list" hx-target="#calendars-list"
hx-select="#calendars-list" hx-select="#calendars-list"
hx-swap="outerHTML" hx-swap="outerHTML"

View File

@@ -3,7 +3,7 @@
<form <form
class="mt-4 grid grid-cols-1 md:grid-cols-4 gap-2" class="mt-4 grid grid-cols-1 md:grid-cols-4 gap-2"
hx-post="{{ url_for( hx-post="{{ url_for(
'blog.post.calendars.calendar.day.calendar_entries.add_entry', 'calendars.calendar.day.calendar_entries.add_entry',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, day=day,
@@ -124,7 +124,7 @@
<button <button
type="button" type="button"
class="{{styles.cancel_button}}" class="{{styles.cancel_button}}"
hx-get="{{ url_for('blog.post.calendars.calendar.day.calendar_entries.add_button', hx-get="{{ url_for('calendars.calendar.day.calendar_entries.add_button',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, day=day,

View File

@@ -3,7 +3,7 @@
type="button" type="button"
class="{{styles.pre_action_button}}" class="{{styles.pre_action_button}}"
hx-get="{{ url_for( hx-get="{{ url_for(
'blog.post.calendars.calendar.day.calendar_entries.add_form', 'calendars.calendar.day.calendar_entries.add_form',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, day=day,

View File

@@ -6,7 +6,7 @@
{% from 'macros/scrolling_menu.html' import scrolling_menu with context %} {% from 'macros/scrolling_menu.html' import scrolling_menu with context %}
{% call(entry) scrolling_menu('day-entries-container', confirmed_entries) %} {% call(entry) scrolling_menu('day-entries-container', confirmed_entries) %}
<a <a
href="{{ url_for('blog.post.calendars.calendar.day.calendar_entries.calendar_entry.get', href="{{ url_for('calendars.calendar.day.calendar_entries.calendar_entry.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=day_date.year, year=day_date.year,
@@ -30,7 +30,7 @@
{% from 'macros/admin_nav.html' import admin_nav_item %} {% from 'macros/admin_nav.html' import admin_nav_item %}
{{admin_nav_item( {{admin_nav_item(
url_for( url_for(
'blog.post.calendars.calendar.day.admin.admin', 'calendars.calendar.day.admin.admin',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=day_date.year, year=day_date.year,

View File

@@ -4,7 +4,7 @@
<div class="font-medium"> <div class="font-medium">
{% call links.link( {% call links.link(
url_for( url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.get', 'calendars.calendar.day.calendar_entries.calendar_entry.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, day=day,
@@ -24,7 +24,7 @@
<div class="text-xs font-medium"> <div class="text-xs font-medium">
{% call links.link( {% call links.link(
url_for( url_for(
'blog.post.calendars.calendar.slots.slot.get', 'calendars.calendar.slots.slot.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
slot_id=entry.slot.id slot_id=entry.slot.id

View File

@@ -9,7 +9,7 @@
{% from 'macros/scrolling_menu.html' import scrolling_menu with context %} {% from 'macros/scrolling_menu.html' import scrolling_menu with context %}
{% call(entry) scrolling_menu('day-entries-container', confirmed_entries) %} {% call(entry) scrolling_menu('day-entries-container', confirmed_entries) %}
<a <a
href="{{ url_for('blog.post.calendars.calendar.day.calendar_entries.calendar_entry.get', href="{{ url_for('calendars.calendar.day.calendar_entries.calendar_entry.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=day_date.year, year=day_date.year,

View File

@@ -3,7 +3,7 @@
{% call links.menu_row(id='day-admin-row', oob=oob) %} {% call links.menu_row(id='day-admin-row', oob=oob) %}
{% call links.link( {% call links.link(
url_for( url_for(
'blog.post.calendars.calendar.day.admin.admin', 'calendars.calendar.day.admin.admin',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=day_date.year, year=day_date.year,

View File

@@ -3,7 +3,7 @@
{% call links.menu_row(id='day-row', oob=oob) %} {% call links.menu_row(id='day-row', oob=oob) %}
{% call links.link( {% call links.link(
url_for( url_for(
'blog.post.calendars.calendar.day.show_day', 'calendars.calendar.day.show_day',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=day_date.year, year=day_date.year,

View File

@@ -7,7 +7,7 @@
<form <form
class="space-y-3 mt-4" class="space-y-3 mt-4"
hx-put="{{ url_for( hx-put="{{ url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.put', 'calendars.calendar.day.calendar_entries.calendar_entry.put',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, month=month, year=year, day=day, month=month, year=year,
@@ -163,7 +163,7 @@
type="button" type="button"
class="{{ styles.cancel_button }}" class="{{ styles.cancel_button }}"
hx-get="{{ url_for( hx-get="{{ url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.get', 'calendars.calendar.day.calendar_entries.calendar_entry.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, month=month, year=year, day=day, month=month, year=year,

View File

@@ -108,7 +108,7 @@
type="button" type="button"
class="{{styles.pre_action_button}}" class="{{styles.pre_action_button}}"
hx-get="{{ url_for( hx-get="{{ url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.get_edit', 'calendars.calendar.day.calendar_entries.calendar_entry.get_edit',
entry_id=entry.id, entry_id=entry.id,
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,

View File

@@ -6,7 +6,7 @@
{% from 'macros/scrolling_menu.html' import scrolling_menu with context %} {% from 'macros/scrolling_menu.html' import scrolling_menu with context %}
{% call(entry_post) scrolling_menu('entry-posts-container', entry_posts) %} {% call(entry_post) scrolling_menu('entry-posts-container', entry_posts) %}
<a <a
href="{{ url_for('blog.post.post_detail', slug=entry_post.slug) }}" href="{{ coop_url('/' + entry_post.slug + '/') }}"
class="flex items-center gap-2 px-3 py-2 hover:bg-stone-100 rounded transition text-sm border sm:whitespace-nowrap sm:flex-shrink-0"> class="flex items-center gap-2 px-3 py-2 hover:bg-stone-100 rounded transition text-sm border sm:whitespace-nowrap sm:flex-shrink-0">
{% if entry_post.feature_image %} {% if entry_post.feature_image %}
<img src="{{ entry_post.feature_image }}" <img src="{{ entry_post.feature_image }}"
@@ -28,7 +28,7 @@
{% from 'macros/admin_nav.html' import admin_nav_item %} {% from 'macros/admin_nav.html' import admin_nav_item %}
{{admin_nav_item( {{admin_nav_item(
url_for( url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.admin.admin', 'calendars.calendar.day.calendar_entries.calendar_entry.admin.admin',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, day=day,

View File

@@ -2,7 +2,7 @@
{% if entry.state == 'provisional' %} {% if entry.state == 'provisional' %}
<form <form
hx-post="{{ url_for( hx-post="{{ url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.confirm_entry', 'calendars.calendar.day.calendar_entries.calendar_entry.confirm_entry',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, day=day,
@@ -32,7 +32,7 @@
</form> </form>
<form <form
hx-post="{{ url_for( hx-post="{{ url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.decline_entry', 'calendars.calendar.day.calendar_entries.calendar_entry.decline_entry',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, day=day,
@@ -64,7 +64,7 @@
{% if entry.state == 'confirmed' %} {% if entry.state == 'confirmed' %}
<form <form
hx-post="{{ url_for( hx-post="{{ url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.provisional_entry', 'calendars.calendar.day.calendar_entries.calendar_entry.provisional_entry',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, day=day,

View File

@@ -1,7 +1,7 @@
{% for search_post in search_posts %} {% for search_post in search_posts %}
<form <form
hx-post="{{ url_for( hx-post="{{ url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.add_post', 'calendars.calendar.day.calendar_entries.calendar_entry.add_post',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, day=day,
@@ -42,7 +42,7 @@
<div <div
id="post-search-sentinel-{{ page }}" id="post-search-sentinel-{{ page }}"
hx-get="{{ url_for( hx-get="{{ url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.search_posts', 'calendars.calendar.day.calendar_entries.calendar_entry.search_posts',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, day=day,

View File

@@ -23,7 +23,7 @@
data-confirm-cancel-text="Cancel" data-confirm-cancel-text="Cancel"
data-confirm-event="confirmed" data-confirm-event="confirmed"
hx-delete="{{ url_for( hx-delete="{{ url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.remove_post', 'calendars.calendar.day.calendar_entries.calendar_entry.remove_post',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, day=day,
@@ -56,7 +56,7 @@
placeholder="Search posts..." placeholder="Search posts..."
class="w-full px-3 py-2 border rounded text-sm" class="w-full px-3 py-2 border rounded text-sm"
hx-get="{{ url_for( hx-get="{{ url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.search_posts', 'calendars.calendar.day.calendar_entries.calendar_entry.search_posts',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, day=day,

View File

@@ -44,7 +44,7 @@
id="ticket-form-{{entry.id}}" id="ticket-form-{{entry.id}}"
class="{% if entry.ticket_price is not none %}hidden{% endif %} space-y-3 mt-2 p-3 border rounded bg-stone-50" class="{% if entry.ticket_price is not none %}hidden{% endif %} space-y-3 mt-2 p-3 border rounded bg-stone-50"
hx-post="{{ url_for( hx-post="{{ url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.update_tickets', 'calendars.calendar.day.calendar_entries.calendar_entry.update_tickets',
entry_id=entry.id, entry_id=entry.id,
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,

View File

@@ -1,7 +1,7 @@
{% import 'macros/links.html' as links %} {% import 'macros/links.html' as links %}
{% call links.link( {% call links.link(
url_for( url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.get', 'calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
entry_id=entry.id, entry_id=entry.id,

View File

@@ -9,7 +9,7 @@
{% from 'macros/scrolling_menu.html' import scrolling_menu with context %} {% from 'macros/scrolling_menu.html' import scrolling_menu with context %}
{% call(entry_post) scrolling_menu('entry-posts-container', entry_posts) %} {% call(entry_post) scrolling_menu('entry-posts-container', entry_posts) %}
<a <a
href="{{ url_for('blog.post.post_detail', slug=entry_post.slug) }}" href="{{ coop_url('/' + entry_post.slug + '/') }}"
class="{{styles.nav_button}}" class="{{styles.nav_button}}"
> >
{% if entry_post.feature_image %} {% if entry_post.feature_image %}

View File

@@ -3,7 +3,7 @@
{% call links.menu_row(id='entry-admin-row', oob=oob) %} {% call links.menu_row(id='entry-admin-row', oob=oob) %}
{% call links.link( {% call links.link(
url_for( url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.admin.admin', 'calendars.calendar.day.calendar_entries.calendar_entry.admin.admin',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, day=day,

View File

@@ -3,7 +3,7 @@
{% call links.menu_row(id='entry-row', oob=oob) %} {% call links.menu_row(id='entry-row', oob=oob) %}
{% call links.link( {% call links.link(
url_for( url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.get', 'calendars.calendar.day.calendar_entries.calendar_entry.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
day=day, day=day,

View File

@@ -3,7 +3,7 @@
<div id="slot-errors" class="mt-2 text-sm text-red-600"></div> <div id="slot-errors" class="mt-2 text-sm text-red-600"></div>
<form <form
class="space-y-3 mt-4" class="space-y-3 mt-4"
hx-put="{{ url_for('blog.post.calendars.calendar.slots.slot.put', hx-put="{{ url_for('calendars.calendar.slots.slot.put',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
slot_id=slot.id) }}" slot_id=slot.id) }}"
@@ -154,7 +154,7 @@
<button <button
type="button" type="button"
class="{{styles.cancel_button}}" class="{{styles.cancel_button}}"
hx-get="{{ url_for('blog.post.calendars.calendar.slots.slot.get_view', hx-get="{{ url_for('calendars.calendar.slots.slot.get_view',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
slot_id=slot.id) }}" slot_id=slot.id) }}"

View File

@@ -54,7 +54,7 @@
type="button" type="button"
class="{{styles.pre_action_button}}" class="{{styles.pre_action_button}}"
hx-get="{{ url_for( hx-get="{{ url_for(
'blog.post.calendars.calendar.slots.slot.get_edit', 'calendars.calendar.slots.slot.get_edit',
slot_id=slot.id, slot_id=slot.id,
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,

View File

@@ -2,7 +2,7 @@
{% macro header_row(oob=False) %} {% macro header_row(oob=False) %}
{% call links.menu_row(id='slot-row', oob=oob) %} {% call links.menu_row(id='slot-row', oob=oob) %}
{% call links.link( {% call links.link(
url_for('blog.post.calendars.calendar.slots.slot.get', slug=post.slug, calendar_slug=calendar.slug, slot_id=slot.id), url_for('calendars.calendar.slots.slot.get', slug=post.slug, calendar_slug=calendar.slug, slot_id=slot.id),
hx_select_search, hx_select_search,
) %} ) %}
<div class="flex flex-col md:flex-row md:gap-2 items-center"> <div class="flex flex-col md:flex-row md:gap-2 items-center">

View File

@@ -1,5 +1,5 @@
<form <form
hx-post="{{ url_for('blog.post.calendars.calendar.slots.post', hx-post="{{ url_for('calendars.calendar.slots.post',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug) }}" calendar_slug=calendar.slug) }}"
hx-target="#slots-table" hx-target="#slots-table"
@@ -99,7 +99,7 @@
<button <button
type="button" type="button"
class="{{styles.cancel_button}}" class="{{styles.cancel_button}}"
hx-get="{{ url_for('blog.post.calendars.calendar.slots.add_button', hx-get="{{ url_for('calendars.calendar.slots.add_button',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug) }}" calendar_slug=calendar.slug) }}"
hx-target="#slot-add-container" hx-target="#slot-add-container"

View File

@@ -2,7 +2,7 @@
<button <button
type="button" type="button"
class="{{styles.pre_action_button}}" class="{{styles.pre_action_button}}"
hx-get="{{ url_for('blog.post.calendars.calendar.slots.add_form', hx-get="{{ url_for('calendars.calendar.slots.add_form',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug) }}" calendar_slug=calendar.slug) }}"
hx-target="#slot-add-container" hx-target="#slot-add-container"

View File

@@ -3,7 +3,7 @@
<td class="p-2 align-top w-1/6"> <td class="p-2 align-top w-1/6">
<div class="font-medium"> <div class="font-medium">
{% call links.link( {% call links.link(
url_for('blog.post.calendars.calendar.slots.slot.get', slug=post.slug, calendar_slug=calendar.slug, slot_id=s.id), url_for('calendars.calendar.slots.slot.get', slug=post.slug, calendar_slug=calendar.slug, slot_id=s.id),
hx_select_search, hx_select_search,
aclass=styles.pill aclass=styles.pill
) %} ) %}
@@ -46,7 +46,7 @@
data-confirm-confirm-text="Yes, delete it" data-confirm-confirm-text="Yes, delete it"
data-confirm-cancel-text="Cancel" data-confirm-cancel-text="Cancel"
data-confirm-event="confirmed" data-confirm-event="confirmed"
hx-delete="{{ url_for('blog.post.calendars.calendar.slots.slot.slot_delete', hx-delete="{{ url_for('calendars.calendar.slots.slot.slot_delete',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
slot_id=s.id) }}" slot_id=s.id) }}"

View File

@@ -2,7 +2,7 @@
{% macro header_row(oob=False) %} {% macro header_row(oob=False) %}
{% call links.menu_row(id='slots-row', oob=oob) %} {% call links.menu_row(id='slots-row', oob=oob) %}
{% call links.link( {% call links.link(
url_for('blog.post.calendars.calendar.slots.get', slug=post.slug, calendar_slug= calendar.slug), url_for('calendars.calendar.slots.get', slug=post.slug, calendar_slug= calendar.slug),
hx_select_search, hx_select_search,
) %} ) %}
<i class="fa fa-clock"></i> <i class="fa fa-clock"></i>

View File

@@ -3,7 +3,7 @@
<div id="ticket-errors" class="mt-2 text-sm text-red-600"></div> <div id="ticket-errors" class="mt-2 text-sm text-red-600"></div>
<form <form
class="space-y-3 mt-4" class="space-y-3 mt-4"
hx-put="{{ url_for('blog.post.calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.put', hx-put="{{ url_for('calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.put',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=year, year=year,
@@ -71,7 +71,7 @@
<button <button
type="button" type="button"
class="{{styles.cancel_button}}" class="{{styles.cancel_button}}"
hx-get="{{ url_for('blog.post.calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.get_view', hx-get="{{ url_for('calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.get_view',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
entry_id=entry.id, entry_id=entry.id,

View File

@@ -33,7 +33,7 @@
type="button" type="button"
class="{{styles.pre_action_button}}" class="{{styles.pre_action_button}}"
hx-get="{{ url_for( hx-get="{{ url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.get_edit', 'calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.get_edit',
ticket_type_id=ticket_type.id, ticket_type_id=ticket_type.id,
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,

View File

@@ -3,7 +3,7 @@
{% call links.menu_row(id='ticket_type-row', oob=oob) %} {% call links.menu_row(id='ticket_type-row', oob=oob) %}
{% call links.link( {% call links.link(
url_for( url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.get', 'calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=year, year=year,

View File

@@ -1,5 +1,5 @@
<form <form
hx-post="{{ url_for('blog.post.calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.post', hx-post="{{ url_for('calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.post',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
entry_id=entry.id, entry_id=entry.id,
@@ -56,7 +56,7 @@
<button <button
type="button" type="button"
class="{{styles.cancel_button}}" class="{{styles.cancel_button}}"
hx-get="{{ url_for('blog.post.calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.add_button', hx-get="{{ url_for('calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.add_button',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
entry_id=entry.id, entry_id=entry.id,

View File

@@ -1,6 +1,6 @@
<button <button
class="{{styles.action_button}}" class="{{styles.action_button}}"
hx-get="{{ url_for('blog.post.calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.add_form', hx-get="{{ url_for('calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.add_form',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
entry_id=entry.id, entry_id=entry.id,

View File

@@ -4,7 +4,7 @@
<div class="font-medium"> <div class="font-medium">
{% call links.link( {% call links.link(
url_for( url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.get', 'calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=year, year=year,
@@ -36,7 +36,7 @@
data-confirm-confirm-text="Yes, delete it" data-confirm-confirm-text="Yes, delete it"
data-confirm-cancel-text="Cancel" data-confirm-cancel-text="Cancel"
data-confirm-event="confirmed" data-confirm-event="confirmed"
hx-delete="{{ url_for('blog.post.calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.delete', hx-delete="{{ url_for('calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.delete',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
year=year, year=year,

View File

@@ -2,7 +2,7 @@
{% macro header_row(oob=False) %} {% macro header_row(oob=False) %}
{% call links.menu_row(id='ticket_types-row', oob=oob) %} {% call links.menu_row(id='ticket_types-row', oob=oob) %}
{% call links.link(url_for( {% call links.link(url_for(
'blog.post.calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.get', 'calendars.calendar.day.calendar_entries.calendar_entry.ticket_types.get',
slug=post.slug, slug=post.slug,
calendar_slug=calendar.slug, calendar_slug=calendar.slug,
entry_id=entry.id, entry_id=entry.id,