{% extends 'utilities/bulk_edit_form.html' %}
{% load form_helpers %}

{% block title %}IP Address Bulk Edit{% endblock %}

{% block selected_objects_table %}
    <tr>
        <th>IP Address</th>
        <th>VRF</th>
        <th>Tenant</th>
        <th>Status</th>
        <th>Assigned</th>
        <th>Description</th>
    </tr>
    {% for ipaddress in selected_objects %}
        <tr>
            <td><a href="{% url 'ipam:ipaddress' pk=ipaddress.pk %}">{{ ipaddress }}</a></td>
            <td>{{ ipaddress.vrf|default:"Global" }}</td>
            <td>{{ ipaddress.tenant }}</td>
            <td>{{ ipaddress.get_status_display }}</td>
            <td>{% if ipaddress.interface %}<i class="glyphicon glyphicon-ok text-success" title="{{ ipaddress.interface.device }} {{ ipaddress.interface }}"></i>{% endif %}</td>
            <td>{{ ipaddress.description }}</td>
        </tr>
    {% endfor %}
{% endblock %}
