Add page to confirm deletion and add cancel button on edit page

This commit is contained in:
Peter Stockings
2024-12-24 23:24:15 +11:00
parent c160f9d214
commit f3c778048f
4 changed files with 91 additions and 19 deletions

View File

@@ -45,9 +45,17 @@
{% endfor %}
</div>
<!-- Submit Button -->
<div>
<button type="submit" class="w-full bg-blue-600 text-white py-3 rounded-lg font-semibold hover:bg-blue-700">
<!-- Buttons -->
<div class="flex justify-between items-center mt-6">
<!-- Cancel Button -->
<a href="{{ url_for('main.dashboard') }}" class="px-6 py-3 bg-gray-300 text-gray-700 rounded-lg shadow-sm
hover:bg-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:border-gray-400">
Cancel
</a>
<!-- Submit Button -->
<button type="submit"
class="px-6 py-3 bg-blue-600 text-white rounded-lg shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
Save Changes
</button>
</div>