domain-edit.html 1.05 KB
Newer Older
1 2 3 4 5 6 7
{% extends "network/base.html" %}
{% load render_table from django_tables2 %}
{% load i18n %}
{% load l10n %}
{% load staticfiles %}
{% load crispy_forms_tags %}

Kálmán Viktor committed
8 9
{% block title-page %}{{ form.name.value }} | {% trans "domain" %}{% endblock %}

10 11
{% block content %}
<div class="page-header">
Kálmán Viktor committed
12
    <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>
13 14 15 16 17 18 19
    <h2>{{ form.name.value }} <small></small></h2>
</div>

<div class="row">
    <div class="col-sm-4">
        {% crispy form %}
    </div>
20
    <div class="col-sm-6 col-sm-offset-1">
21
        <div class="page-header">
Kálmán Viktor committed
22
            <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>
23 24
            <h3>{% trans "List of this domain's records" %}</h3>
        </div>
25 26 27 28 29 30
        <div class="table-responsive">
            {% render_table record_list %}
        </div>
    </div>
</div>
{% endblock %}