{% extends "objects/base.html" %} {% load static %} {% load i18n %} {% block content %} {% if box.role == 1 or box.role == 2 %}
{% include 'box/box_start.html' with box=box.id status=box.status %} | {% if box.role == 1 %} {% if box.controller_type == 0 %}{% include 'box/box_controller_0.html' with box=box.id %} | {% else %}{% include 'box/box_controller_1.html' with box=box.id %} | {% endif %} {% elif box.role == 2 %}{% include 'box/box_gateway.html' with ip=box.host %} | {% else %}{% include 'box/box_empty.html' %} | {% endif %} {% for module in box.modules %}{% include 'box/box_module.html' with box=box.id module=module.address %} | {% endfor %}{% include 'box/box_end.html' %} |