{% if not read_only %} {% endif %} {% for rule in rules %} {% if not read_only %} {% endif %} {% endfor %}
Direction Protocol Port Target Group CIDRActions
{% if rule.direction == 'I' %} Inbound {% else %} Outbound {% endif %} {{ rule.get_proto_display }} {{ rule.port }} {% if rule.group %} {{ rule.group.name }} {% elif rule.groups.exists %} {% for group in rule.groups.all %} {{ group.name }}{% if not forloop.last %}, {% endif %} {% endfor %} {% else %} Any {% endif %} {{ rule.cidr|default:"Any" }}