{% load i18n helpers %} {# The machine drawing: filter form, drawing and tables. Everything is a GET parameter, so a drawing is a link. #}
| {% trans "Device" %} | {% trans "Role" %} | {% trans "Manufacturer" %} | {% trans "Model" %} | {% trans "Serial" %} | {% trans "Zone" %} | {% trans "Firmware" %} | {% trans "Addresses (NAT)" %} | {% trans "Modules" %} |
|---|---|---|---|---|---|---|---|---|
| {{ d.name }} | {{ d.role|placeholder }} | {{ d.manufacturer }} | {{ d.model }} | {{ d.serial|placeholder }} | {% if d.zone %}{{ d.zone }}{% for z in d.other_zones %} {% trans "also" %} {{ z }}{% endfor %}{% else %}{{ ''|placeholder }}{% endif %} |
{{ d.firmware|placeholder }} |
{% for a in d.addresses %}{{ a.interface }} {{ a.address }}{% if a.nat %} ⇄ {{ a.nat|join:", " }}{% endif %}{% if not forloop.last %} {% endif %}{% empty %}{{ ''|placeholder }}{% endfor %} |
{% for m in d.modules %}{% if m.bay %}{{ m.bay }}: {% endif %}{{ m.model }}{% if m.serial %}, S/N {{ m.serial }}{% endif %}{% if m.firmware %}, FW {{ m.firmware }}{% endif %}{% if not forloop.last %} {% endif %}{% empty %}{{ ''|placeholder }}{% endfor %} |
| {% trans "Cable" %} | {% trans "Device" %} | {% trans "Port" %} | {% trans "Other end" %} | {% trans "Port" %} | {% trans "Type" %} | {% trans "Status" %} | {% trans "Leaves the machine" %} |
|---|---|---|---|---|---|---|---|
| {% if c.color %}{% endif %}{{ c.label }} | {{ c.a.name }} | {{ c.a.ports|placeholder }} | {% if c.b.url %}{{ c.b.name }}{% else %}{{ c.b.name }}{% endif %} | {{ c.b.ports|placeholder }} | {{ c.type|placeholder }} | {{ c.status }} | {% if c.leaves %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %} |
| {{ label }} | {% endfor %}
|---|
| {{ value|placeholder }} | {% endfor %}
| {% trans "Access path" %} | {% trans "Route" %} | {% trans "Origin" %} | {% trans "Method" %} | {% trans "Target" %} | {% trans "Authentication" %} | {% trans "Status" %} | {% trans "Approved by" %} | {% trans "Expires" %} |
|---|---|---|---|---|---|---|---|---|
| {{ p.path }} | {{ p.route }} | {{ p.origin }} | {{ p.method }} | {{ p.target|placeholder }} | {{ p.authentication }} | {{ p.status }} | {{ p.approved_by|placeholder }} | {{ p.expires|placeholder }} |