{% extends "system_maintenance/base.html" %} {% block title %}{{ object.system }} {{ object.datetime|date:'Y-m-d' }}{% endblock %} {# I think I want who/when changed #} {# Change list decorator #} {# PROBABLY NOT, BECAUSE CHANGES HEIGHT OF FOOTER: On hover show up arrows on panel footer #} {# PROBABLY NOT, BECAUSE CHANGES COLOR OF H1: Make entire panel header into link to summary? If so, show on hover? #} {% block content %}

{{ object.system }} {{ object.datetime.date }}

Type: {{ object.maintenance_type }}

Who: {{ object.sys_admin }}

{% if object.hardware.count == 1 %}

Hardware: {{ object.hardware.first }}

{% elif object.hardware.count > 1 %}

Hardware:

{% endif %} {% if object.software.count == 1 %}

Software: {{ object.software.first }}

{% elif object.software.count > 1 %}

Software:

{% endif %}

Status: {{ object.status }}

{% if object.description.raw %} Description {% endif %} {% if object.procedure.raw %} Procedure {% endif %} {% if object.problems.raw %} Problems {% endif %} {% include "system_maintenance/_related_records_button.html" with label="Related Document" record_count=object.documentation_records.count anchor="document-records" singular_suffix="" plural_suffix="s" %} {% include "system_maintenance/_related_records_button.html" with label="Related Record" record_count=object.referenced_records.count|add:object.referencing_records.count anchor="related-records" singular_suffix="" plural_suffix="s" %} {% if user.is_staff %} {% endif %}
{% if object.description.raw %} {% with type_of_record='maintenance' record_pk=object.pk type_of_field='description' markup_type=object.description.markup_type panel_type='info' content=object.description %} {% include "system_maintenance/_panel.html" %} {% endwith %} {% endif %} {% if object.procedure.raw %} {% with type_of_record='maintenance' record_pk=object.pk type_of_field='procedure' markup_type=object.procedure.markup_type panel_type='success' content=object.procedure %} {% include "system_maintenance/_panel.html" %} {% endwith %} {% endif %} {% if object.problems.raw %} {% with type_of_record='maintenance' record_pk=object.pk type_of_field='problems' markup_type=object.problems.markup_type panel_type='danger' content=object.problems %} {% include "system_maintenance/_panel.html" %} {% endwith %} {% endif %} {% if object.documentation_records.count %}
{% endif %} {% if object.referenced_records.count or object.referencing_records.count %}
{% if object.referenced_records.count %}

See also:

{% for record in object.referenced_records.all %} {% include "system_maintenance/_maintenance_record_list_item.html" %} {% endfor %}
{% endif %} {% if object.referencing_records.count %}

Referenced by:

{% for record in object.referencing_records.all %} {% include "system_maintenance/_maintenance_record_list_item.html" %} {% endfor %}
{% endif %}
{% endif %}
{% endblock content %}