Routeur: Ajout temporaire des modules workflow et dae en écriture
[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 }}{{ form.status }}</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 {% if display_databases %}
80 <div >
81 {% trans "Database" %}
82 <select name="database_alias" id="id_database_alias">
83 {% for db_alias, database_properties in databases.items %}
84 {% ifequal database_alias db_alias %}
85 <option value="{{ db_alias }}" selected="selected">{{ db_alias }}: {{ database_properties.NAME }} ({{ database_properties.ENGINE }})</option>
86 {% else %}
87 <option value="{{ db_alias }}">{{ db_alias }}: {{ database_properties.NAME }} ({{ database_properties.ENGINE }})</option>
88 {% endifequal %}
89 {% endfor %}
90 </select>
91 </div>
92 {% endif %}
93
94
95 </div>
96
97 <div id="changelist-filter" class="qbeModelList module">
98 <h2>{% trans "Models" %}</h2>
99 {% for app_name, app_models in models.items %}
100 <h3>{{ app_name }}</h3>
101 <ul>
102 {% for model_name, model in app_models.items %}
103 <li id="qbeModelItem_{{ model_name }}"><a id="qbeModelAnchor_{{ app_name }}.{{ model_name }}" href="javascript:void(0);" class="qbeModelAnchor">{{ model_name }}</a></li>
104 {% endfor %}
105 </ul>
106 {% endfor %}
107 </div>
108
109 {{ formset.management_form }}
110 </form>
111
112 <script>
113 {% include "qbe.js" %}
114 </script>
115
116 {% endblock %}
117 {% block sidebar %}{% endblock %}