django-orchestra-test/orchestra/templates/admin/plugins/select_plugin.html

38 lines
1.6 KiB
HTML
Raw Permalink Normal View History

2014-09-16 17:14:24 +00:00
{% extends "admin/orchestra/generic_confirmation.html" %}
2014-10-11 12:43:08 +00:00
{% load i18n l10n staticfiles admin_urls admin_tools_dashboard_tags %}
{% block extrastyle %}
{{ block.super }}
{% block dashboard_css %}{% admin_tools_render_dashboard_css %}{% endblock %}
{% endblock %}
2014-09-16 17:14:24 +00:00
{% block content %}
2014-09-26 19:21:09 +00:00
<h1>Select a {{ field_name }} for the new {{ opts.object_name }} instance</h1>
2014-09-16 17:14:24 +00:00
<form action="" method="post">{% csrf_token %}
<div>
<div style="margin:20px;">
2014-10-11 12:43:08 +00:00
{% if plugin.icon %}
<div id="module_2" class="dashboard-module" style="display: inline-block;">
2015-03-04 21:06:16 +00:00
<h2>{{ plugin_title }}</h2>
2014-10-11 12:43:08 +00:00
<div class="dashboard-module-content">
<ul class="fluent-dashboard-appiconlist clearfix" style="padding: 0">
{% for plugin in plugins %}
2014-11-12 16:33:40 +00:00
<li><a class="fluent-dashboard-icon" href="../?{{ field }}={{ plugin.get_name }}&{{ request.META.QUERY_STRING }}">
2014-10-11 12:43:08 +00:00
<img src="{% static plugin.icon %}" width="48" height="48" alt="{{ plugin.get_name }}"></a>
2014-11-13 15:34:00 +00:00
<a class="fluent-dashboard-icon-caption" href="../?{{ field }}={{ plugin.get_name }}&{{ request.META.QUERY_STRING }}">{{ plugin.get_verbose_name }}</a></li>
2014-10-11 12:43:08 +00:00
{% endfor %}
</ul>
</div>
</div>
{% else %}
<ul>
{% for plugin in plugins %}
2014-11-13 15:34:00 +00:00
<li><a style="font-size:small;" href="../?{{ field }}={{ plugin.get_name }}&{{ request.META.QUERY_STRING }}">{{ plugin.get_verbose_name }}</<a></li>
2014-10-11 12:43:08 +00:00
{% endfor %}
</ul>
{% endif %}
2014-09-16 17:14:24 +00:00
</div>
{% endblock %}