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

« back to all changes in this revision

Viewing changes to horizon/horizon/dashboards/nova/templates/nova/security_groups/_list.html

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-09 16:18:55 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20111209161855-nguyenpghx2o2lqy
Tags: 2012.1~e2~20111209.1104-0ubuntu1
* New upstream release.
* Refreshed patches.
* debian/docs: Removed README

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{% load i18n %}
2
 
<table id="security_groups" class="zebra-striped">
3
 
  <tr>
4
 
    <th>{% trans "Name"%}</th>
5
 
    <th>{% trans "Description"%}</th>
6
 
    <th>{% trans "Actions"%}</th>
7
 
  </tr>
8
 
  {% for security_group in security_groups %}
9
 
  <tr class="{% cycle 'odd' 'even' %}">
10
 
    <td><a href="{% url horizon:nova:security_groups:edit_rules security_group.id %}">{{ security_group.name }}</a></td>
11
 
    <td>{{ security_group.description }}</td>
12
 
    <td id="actions">
13
 
      <ul>
14
 
        <li><a class="btn small" href="{% url horizon:nova:security_groups:edit_rules security_group.id %}">{% trans "Edit Rules"%}</a></li>
15
 
        {% if security_group.name != 'default' %}
16
 
          <li class="form">{% include "nova/security_groups/_delete.html" with form=delete_form %}</li>
 
2
 
 
3
<div class="table_title">
 
4
  <h3>{% trans "Security Groups" %}</h3>
 
5
  <div class="table_actions">
 
6
 
 
7
    <a id="security_groups_create_link" class="btn primary small" href="{{ create_sec_url }}" data-controls-modal="create_security_group_modal" data-backdrop="static">{% trans "Create Security Group" %}</a>
 
8
    
 
9
    <div class="security_group table_search">
 
10
      <form action="#">
 
11
        <input class="span3" type="text">
 
12
      </form>
 
13
    </div>
 
14
    <a class="inspect" href="#">{% trans "inspect" %}</a>
 
15
  </div>
 
16
</div>
 
17
 
 
18
<table id="security_groups" class="zebra-striped sortable">
 
19
  <thead>
 
20
    <tr>
 
21
      <th></th>
 
22
      <th>{% trans "Name"%}</th>
 
23
      <th>{% trans "Description"%}</th>
 
24
      <th colspan="2">{% trans "Actions"%}</th>
 
25
    </tr>
 
26
  </thead>
 
27
  <tbody>
 
28
    {% for security_group in security_groups %}
 
29
    <tr class="{% cycle 'odd' 'even' %}">
 
30
      <td class="select">
 
31
        <input type="checkbox" name="security_group_{{security_group.id}}" value="security_group_{{security_group.id}}" id="security_group_select_{{security_group.id}}" />
 
32
      </td>
 
33
      <td><a href="{% url horizon:nova:security_groups:edit_rules security_group.id %}">{{ security_group.name }}</a></td>
 
34
      <td>{{ security_group.description }}</td>
 
35
      <td>
 
36
        <a class="btn primary small" href="{% url horizon:nova:security_groups:edit_rules security_group.id %}">{% trans "Edit Rules"%}</a>
 
37
      </td>
 
38
      <td id="name_{{security_group.name}}" class="actions">
 
39
        {% if security_group.name != 'default' %}      
 
40
          <a class="more-actions" href="#">View</a>
 
41
          <ul>
 
42
              <li class="form">{% include "nova/security_groups/_delete.html" with form=delete_form %}</li>
 
43
          </ul>
17
44
        {% endif %}
18
 
      </ul>
19
 
    </td>
20
 
  </tr>
21
 
  {% endfor %}
 
45
      </td>
 
46
    </tr>
 
47
    {% endfor %}
 
48
  </tbody>
22
49
</table>