Private
Public Access
1
0

export functionality v1

This commit is contained in:
2026-03-09 19:38:07 +01:00
parent 3ce1d88185
commit 2079f7ac5f
8 changed files with 168 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
{% extends "newbase.html" %}
{% load static %}
{% load rowerfilters %}
{% block title %}Export Workouts{% endblock %}
{% block main %}
<div class="container mt-5">
<div class="row">
<div class="col-md-8 offset-md-2">
<h2>Export All Your Workouts</h2>
<p>Select a date range to export your workouts as a ZIP file containing individual CSV files.</p>
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
<table>
{{ form.as_table }}
</table>
<input name="daterange" type="submit" value="Export Workouts">
</form>
</div>
</div>
</div>
{% endblock %}

View File

@@ -7,6 +7,10 @@
{% block main %}
<h1>Import and Export Settings for {{ rower.user.first_name }} {{ rower.user.last_name }}</h1>
<p>
<a href="/rowers/workouts/alluserworkouts/">Export all workouts</a>
</p>
<form enctype="multipart/form-data" action="" method="post">
{% csrf_token %}
<ul class="main-content">

View File

@@ -0,0 +1,11 @@
{% extends "emailbase.html" %}
{% block body %}
<p>
You can download the file {{ filename }} from the following link: {{ download_url }}. The file will be deleted after downloading, so please make sure to download it as soon as possible.
</p>
<p>
Best Regards, the Rowsandall Team
</p>
{% endblock %}