{% extends "base.html" %} {% block title %}Devices — Battery Tracker{% endblock %} {% block content %}
| Name | Type | Size | Location | Slots | Installed | Brands | Actions |
|---|---|---|---|---|---|---|---|
| {{ d.name }} | {{ d.device_type or '—' }} | {{ d.battery_size or '—' }} | {{ d.location or '—' }} | {{ total_slots }} | {{ installed }} / {{ total_slots }} {% if total_slots > 0 and installed >= total_slots %} Full {% endif %} | {% set brands = d.installed_brands() %} {% if brands %} {{ brands|join(', ') }} {% if d.has_mixed_brands() %} ⚠ mixed {% endif %} {% else %} — {% endif %} | View {% if installed > 0 %} {% endif %} |
| ↳ {{ child.name }} | {{ d.device_type or '—' }} | {{ child.battery_size or '—' }} | {{ d.location or '—' }} | {{ child.battery_slots }} | {{ c_installed }} / {{ child.battery_slots }} {% if child.battery_slots > 0 and c_installed >= child.battery_slots %} Full {% endif %} | {% set c_brands = child.installed_brands() %} {% if c_brands %} {{ c_brands|join(', ') }} {% if child.has_mixed_brands() %} ⚠ mixed {% endif %} {% else %} — {% endif %} | View |
| No devices yet. Add one. | |||||||