{% extends "network/base.html" %}
{% load render_table from django_tables2 %}
{% load i18n %}
{% load l10n %}
{% load staticfiles %}
{% load crispy_forms_tags %}

{% block title-page %}{{ form.name.value }} | {% trans "domain" %}{% endblock %}

{% block content %}
<div class="page-header">
    <a href="{% url "network.domain_delete" pk=domain_pk %}" class="btn btn-danger pull-right"><i class="fa fa-times-circle"></i> {% trans "Delete this domain" %}</a>
    <h2>{{ form.name.value }} <small></small></h2>
</div>

<div class="row">
    <div class="col-sm-4">
        {% crispy form %}
    </div>
    <div class="col-sm-6 col-sm-offset-1">
        <div class="page-header">
            <a href="{% url "network.record_create" %}?domain={{ domain_pk }}" class="btn btn-success pull-right btn-xs"><i class="fa fa-plus-circle"></i> {% trans "Add new record" %}</a>
            <h3>{% trans "List of this domain's records" %}</h3>
        </div>
        <div class="table-responsive">
            {% render_table record_list %}
        </div>
    </div>
</div>
{% endblock %}
