{% 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 %}
Type: {{ object.maintenance_type }}
Who: {{ object.sys_admin }}
{% if object.hardware.count == 1 %}Hardware: {{ object.hardware.first }}
{% elif object.hardware.count > 1 %}Hardware:
Software: {{ object.software.first }}
{% elif object.software.count > 1 %}Software:
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 %}