Refactor routes.py

This commit is contained in:
Peter Stockings
2024-12-29 22:51:01 +11:00
parent 1cd0b15201
commit 049e845d5b
13 changed files with 532 additions and 500 deletions

View File

@@ -12,7 +12,7 @@
</a>
<!-- Delete Button (Top-Right) -->
<a href="{{ url_for('main.confirm_delete', reading_id=reading.id) }}"
<a href="{{ url_for('reading.confirm_delete', reading_id=reading.id) }}"
class="absolute top-4 right-4 text-red-500 hover:text-red-700">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"
class="size-6">
@@ -23,7 +23,7 @@
</a>
<h1 class="text-2xl font-bold mb-4 text-center">Edit Reading</h1>
<form method="POST" action="{{ url_for('main.edit_reading', reading_id=reading.id) }}" novalidate
<form method="POST" action="{{ url_for('reading.edit_reading', reading_id=reading.id) }}" novalidate
class="bg-white p-8 rounded-lg shadow-md">
{{ form.hidden_tag() }}