summaryrefslogtreecommitdiff
path: root/lib/grappelli/templates/admin/_grappelli/app_index.html
blob: e9cb80610e0d42a845e3f2ceace341aeb612f8c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{% extends "admin/_grappelli/index.html" %}

<!-- LOADING -->
{% load i18n grp_tags %}

<!-- BREADCRUMBS -->
{% if not is_popup %}
    {% block breadcrumbs %}
        <div id="breadcrumbs">
            <a href="../">{% trans "Home" %}</a> &rsaquo;
            {% for app in app_list %}
                {% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}
            {% endfor %}
        </div>
    {% endblock %}
{% endif %}

<!-- CONTENT -->
{% block content %}
    <div class="container-grid">
        <div class="column span-12" id="apps_init">
            {% if app_list %}
                {% for app in app_list %}
                    <div class="module" id="app_{{ app.name|lower }}">
                        <h2>{% trans app.name %}</h2>
                        {% for model in app.models %}
                            <div class="row">
                                {% if model.perms.change %}<a href="{{ model.admin_url }}">{{ model.name }}</a>{% else %}<span>{{ model.name }}</span>{% endif %}
                                <ul class="actions">
                                    <li class="add-link">{% if model.perms.add %}<a href="{{ model.admin_url }}add/">{% trans 'Add' %}</a>{% else %}&nbsp;{% endif %}</li>
                                    <li class="change-link"> {% if model.perms.change %}<a href="{{ model.admin_url }}">{% trans 'Change' %}</a>{% else %}&nbsp;{% endif %}</li>
                                </ul>
                            </div>
                        {% endfor %}
                    </div>
                {% endfor %}
            {% endif %}
        </div>
    </div>
{% endblock %}