{% extends "network/base.html" %} {% load render_table from django_tables2 %} {% load i18n %} {% load l10n %} {% load staticfiles %} {% load crispy_forms_tags %} {% block content %}
{% crispy form %}
{% if rule_list.data.data.count > 0 %} {% render_table rule_list %} {% else %} {% trans "No rules associated with this host!" %} {% endif %} {% if group_rule_list|length > 0 %} {% for group in group_rule_list %}

{{ group.name }}

{% render_table group.table %}
{% endfor %} {% else %} {% trans "This host is not added to any host groups!" %} {% endif %} {% if not_used_groups|length == 0 %} No more groups to add! {% else %}
{% csrf_token %}
{% endif %}
{% endblock %}