{% load url from future %} {% load icons %} {% load query %} {% load formats %} {% if show_bulk %} {% endif %} {% for i in d.padding %}    {% endfor %}{{ d|device_icon }} {{ d.name|default:'unknown' }} {% if 'venture' in columns %} {% if d.venture %} {{ d.venture.name }}{% endif %}{% if d.venture_role %}/{{ d.venture_role.full_name }}{% endif %} {% endif %} {% if 'model' in columns %} {% if d.model.group %} {{ d.get_model_name }} {% else %} {{ d.get_model_name }} {% endif %} {% endif %} {% if 'margin' in columns %} {{ d.get_margin|default:'0' }}% {% endif %} {% if 'deprecation' in columns %} {{ d.deprecation_kind|default:'' }} {% endif %} {% if 'price' in columns %} {{ d.cached_price|currency }} {% endif %} {% if 'cost' in columns %} {{ d.cached_cost|currency }} {% endif %} {% if 'barcode' in columns %} {{ d.barcode|default:'' }} {% endif %} {% if 'position' in columns %} {% if d.dc %}{{ d.dc }}/{% endif %}{% if d.rack %}{{ d.rack }}/{% endif %}{{ d.position|default:d.chassis_position|default:'-' }} {% endif %} {% if 'ips' in columns %} {% for ip in d.ipaddress_set.all %} {% if ip in network %} {{ ip.address }} {% else %} {{ ip.address }} {% endif %} {% endfor %} {% endif %} {% if 'management' in columns %} {% if d.management %} {{ d.management.hostname|default:d.management.address }} {% else %} {% endif %} {% endif %} {% if 'created' in columns %} {{ d.created|date:'Y-m-d H:i' }} {% endif %} {% if 'lastseen' in columns %} {{ d.last_seen|date:'Y-m-d H:i' }} {% endif %} {% if 'remarks' in columns %} {{ d.remarks }} {% endif %} {% if 'purchase' in columns %} {{ d.purchase_date|date:'Y-m-d H:i'|default:'' }} {% endif %} {% if 'warranty' in columns %} {{ d.warranty_expiration_date|date:'Y-m-d H:i'|default:'' }} {% endif %} {% if 'support' in columns %} {{ d.support_expiration_date|date:'Y-m-d H:i'|default:'' }} {% endif %}