{% load i18n %}
<table id="security_groups" class="zebra-striped">
  <tr>
    <th>{% trans "Name"%}</th>
    <th>{% trans "Description"%}</th>
    <th>{% trans "Actions"%}</th>
  </tr>
  {% for security_group in security_groups %}
  <tr class="{% cycle 'odd' 'even' %}">
    <td><a href="{% url horizon:nova:security_groups:edit_rules security_group.id %}">{{ security_group.name }}</a></td>
    <td>{{ security_group.description }}</td>
    <td id="actions">
      <ul>
        <li><a class="btn small" href="{% url horizon:nova:security_groups:edit_rules security_group.id %}">{% trans "Edit Rules"%}</a></li>
        {% if security_group.name != 'default' %}
          <li class="form">{% include "nova/security_groups/_delete.html" with form=delete_form %}</li>
        {% endif %}
      </ul>
    </td>
  </tr>
  {% endfor %}
</table>
