123456789101112131415161718192021222324252627282930313233 |
- {% extends "admin/layout.html" %}
- {% load i18n %}
- {% load l10n %}
- {% load url from future %}
- {% from "admin/macros.html" import page_title, draw_message %}
- {% import "_forms.html" as form_theme with context %}
- {% block title %}{% if admin.actions[0].id != action.id and action.name -%}
- {% if target %}{{ page_title(parent=action.name, title=target) }}{% else %}{{ page_title(title=action.name) }}{% endif %}
- {%- else -%}
- {{ page_title(title=admin.name) }}
- {%- endif %}{% endblock %}
- {% block content %}
- <div class="page-header{% if admin.actions|length > 1 %} tabs-header{% endif %}">
- <h1>{{ admin.name }}{% if admin.help %} <small>{{ admin.help }}</small>{% endif %}</h1>
- {% if admin.actions|length > 1 %}<ul class="nav nav-tabs">{% for item in admin.actions %}
- <li{% if action.id == item.id %} class="active"{% endif %}><a href="{{ item.route|url() }}"{% if action.id != item.id and item.help %} class="tooltip-bottom" title="{{ item.help }}"{% endif %}>{{ item.name }}</a></li>{% endfor %}
- </ul>{% endif %}
- </div>
- {% if admin.actions[0].id != action.id -%}
- <h2>{% if target %}{{ target }} <small>{{ action.name }}</small>{% else %}{{ action.name }}{% if action.help %} <small>{{ action.help }}</small>{% endif %}{% endif %}</h2>
- {% endif %}
- {% for message in messages_log %}
- {{ draw_message(message, 'alert-form') }}
- {% endfor %}
- {% if message %}
- {{ draw_message(message, 'alert-form') }}
- {% endif %}
- {% block page_help %}{% endblock %}
- {% block action_body %}
- {% endblock %}
- {% endblock %}
|