Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/enhancement/gh-4058-download-csv…
Browse files Browse the repository at this point in the history
…-confirmation' into test
  • Loading branch information
frjo committed Sep 9, 2024
2 parents a24e392 + 0dd1ae1 commit e9320cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<a class="round-block__view" href="{{round.get_absolute_url}}">{% trans 'View' %}
</a>
{% if can_export %}
<a class="round-block__view" href="{% url 'apply:submissions:list' %}{% if round.fund %}?round={{round.pk}}{% else %}?fund={{round.pk}}{% endif %}&format=csv">{% trans 'Export' %}</a>
<a class="round-block__view" href="{% url 'apply:submissions:list' %}{% if round.fund %}?round={{round.pk}}{% else %}?fund={{round.pk}}{% endif %}&format=csv" onclick="return confirm('Are you sure you want to download the submissions as a csv file? This file may contain sensitive information, so please handle it carefully.');">{% trans 'Export' %}</a>
{% endif %}
</li>
{% else %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ <h2 class="mb-2 text-xl">{{ heading }}</h2>
class="px-2 py-1.5 flex items-center transition-colors border rounded hover:bg-gray-100 shadow-sm"
aria-label="Submissions: Download as CSV"
href="{{path}}{% if '?' in path %}&{%else%}?{% endif %}export=true"
onclick="return confirm('Are you sure you want to download the submissions as a csv file? This file may contain sensitive information, so please handle it carefully.');"
role="button"
data-tippy-content="Export as CSV"
>
Expand Down
1 change: 1 addition & 0 deletions hypha/apply/funds/templates/submissions/all.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
class="px-2 py-1.5 transition-colors border rounded hover:bg-gray-100 shadow-sm"
aria-label="Submissions: Download as CSV"
href="{% modify_query "page" format="csv" %}"
onclick="return confirm('Are you sure you want to download the submissions as a csv file? This file may contain sensitive information, so please handle it carefully.');"
data-tippy-content="Export as CSV"
>
{% heroicon_mini "arrow-down-tray" %}
Expand Down

0 comments on commit e9320cb

Please sign in to comment.