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

{% block content %}
<div class="page-header">
10
    <a href="{% url "network.group_delete" pk=group.pk %}" class="btn btn-danger pull-right"><i class="icon-remove-sign"></i> {% trans "Delete this group" %}</a>
11 12 13 14 15 16 17
    <h2>{{ form.name.value }}</h2>
</div>

<div class="row">
    <div class="col-sm-6">
        {% crispy form %}
    </div>
18 19
    <div class="col-sm-5 col-sm-offset-1">
        <div class="page-header">
20
            <a href="{% url "network.rule_create" %}?hostgroup={{ group_pk }}" class="btn btn-success pull-right btn-xs"><i class="icon-plus-sign"></i> {% trans "Add new rule" %}</a>
21 22 23 24 25 26 27 28
            <h3>{% trans "Rules" %}</h3>
        </div>
        {% if rule_list.data.data.count > 0 %}
            {% render_table rule_list %}
        {% else %}
            {% trans "No rules associated with this host group!" %}
        {% endif %}
    </div>
29 30
</div>
{% endblock %}