{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
{% load url from future %}

{% block form_id %}provision_form{% endblock %}
{% block form_action %}{% url 'horizon:infrastructure:overview:deploy_confirmation' %}{% endblock %}

{% block modal_id %}provision_modal{% endblock %}
{% block modal-header %}{% trans "Deployment Confirmation" %}{% endblock %}

{% block modal-body %}
<div>
  <p>{% trans "You are about deploy your overcloud." %}</p>
  {% if autogenerated_parameters %}
    <i class="fa fa-info-circle"></i> &nbsp;
    {{ autogenerated_parameters|length }} parameters will be randomly generated.
    <a data-toggle="collapse" href="#collapseParameters">
      <span class="caret"></span>
    </a>
    <div id="collapseParameters" class="panel-collapse collapse">
      <ul><li>
        {{ autogenerated_parameters|join:"</li><li>" }}
      </li></ul>
    </div>
  {% endif %}
</div>
<div>
  <fieldset>
    <div class="left">
      {% include "horizon/common/_form_fields.html" %}
    </div>
  </fieldset>
  <br /><br />
  <div class="alert alert-warning">
    <i class="fa fa-exclamation-triangle fa-3x pull-left text-warning"></i>
    <p>{% trans "This operation cannot be undone." %}</p>
    <p>{% trans "Are you sure you want to deploy changes?" %}</p>
  </div>
</div>
{% endblock %}
