mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-11-23 08:54:22 +01:00
The export and restore forms now sit on the Export and Restore page instead of an offcanvas. Exporting shows a progress line and a toast when the download starts; restoring splits ZIP and CSV uploads into tabs and shows errors in the form. - An empty export warns instead of downloading the message as a file - Export errors show a message instead of a stuck spinner - The download link is kept long enough for Safari to save the file - Non-superusers get a 403 instead of a redirect loop with the login - The asset classes CSV can be uploaded on its own - Drop the export form's unknown investment_classes layout field
25 lines
945 B
HTML
25 lines
945 B
HTML
{% extends "layouts/base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}{% translate 'Export and Restore' %}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<div class="text-3xl font-bold font-mono w-full mb-3">{% translate 'Export and Restore' %}</div>
|
|
<div class="grid gap-4 lg:grid-cols-2 items-start">
|
|
<div class="card bg-base-100 shadow-xl">
|
|
<div class="card-body gap-4 p-6 sm:p-8">
|
|
<h2 class="card-title"><i class="fa-solid fa-download"></i>{% translate 'Export' %}</h2>
|
|
{% include "export_app/fragments/export.html" %}
|
|
</div>
|
|
</div>
|
|
<div class="card bg-base-100 shadow-xl">
|
|
<div class="card-body gap-4 p-6 sm:p-8">
|
|
<h2 class="card-title"><i class="fa-solid fa-upload"></i>{% translate 'Restore' %}</h2>
|
|
{% include "export_app/fragments/restore.html" with form=restore_form %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|