summaryrefslogtreecommitdiff
path: root/django-openstack/django_openstack/templates/django_openstack/dash/security_groups/index.html
blob: 48e9fa496efddabf827c698d36b2806ee28d260c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% extends 'django_openstack/dash/base.html' %}
{%load i18n%}

{% block sidebar %}
  {% with current_sidebar="security_groups" %}
    {{block.super}}
  {% endwith %}
{% endblock %}

{% block page_header %}
  {% url dash_security_groups request.user.tenant_id as refresh_link %}
  {# to make searchable false, just remove it from the include statement #}
  {% include "django_openstack/common/_page_header.html" with title=_("Security Groups") refresh_link=refresh_link searchable="true" %}
{% endblock page_header %}

{% block dash_main %}
  {% if security_groups %}
    {% include 'django_openstack/dash/security_groups/_list.html' %}
    {% url dash_security_groups_create request.user.tenant_id as create_sec_url %}
    <a id="security_groups_create_link" class="action_link large-rounded" href="{{create_sec_url}}">{% trans "Create Security Group"%}</a>
  {% else %}
    <div class="message_box info">
      {% url dash_security_groups_create request.user.tenant_id as dash_sec_url %}
      <h2>{% trans "Info"%}</h2>
      <p>{% blocktrans %}There are currently no security groups. <a href='{{dash_sec_url}}'>Create A Security Group &gt;&gt;</a>{% endblocktrans %}</p>
    </div>
  {% endif %}
{% endblock %}