{% extends "admin_tools/dashboard/module.html" %}
{% load i18n %}
{% block module_content %}
    <div class="module {% for item in module.css_classes %}{{ item }} {% endfor %}">
        {% if module.title %}
            {% if subindex %}
                <h3>{{ module.title }}</h3>
            {% else %}
                <h2>{{ module.title }}</h2>
            {% endif %}
        {% endif %}
    
        {% for child in module.children %}
            <div class="row">
                {% if child.change_url %}<a href="{{ child.change_url }}">{{ child.title }}</a>{% else %}{{ child.title }}{% endif %}

                {% if child.add_url or child.change_url %}
                    <ul class="actions">
                        {% if child.add_url %}<li class="add-link"><a href="{{ child.add_url }}">{% trans "Add" %}</a></li>{% endif %}
                        {% if child.change_url %}<li class="change-link"><a href="{{ child.change_url }}">{% trans "Change" %}</a></li>{% endif %}
                    </ul>
                {% endif %}
            </div>
        {% endfor %}
    </div>
{% endblock %}
