This commit lays out the genral structure and provides necessary data for the new reporting page designs. Some of the data generated by the report domain classes (including the mock CSP reporting class) was modified to fit new designs. This also included removing data that was no longer necessary. Part of the newly mocked data includes the idea of "expended" data per CLIN or task order. This was was mocked simply by using a 75% of the obligated funds fo a given object. Tests were also written for these new/ modifed reporting functions. As for the front end, this commit only focuses on the high-level markup layout. This includes splitting the large reporting index page into smaller component templates for each of the major sections of the report.
36 lines
1.0 KiB
HTML
36 lines
1.0 KiB
HTML
{% from "components/tooltip.html" import Tooltip %}
|
|
{% from "components/icon.html" import Icon %}
|
|
|
|
|
|
<section class="row">
|
|
<div class='col col--grow'>
|
|
<p>
|
|
Total Portfolio Value
|
|
{{Tooltip(("common.lorem" | translate), title="")}}
|
|
</p>
|
|
<p>{{ total_portfolio_value | dollars }}</p>
|
|
</div>
|
|
<div class='col col--grow'>
|
|
<p>
|
|
Funding Duration
|
|
{{Tooltip(("common.lorem" | translate), title="")}}
|
|
</p>
|
|
{% set earliest_pop_start_date, latest_pop_end_date = portfolio.funding_duration %}
|
|
{% if earliest_pop_start_date and latest_pop_end_date %}
|
|
<p>
|
|
{{ earliest_pop_start_date | formattedDate(formatter="%B %d, %Y") }}
|
|
-
|
|
{{ latest_pop_end_date | formattedDate(formatter="%B %d, %Y") }}
|
|
</p>
|
|
{% else %}
|
|
<p> - </p>
|
|
{% endif %}
|
|
</div>
|
|
<div class='col col--grow'>
|
|
<p>
|
|
Days Remaining
|
|
{{Tooltip(("common.lorem" | translate), title="")}}
|
|
</p>
|
|
<p>{{ portfolio.days_to_funding_expiration }} days</p>
|
|
</div>
|
|
</section> |