-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a reporting table for projects (#4051)
Fixes #4050 What a small line for such a large set of changes. Those supporting changes include: * Creating a view for the new Reporting Table * Creating a current_report() method in report_config that is slightly differnt than current_report_due (see inline doc) * Adding a ProjectQuerySet method that does some intense subquerying to be able to express the current_report in sql so that the status can be filtered against ## Note from the cherry-picker/integrator I see that the summary tables for reports was removed from `apply/projects` and that the current dropdown in the main navigation header points to `apply/project/reports`. This new table appears under `apply/project/reporting` and is linked to in the original fork in which this change occurred. As for integration here, the question is: do we want to replace the original table or augment off to the side somehow? Where should the link to this new table live? Co-authored-by: Frank Duncan <[email protected]> Co-authored-by: Fredrik Jonsson <[email protected]>
- Loading branch information
1 parent
2483330
commit 45f3a38
Showing
12 changed files
with
202 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
hypha/apply/projects/templates/application_projects/reporting.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{% extends "base-apply.html" %} | ||
|
||
{% load render_table from django_tables2 %} | ||
{% load i18n static %} | ||
|
||
{% block title %}{% trans "Reporting" %}{% endblock %} | ||
|
||
{% block content %} | ||
|
||
{% adminbar %} | ||
{% slot header %}{% trans "Reporting" %} ({{ table.rows|length }}){% endslot %} | ||
{% slot sub_heading %}{% trans "View, Search and filter reporting statuses" %}{% endslot %} | ||
{% endadminbar %} | ||
|
||
<div class="wrapper wrapper--large wrapper--inner-space-medium"> | ||
{% if table %} | ||
{% include "funds/includes/table_filter_and_search.html" with filter_form=filter_form filter_action=filter_action filter_classes="filters-open" %} | ||
{% render_table table %} | ||
{% else %} | ||
<p>{% trans "No Projects Currently Reporting." %}</p> | ||
{% endif %} | ||
</div> | ||
|
||
{% endblock content %} | ||
|
||
{% block extra_css %} | ||
{{ filter.form.media.css }} | ||
{% endblock %} | ||
|
||
{% block extra_js %} | ||
{{ filter.form.media.js }} | ||
<script src="{% static 'js/submission-filters.js' %}"></script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters