{% extends "horizon/common/_modal_form.html" %}
{% load i18n horizon humanize %}

{% block form_id %}{% endblock %}
{% block form_action %}{% url 'horizon:project:dns_domains:create_domain' %}{% endblock %}

{% block modal_id %}create_domain_modal{% endblock %}
{% block modal-header %}{% trans "Create Domain" %}{% endblock %}

{% block modal-body %}
  <div class="left">
    <fieldset>
      {% include "horizon/common/_form_fields.html" %}
    </fieldset>
  </div>

  <div class="right quota-dynamic">
    <h3>{% trans "Description" %}:</h3>
    <p>{% blocktrans %}
      The Name field should contain a full-qualified domain name (with
      trailing period).
    {% endblocktrans %}</p>
    <p>{% blocktrans %}
      The Email field should contain a valid email address to be associated
      with the domain.
    {% endblocktrans %}</p>
    <p>{% blocktrans %}
      The optional TTL field can be any value between 1 and 2147483647
      seconds.
    {% endblocktrans %}</p>
  </div>

{% endblock %}

{% block modal-footer %}
  <input class="btn btn-primary pull-right" type="submit" value="{% trans "Create Domain" %}" />
  <a href="{% url 'horizon:project:dns_domains:index' %}" class="btn secondary cancel close">{% trans "Cancel" %}</a>
{% endblock %}
