mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
Merge pull request #1783 from alphagov/enable-download-link
Enable the download CSV file for notifications
This commit is contained in:
@@ -157,7 +157,8 @@ def download_notifications_csv(service_id):
|
|||||||
status=filter_args.get('status'),
|
status=filter_args.get('status'),
|
||||||
page=request.args.get('page', 1),
|
page=request.args.get('page', 1),
|
||||||
page_size=5000,
|
page_size=5000,
|
||||||
format_for_csv=True
|
format_for_csv=True,
|
||||||
|
template_type=filter_args.get('message_type')
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
mimetype='text/csv',
|
mimetype='text/csv',
|
||||||
|
|||||||
@@ -47,11 +47,11 @@
|
|||||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<!--<p class="bottom-gutter">-->
|
<p class="bottom-gutter">
|
||||||
<!--<a href="{{ download_link }}" download="download" class="heading-small">Download this report</a>-->
|
<a href="{{ download_link }}" download="download" class="heading-small">Download this report</a>
|
||||||
<!-- -->
|
 
|
||||||
<!--Data available for 7 days-->
|
Data available for 7 days
|
||||||
<!--</p>-->
|
</p>
|
||||||
{{ ajax_block(
|
{{ ajax_block(
|
||||||
partials,
|
partials,
|
||||||
url_for('.get_notifications_as_json', service_id=current_service.id, message_type=message_type, status=status, page=page),
|
url_for('.get_notifications_as_json', service_id=current_service.id, message_type=message_type, status=status, page=page),
|
||||||
|
|||||||
Reference in New Issue
Block a user