export functionality v1
This commit is contained in:
24
rowers/templates/export_workouts_daterange.html
Normal file
24
rowers/templates/export_workouts_daterange.html
Normal 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 %}
|
||||
@@ -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">
|
||||
|
||||
11
rowers/templates/workouts_export_email.html
Normal file
11
rowers/templates/workouts_export_email.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user