{% extends 'nova/base.html' %} {%load i18n%} {% block sidebar %} {% with current_sidebar="security_groups" %} {{block.super}} {% endwith %} {% endblock %} {% block page_header %} {% include "horizon/common/_page_header.html" with title=_("Edit Security Group Rules") %} {% endblock page_header %} {% block dash_main %}

{% trans "Rules for Security Group"%} '{{security_group.name}}'

{% for rule in security_group.rules %} {% empty %} {% endfor %}
{% trans "IP Protocol"%} {% trans "From Port"%} {% trans "To Port"%} {% trans "CIDR"%} {% trans "Actions"%}
{{ rule.ip_protocol }} {{ rule.from_port }} {{ rule.to_port }} {{rule.ip_range.cidr}}
  • {% include "nova/security_groups/_delete_rule.html" with form=delete_form %}
{% trans "No rules for this security group"%}

{% trans "Add a rule"%}

{% csrf_token %} {% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %} {% for field in form.visible_fields %} {{ field.label_tag }} {{ field.errors }} {{ field }} {% endfor %}
{% endblock %}