{% extends 'nova/base.html' %}
{% load i18n %}
{% block title %}Security Groups{% endblock %}

{% block page_header %}
  {% include "horizon/common/_page_header.html" with title=_("Security Groups") %}
{% endblock page_header %}

{% block dash_main %}
  {% if security_groups %}
    {% url horizon:nova:access_and_security:security_groups:create as create_sec_url %}
    {% include 'nova/access_and_security/security_groups/_list.html' %}
  {% else %}
    <div class="message_box info">
      {% url horizon:nova:access_and_security:security_groups:create as dash_sec_url %}
      <h2>{% trans "Info" %}</h2>
      <p>{% blocktrans %}There are currently no security groups. <a href='{{ dash_sec_url }}' data-controls-modal="create_security_group_modal" data-backdrop="static">Create A Security Group</a>{% endblocktrans %}</p>
    </div>
  {% endif %}

  {% include 'nova/access_and_security/security_groups/_create.html' with form=form hide=True%}

{% endblock %}
