4
<div id="security_group_rule_modal" class="{% block modal_class %}modal{% if hide %} hide {% else %} static_page{% endif %}{% endblock %}">
5
<div class="modal-header">
6
{% if hide %}<a href="#" class="close">×</a>{% endif %}
7
<h3>Edit Security Group Rules</h3>
9
<div class="modal-body clearfix">
11
<h3> {% trans "Rules for Security Group" %} '{{security_group.name}}'</h3>
12
<table id="security_groups" class="zebra-striped">
14
<th>{% trans "IP Protocol" %}</th>
15
<th>{% trans "From Port" %}</th>
16
<th>{% trans "To Port" %}</th>
17
<th>{% trans "CIDR" %}</th>
18
<th>{% trans "Actions" %}</th>
20
{% for rule in security_group.rules %}
21
<tr class="{% cycle 'odd' 'even' %}">
22
<td>{{ rule.ip_protocol }}</td>
23
<td>{{ rule.from_port }}</td>
24
<td>{{ rule.to_port }}</td>
25
<td>{{ rule.ip_range.cidr }}</td>
28
<li class="form">{% include "nova/access_and_security/security_groups/_delete_rule.html" with form=delete_form %}</li>
35
{% trans "No rules for this security group" %}
41
<form id="edit_security_group_rule_form" action="{% url horizon:nova:access_and_security:security_groups:edit_rules security_group.id %}" method="post">
44
{% include "horizon/common/_form_fields.html" %}
47
<div class="modal-footer">
48
<input class="btn primary pull-right" type="submit" value="{% trans "Add Rule" %}" />
49
<a href="{% url horizon:nova:access_and_security:index %}" class="btn secondary cancel close">Cancel</a>
54
{% block modal-footer %}