docbow/docbow_project/templates/admin/app_index.html

44 lines
1.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "admin/index.html" %}
{% load url from future %}
{% load i18n grp_tags %}
{% block javascripts %}
{{ block.super }}
{% endblock %}
{% if not is_popup %}
{% block breadcrumbs %}
<ul class="grp-horizontal-list">
<li><a href="../">{% trans "Home" %}</a></li>
{% for app in app_list %}
{% blocktrans with app.name as name %}<li>{{ name }}</li>{% endblocktrans %}
{% endfor %}
</ul>
{% endblock %}
{% endif %}
{% block content %}
<div class="g-d-c">
<div class="g-d-12" id="apps_init">
{% for app in app_list %}
<div class="grp-module" id="app_{{ app.name|lower }}">
<h2>{% trans app.name %}</h2>
{% for model in app.models %}
<div class="grp-row">
{% if model.perms.change %}<a href="{{ model.admin_url }}"><strong>{{ model.name }}</strong></a>{% else %}<span><strong>{{ model.name }}</strong></span>{% endif %}
{% if model.perms.add or model.perms.change %}
<ul class="grp-actions">
{% if model.perms.add %}<li class="grp-add-link"><a href="{{ model.admin_url }}add/">{% trans 'Add' %}</a></li>{% endif %}
{% if model.perms.change %}<li class="grp-change-link"><a href="{{ model.admin_url }}">{% trans 'Change' %}</a></li>{% endif %}
</ul>
{% endif %}
</div>
{% endfor %}
</div>
{% empty %}
<p>{% trans "You don´t have permission to edit anything." %}</p>
{% endfor %}
</div>
</div>
{% endblock %}