Skip to content
Snippets Groups Projects
Commit ed5e49f5 authored by Frank Duncan's avatar Frank Duncan
Browse files

Fix error where empty reports box showed up

For applicants, if there's no report due, and they can't change any
reporting configuration, the report box is empty.  So we check and don't
show it if it would be.

Issue ots/clients/ardc/hypha-tracker#337: In applicant view, show a combined
timeline for for Submissions and Projects; same with Reports.
parent 55fe250e
No related branches found
No related tags found
1 merge request!126Fix error where empty reports box showed up
{% load i18n project_tags heroicons %}
{% user_can_update_project_reports object user as can_update_project_reports %}
{% user_can_update_report_config object user as can_update_report_config %}
{% if can_update_project_reports %}
{# Indenting is wrong here to make merges easier with upstream later #}
{% if can_update_report_config or object.report_config.past_due_reports or object.report_config.current_due_report %}
<div class="wrapper wrapper--outer-space-large">
<div class="data-block">
<div class="data-block__header">
<p class="data-block__title">{% trans "Reports" %}</p>
</div>
<div class="data-block__body">
{% user_can_update_report_config object user as can_update_report_config %}
{% if can_update_report_config %}
<div class="data-block__card">
<p class="data-block__card-title">{% trans "Report frequency" %}</p>
......@@ -38,6 +40,7 @@
</div>
</div>
{% endif %}
{% endif %}
<div class="wrapper wrapper--outer-space-large">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment