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

{% block page_header %}
  {% url horizon:nova:instances_and_volumes:volumes:index as refresh_link %}
  {# to make searchable false, just remove it from the include statement #}
  {% include "horizon/common/_page_header.html" with title=_("Volumes") refresh_link=refresh_link searchable="true" %}
{% endblock page_header %}

{% block dash_main %}
  {% if volumes %}
    {% include 'nova/instances_and_volumes/volumes/_list.html' %}
  {% else %}
    <div class="alert-message block-message info">
      <p><strong>{% trans "Info: " %}</strong>{% trans "There are currently no volumes." %}</p>
      <div class="alert-actions">
        <a id="volume_create_link" class="btn primary small" data-controls-modal="create_volume_modal" data-backdrop="static" href="{% url horizon:nova:instances_and_volumes:volumes:create %}">{% trans "Create New Volume" %}</a>
      </div>
    </div>
  {% endif %}

  {% include 'nova/instances_and_volumes/volumes/_create.html' with form=create_form hide=True %}

{% endblock %}
