{% extends "base.html" %} {% load static %} {% block title %}{{ object.name }} - Equipment Details{% endblock %} {% block content %}

{{ object.name }}

Edit Equipment

Equipment Information

{{ object.get_status_display }}
Equipment Name: {{ object.name }}
Modality: {{ object.get_modality_display }}
Manufacturer: {{ object.manufacturer|default:"Not specified" }}
Model: {{ object.model|default:"Not specified" }}
Serial Number: {{ object.serial_number|default:"Not specified" }}
Location: {{ object.location|default:"Not specified" }}
Installation Date: {{ object.installation_date|date:"M d, Y"|default:"Unknown" }}
Warranty Expires: {% if object.warranty_expiry %} {{ object.warranty_expiry|date:"M d, Y" }} {% else %} Not specified {% endif %}
Asset Tag: {{ object.asset_tag|default:"Not assigned" }}
Purchase Cost: {{ object.purchase_cost|default:"Not specified" }}

Usage Statistics

{{ object.studies_today|default:0 }}

Studies Today

{{ object.studies_this_week|default:0 }}

This Week

{{ object.studies_this_month|default:0 }}

This Month

{{ object.utilization_rate|default:0 }}%

Utilization

Maintenance History

{% if object.maintenance_records.all %}
{% for record in object.maintenance_records.all|slice:":5" %} {% endfor %}
Date Type Description Technician Status Cost
{{ record.date|date:"M d, Y" }} {{ record.get_type_display }} {{ record.description|truncatewords:10 }} {{ record.technician|default:"Not specified" }} {{ record.get_status_display }} {{ record.cost|default:"N/A" }}
{% if object.maintenance_records.count > 5 %} {% endif %} {% else %}

No maintenance records found.

{% endif %}

Quick Actions

{% if object.status == 'operational' %} {% elif object.status == 'offline' %} {% endif %}

Service Information

{% if object.last_service_date %} {{ object.last_service_date|date:"M d, Y" }} ({{ object.days_since_service }} days ago) {% else %} Never serviced {% endif %}
{% if object.next_service_date %} {{ object.next_service_date|date:"M d, Y" }} {% if object.service_overdue %} (Overdue) {% elif object.service_due_soon %} (Due Soon) {% endif %} {% else %} Not scheduled {% endif %}
{% if object.service_contract %} Active
{{ object.service_provider }} {% else %} No Contract {% endif %}
{{ object.downtime_hours|default:0 }} hours

Technical Specifications

{% if object.specifications %}
{{ object.specifications.power|default:"Not specified" }}
{{ object.specifications.dimensions|default:"Not specified" }}
{{ object.specifications.weight|default:"Not specified" }}
{{ object.specifications.software_version|default:"Not specified" }}
{% else %}

No technical specifications available.

{% endif %}

Support Contacts

{{ object.service_provider|default:"Not specified" }}
{% if object.service_phone %} {{ object.service_phone }} {% endif %}
{{ object.tech_support_contact|default:"Not specified" }}
{% if object.tech_support_phone %} {{ object.tech_support_phone }} {% endif %}
{{ object.emergency_contact|default:"Not specified" }}
{% if object.emergency_phone %} {{ object.emergency_phone }} {% endif %}
{% endblock %}