~ubuntu-branches/ubuntu/precise/horizon/precise-updates

« back to all changes in this revision

Viewing changes to horizon/horizon/dashboards/nova/templates/nova/access_and_security/security_groups/_edit_rules.html

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-16 16:34:56 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20111216163456-ts9ldy8skhsg0scb
Tags: 2012.1~e2-0ubuntu1
* New upstream release (LP: #904039)
* debian/control: Update build-depends.
* debian/watch: Fix to fetch from Launchpad ad well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% load i18n %}
 
2
 
 
3
 
 
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">&times;</a>{% endif %}
 
7
      <h3>Edit Security Group Rules</h3>
 
8
    </div>
 
9
    <div class="modal-body clearfix">
 
10
      <div class="right">
 
11
          <h3> {% trans "Rules for Security Group" %} '{{security_group.name}}'</h3>
 
12
          <table id="security_groups" class="zebra-striped">
 
13
            <tr>
 
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>
 
19
            </tr>
 
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>
 
26
                <td id="actions">
 
27
                  <ul>
 
28
                    <li class="form">{% include "nova/access_and_security/security_groups/_delete_rule.html" with form=delete_form %}</li>
 
29
                  </ul>
 
30
                </td>
 
31
              </tr>
 
32
            {% empty %}
 
33
            <tr>
 
34
              <td colspan="100%">
 
35
                {% trans "No rules for this security group" %}
 
36
              </td>
 
37
            </tr>
 
38
            {% endfor %}
 
39
          </table>
 
40
      </div>
 
41
      <form id="edit_security_group_rule_form" action="{% url horizon:nova:access_and_security:security_groups:edit_rules security_group.id %}" method="post">
 
42
        {% csrf_token %}
 
43
        <fieldset>
 
44
        {% include "horizon/common/_form_fields.html" %}
 
45
        </fieldset>
 
46
    </div>
 
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>
 
50
    </div>
 
51
  </form>
 
52
</div>
 
53
 
 
54
{% block modal-footer %}
 
55
{% endblock %}