{% include 'header.html' %}
{{ device.name }}
{% for dtype in device_types %}
{{ dtype[1] }}
{% endfor %}
Select Site...
{% set sites = subnets | map(attribute='site') | unique | list %} {% for site in sites %}
{{ site }}
{% endfor %}
Select Subnet...
{% for subnet in subnets %}
{{ subnet.name }} ({{ subnet.cidr }})
{% endfor %}
Select IP...
Add IP
Allocated IPs:
{% for ip in device_ips %}
{{ ip.ip }}
{% endfor %}
{% if ip_history %}
IP Assignment History:
{% for entry in ip_history %}
{% if entry.action == 'assigned' %}
{% else %}
{% endif %}
{{ entry.ip }}
{% if entry.action == 'assigned' %}Assigned{% else %}Removed{% endif %}
to {{ entry.device_name }}
{{ entry.subnet_name }} ({{ entry.subnet_cidr }})
by {{ entry.user_name }} • {{ entry.timestamp.strftime('%Y-%m-%d %H:%M:%S') if entry.timestamp else 'Unknown' }}
{% endfor %}
{% endif %}
Tags:
{% if device_tags %} {% for tag in device_tags %}
{{ tag.name }}
{% if can_remove_device_tag %}
{% endif %}
{% endfor %} {% else %}
No tags assigned
{% endif %}
{% if can_assign_device_tag and all_tags %}
Select a tag to assign...
{% for tag in all_tags %} {% set already_assigned = device_tags|selectattr('id', 'equalto', tag.id)|list|length > 0 %} {% if not already_assigned %}
{{ tag.name }}
{% endif %} {% endfor %}
Assign Tag
{% endif %}
Description
{{ device.description or '' }}
Save Description