Installation de la version modifié de QBE dans src/
[auf_rh_dae.git] / src / qbe / django_qbe / templates / qbe.html
1 {% extends "admin/change_list.html" %}
2 {% load i18n %}
3
4 {% block extrahead %}
5 <!--[if IE]>
6 <script type="text/javascript" src="{% firstof STATIC_URL MEDIA_URL %}django_qbe/js/excanvas.js"></script>
7 <![endif]-->
8 <script type="text/javascript" src="{% firstof STATIC_URL MEDIA_URL %}django_qbe/js/jquery.js"></script>
9 <script type="text/javascript" src="{% firstof STATIC_URL MEDIA_URL %}django_qbe/js/jquery.ui.js"></script>
10 <script type="text/javascript" src="{% firstof STATIC_URL MEDIA_URL %}django_qbe/js/jquery.formset.js"></script>
11 <script type="text/javascript" src="{% firstof STATIC_URL MEDIA_URL %}django_qbe/js/jquery.jsplumb.js"></script>
12 <script type="text/javascript" src="{% firstof STATIC_URL MEDIA_URL %}django_qbe/js/qbe.core.js"></script>
13 <script type="text/javascript" src="{% firstof STATIC_URL MEDIA_URL %}django_qbe/js/qbe.diagram.js"></script>
14 <link rel="stylesheet" type="text/css" href="{{ ADMIN_MEDIA_PREFIX }}css/forms.css" />
15 <link rel="stylesheet" type="text/css" href="{% firstof STATIC_URL MEDIA_URL %}django_qbe/css/qbe.css"/>
16 {% endblock %}
17
18 {% block breadcrumbs %}<div class="breadcrumbs"><a href="{% url admin:index %}">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title }}{% endif %}</div>
19 {% endblock %}
20
21 {% block pretitle %}{% endblock %}
22 {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
23 {% block content %}
24 {% block object-tools %}
25 <ul class="object-tools">
26 <li>
27 <a href="javascript:void(0);" id="qbeDiagramTab">{% trans "Diagram" %}</a>
28 </li>
29 <li>
30 <a href="javascript:void(0);" id="qbeTabularTab">{% trans "Tabular" %}</a>
31 </li>
32 <li>
33 <a class="addlink" href="javascript:void(0);" id="qbeModelsTab">{% trans "Models" %}</a>
34 </li>
35 </ul>
36 {% endblock %}
37
38 <form id="qbeForm" method="post" action="{% url qbe_proxy %}">
39 {% csrf_token %}
40 <div class="qbeContainer qbeDiagram" id="qbeDiagram" style="display: none;">
41 <div id="qbeDiagramContainer"></div>
42 </div>
43 <div class="qbeContainer qbeTabular" id="qbeTabular">
44 <div class="inline-group">
45 <table cellspacing="0" class="tabular" width="100%" id="qbeConditionsTable">
46 <thead>
47 <tr>
48 <th>{% trans "Show" %}</th>
49 <th>{% trans "Model" %}</th>
50 <th>{% trans "Field" %}</th>
51 <th>{% trans "Sort" %}</th>
52 <th>{% trans "Criteria" %}</th>
53 <th>{% trans "Delete" %}</th>
54 </tr>
55 </thead>
56 <tbody>
57 {% for form in formset.forms %}
58 <tr class="{% cycle 'row1' 'row2' %}">
59 <td>{{ form.show.errors }}{{ form.show }}</td>
60 <td>{{ form.model.errors }}{{ form.model }}</td>
61 <td>{{ form.field.errors }}{{ form.field }}</td>
62 <td>{{ form.sort.errors }}{{ form.sort }}</td>
63 <td>{{ form.criteria.errors }}{{ form.criteria }}</td>
64 <td class="delete"></td>
65 </tr>
66 {% endfor %}
67 </tbody>
68 </table>
69 </div>
70
71 <div class="submit-row">
72 {% trans "Show" %} <input type="text" name="limit" id="id_form_limit" value="100"> {% trans "rows" %}
73 <input type="hidden" name="positions" id="id_form_positions">
74 <!-- <input type="button" name="autocomplete" id="autocomplete" value="{% trans "Auto complete" %}">-->
75 <!-- <select name="autocompletionOptions" id="autocompletionOptions" style="display: none;"></select>-->
76 <input type="submit" name="_save" class="default" value="{% trans "Run" %}">
77 </div>
78
79 <div >
80 {% trans "Database" %}
81 <select name="database_alias" id="id_database_alias">
82 {% for db_alias, database_properties in databases.items %}
83 {% ifequal database_alias db_alias %}
84 <option value="{{ db_alias }}" selected="selected">{{ db_alias }}: {{ database_properties.NAME }} ({{ database_properties.ENGINE }})</option>
85 {% else %}
86 <option value="{{ db_alias }}">{{ db_alias }}: {{ database_properties.NAME }} ({{ database_properties.ENGINE }})</option>
87 {% endifequal %}
88 {% endfor %}
89 </select>
90 </div>
91
92
93 </div>
94
95 <div id="changelist-filter" class="qbeModelList module">
96 <h2>{% trans "Models" %}</h2>
97 {% for app_name, app_models in models.items %}
98 <h3>{{ app_name }}</h3>
99 <ul>
100 {% for model_name, model in app_models.items %}
101 <li id="qbeModelItem_{{ model_name }}"><a id="qbeModelAnchor_{{ app_name }}.{{ model_name }}" href="javascript:void(0);" class="qbeModelAnchor">{{ model_name }}</a></li>
102 {% endfor %}
103 </ul>
104 {% endfor %}
105 </div>
106
107 {{ formset.management_form }}
108 </form>
109
110 <script>
111 {% include "qbe.js" %}
112 </script>
113
114 {% endblock %}
115 {% block sidebar %}{% endblock %}