Add back button to each page

This commit is contained in:
Peter Stockings
2024-12-26 17:46:45 +11:00
parent 2a0d997927
commit 7e58114cc4
7 changed files with 171 additions and 81 deletions

View File

@@ -1,8 +1,17 @@
{% extends "_layout.html" %}
{% block content %}
<div class="max-w-4xl mx-auto p-4">
<h1 class="text-2xl font-bold mb-4">Import/Export Data</h1>
<div class="max-w-4xl mx-auto p-4 relative">
<!-- Cancel Button (Top-Left) -->
<a href="{{ request.referrer if request.referrer else url_for('main.dashboard') }}"
class="absolute top-5 left-4 flex items-center text-gray-600 hover:text-gray-800">
<svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4 mr-1" fill="none" viewBox="0 0 24 24"
stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M15 19l-7-7 7-7" />
</svg>
<span>Back</span>
</a>
<h1 class="text-2xl font-bold mb-4 text-center">Import/Export Data</h1>
<!-- Import Data Section -->
<div class="bg-white p-6 rounded-lg shadow-md mb-6">