Installation de la version modifié de QBE dans src/
[auf_rh_dae.git] / src / qbe / django_qbe / templates / qbe_results.html
1 {% extends "qbe.html" %}
2 {% load i18n qbe_tags %}
3
4 {% block extrahead %}
5 <script type="text/javascript" src="{% firstof STATIC_URL MEDIA_URL %}django_qbe/js/jquery.js"></script>
6 <link rel="stylesheet" type="text/css" href="{% firstof STATIC_URL MEDIA_URL %}django_qbe/css/qbe.css" />
7 {% endblock %}
8
9 {% block breadcrumbs %}<div class="breadcrumbs"><a href="{% url admin:index %}">{% trans 'Home' %}</a>{% if title %} &rsaquo; <a href="{% url qbe_form %}">{{ title }}</a> &rsaquo; {% trans "Results" %}{% endif %}</div>
10 {% endblock %}
11
12 {% block content_title %}{% if title %}
13 <h1>
14 {{ title }}: {{ count|floatformat:0 }} {% trans "result" %}{{ count|floatformat:0|pluralize }}
15 </h1>
16 {% endif %}{% endblock %}
17
18 {% block content %}
19 {% block object-tools %}
20 {% ifequal limit count %}
21 {% trans "Showing all" %} {{ count|floatformat:0 }} {% trans "result" %}{{ results|length|pluralize }}
22 {% else %}
23 {% trans "Showing from" %} {{ offset|floatformat:0 }} {% trans "to" %} {{ offset_limit|floatformat:0 }} {% trans "of" %} {{ count|floatformat:0 }} {% trans "result" %}{{ results|length|pluralize }}
24 {% endifequal %}
25 <span id="qbeResultsOptions">
26 {% ifequal limit count %}
27 (<a href="{% url qbe_results query_hash %}">{% trans "show first ones" %}</a>
28 {% else %}
29 (<a href="{% url qbe_results query_hash %}?show=all">{% trans "show all" %}</a>
30 {% endifequal %}
31 | <a href="{% url qbe_form %}?hash={{ query_hash }}">{% trans "edit query" %}</a>
32 | <a href="#" onclick="jQuery('#qbeSQL').toggle();return false;">{% trans "view query" %}</a>)
33 </span>
34 <ul class="object-tools">
35 <li id="qbeSaveQueryLi">
36 {% trans "Save query as" %}
37 </li>
38 <li>
39 <a href="{% url qbe_bookmark %}?data={{ pickled }}" title="{% trans "Drag this yo your bookmarks bar to save this query" %}" id="qbeBookmarkQuery">{% trans "bookmark" %}</a>
40 </li>
41 {% for format in formats %}
42 <li>
43 <a href="{% url qbe_export format %}?hash={{ query_hash }}" title="{% trans "Export to" %} .{{ format }}" id="qbeExport{{ format }}">.{{ format }}</a>
44 </li>
45 {% endfor %}
46 </ul>
47 {% endblock %}
48 <code id="qbeSQL" style="display: none;">
49 {{ query }}
50 </code>
51 <div id="changelist" class="module">
52 <table cellspacing="0">
53 <thead>
54 <tr>
55 {% for label in labels %}
56 <th>{{ label }}</th>
57 {% endfor %}
58 </tr>
59 </thead>
60 <tbody>
61 {% for result_tuple in results %}
62 <tr class="{% cycle 'row1' 'row2' %}">
63 {% if admin_urls %}
64 {% for result, url in result_tuple %}
65 {% if url %}
66 <td><a href={{ url }}>{{ result }}</a></td>
67 {% else %}
68 <td>{{ result }}</td>
69 {% endif %}
70 {% endfor %}
71 {% else %}
72 {% for result in result_tuple %}
73 <td>{{ result }}</a></td>
74 {% endfor %}
75 {% endif %}
76 </tr>
77 {% endfor %}
78 </tbody>
79 </table>
80 <p class="paginator">
81 {% qbe_paginator count limit page %}
82 {{ count|floatformat:0 }} {% trans "result" %}{{ count|floatformat:0|pluralize }}
83 </p>
84 </div>
85 {% endblock %}