1
0
Fork 0

Use HTTP post for csv export

Also fixes a missing translation string
This commit is contained in:
Mouse Reeve 2022-07-11 07:49:52 -07:00
parent bead43a20a
commit 42e29e40b3
5 changed files with 34 additions and 38 deletions

View file

@ -13,10 +13,13 @@
{% trans "Your export will include all the books on your shelves, books you have reviewed, and books with reading activity." %}
</p>
<p>
<a href="{% url 'prefs-export-file' %}" class="button">
<span class="icon icon-download" aria-hidden="true"></span>
<span>Download file</span>
</a>
<form name="export" method="POST" href="{% url 'prefs-export' %}">
{% csrf_token %}
<button type="submit" class="button">
<span class="icon icon-download" aria-hidden="true"></span>
<span>{% trans "Download file" %}</span>
</button>
</form>
</p>
</div>
{% endblock %}