{% extends "base_generic.html" %} {% load crispy_forms_tags report_tags bleach_tags custom_tags extra_fields determine_primary settings_tags static %} {% block pagetitle %}{{ report.title }}{% endblock %} {% block content %}
Report

{{ report.title }}

{% if report.complete %}Complete{% else %}Draft{% endif %} {% if report.delivered %}Delivered{% else %}Not Delivered{% endif %} {% for tag in report.tags.names %} {{ tag|bleach }} {% endfor %}

{% comment %} Status Tab {% endcomment %}

Report Status

{% with report.project.end_date|add_days:report_config.target_delivery_date as delivery_date %} {% with delivery_date|days_left as delivery_days_left %}
Target Due Date
{{ delivery_date|date:"DATE_FORMAT" }}
{% endwith %} {% endwith %}
Report Status
{% if report.complete %}Complete{% else %}Draft{% endif %} Controls whether the report is still being edited.
Delivery Status
{% if report.delivered %}Delivered{% else %}Not Delivered{% endif %} Records whether the final report reached the client.

Report Configuration

Figure Label & Prefix
{{ report_config.label_figure }}{{ report_config.prefix_figure }}
Figure Caption Location
{{ report_config.get_figure_caption_location_display }}
Default Evidence Image Alignment
{{ report_config.get_evidence_image_alignment_display }}
Default Evidence Image Width
{% if report_config.evidence_image_width is not None %} {{ report_config.evidence_image_width }} {% else %} 6.5 {% endif %} inches
Table Label & Prefix
{{ report_config.label_table }}{{ report_config.prefix_table }}
Table Caption Location
{{ report_config.get_table_caption_location_display }}
Title Case Captions
{% if report_config.title_case_captions %} Enabled {% else %} Disabled {% endif %}
Title Case Exceptions
{{ report_config.title_case_exceptions|split_and_join:"," }}
Image Borders
{% if report_config.enable_borders %} Enabled {% else %} Disabled {% endif %}
{% if report_config.enable_borders %}
Image Border Weight
{{ report_config.border_weight }} EMUs ({{ report_config.border_weight|divide:12700 }} pt)
Image Border Color
#{{ report_config.border_color }}
Report Download Filename
{{ report_config.report_filename }}
Delivery Date
{% if report_config.target_delivery_date > 0 %} +{% endif %}{{ report_config.target_delivery_date }} business days
Operation Log Tags
{% if report_config.outline_tags %} {{ report_config.outline_tags|humanize_comma_list }} {% else %} report and evidence {% endif %}
{% endif %}
{% comment %} Findings Tab {% endcomment %}

Current Findings

Search the finding library, add a blank finding, and manage the report's ordered findings.

Arrange your report. Drag findings within a severity group to reorder them. Open a title to edit the finding or change its severity.

{% include "snippets/report_findings_table.html" with report=report csrf_token=csrf_token %}
{% comment %} Observations Tab {% endcomment %}

Current Observations

Search the observation library, add a blank observation, and manage the report's ordered observations.

Arrange your report. Drag observations into the order they should appear. Open a title to edit its content.

{% include "snippets/report_observations_table.html" with report=report csrf_token=csrf_token %}
{% comment %} Report Evidence Tab {% endcomment %}

Report Evidence

Upload files here to make them available to every finding and report section.

Upload Evidence
{% if report.evidence_set.all %}
{% for evidence_file in report.evidence_set.all %} {% endfor %}
{% else %}

No report evidence yet

Upload evidence to reference it from findings and report sections.

{% endif %}
{% if report_extra_fields_spec %} {% comment %} Extra Fields Tab {% endcomment %}

Extra Fields

Report-level values are available to templates using the reference shown on each card.

{% for field_spec in report_extra_fields_spec %}
{{ field_spec.display_name }}
{% if field_spec.type == "rich_text" %} Rich Text {% else %} {{ field_spec.get_type_display }} {% endif %}
Template reference extra_fields.{{ field_spec.internal_name }}
Current value
{% if field_spec.type == "rich_text" %} Formatted content is available in Preview. {% elif field_spec.type == "json" %} Structured content is available in View JSON. {% else %} {% include "user_extra_fields/field.html" with extra_fields=report.extra_fields field_spec=field_spec preview_report=report %} {% endif %}
{% if field_spec.type == "rich_text" %} {% elif field_spec.type == "json" %} {% endif %} Edit
{% endfor %}
{% endif %} {% comment %} Generate Report Tab {% endcomment %}

Generate Reports

Choose an output template and build a downloadable report from the current content.

{% crispy form form.helper %}
{% endblock %} {% block collapse_js %} {{ block.super }} {% endblock %} {% block morescripts %} {% comment %} Modal for the loading spinner {% endcomment %} {{ autocomplete_data|json_script:"report-detail-autocomplete-data" }} {% comment %} Include the reusable delete confirmation modal and related scripts {% endcomment %} {% include "confirm_delete_modal.html" %} {% include "confirm_archive_modal.html" %} {% comment %} Insert modals for rich text and JSON extra field previews {% endcomment %} {% if report_extra_fields_spec %} {% for field_spec in report_extra_fields_spec %} {% url 'reporting:report_extra_field_json' report.id field_spec.internal_name as extra_field_json_url %} {% url 'reporting:report_extra_field_richtext' report.id field_spec.internal_name as extra_field_richtext_url %} {% include "user_extra_fields/extra_field_modal.html" with extra_fields=report.extra_fields field_spec=field_spec preview_report=report lazy_json_url=extra_field_json_url lazy_richtext_url=extra_field_richtext_url %} {% endfor %} {% include "user_extra_fields/lazy_json_modal_script.html" %} {% include "user_extra_fields/lazy_richtext_modal_script.html" %} {% endif %} {% comment %} Finding preview modal {% endcomment %} {% comment %} Observation preview modal {% endcomment %} {% comment %} Include the evidence lightbox modal {% endcomment %} {% include "snippets/evidence_lightbox_modal.html" %} {% comment %} Include evidence lightbox JavaScript {% endcomment %} {% comment %} Insert modals for additional evidence details {% endcomment %} {% get_solo "commandcenter.ReportConfiguration" as report_config %} {% for evidence in report.evidence_set.all %} {% include "snippets/evidence_detail_modal.html" with evidence=evidence %} {% endfor %} {% endblock %}