Ajout champ Etat pour actif/inactif/etc...
[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>État</th>
51 <th>{% trans "Field" %}</th>
52 <th>{% trans "Sort" %}</th>
53 <th>{% trans "Criteria" %}</th>
54 <th>{% trans "Delete" %}</th>
55 </tr>
56 </thead>
57 <tbody>
58 {% for form in formset.forms %}
59 <tr class="{% cycle 'row1' 'row2' %}">
60 <td>{{ form.show.errors }}{{ form.show }}</td>
61 <td>{{ form.model.errors }}{{ form.model }}</td>
62 <td>{{ form.status.errors }}{{ form.status }}</td>
63 <td>{{ form.field.errors }}{{ form.field }}</td>
64 <td>{{ form.sort.errors }}{{ form.sort }}</td>
65 <td>{{ form.criteria.errors }}{{ form.criteria }}</td>
66 <td class="delete"></td>
67 </tr>
68 {% endfor %}
69 </tbody>
70 </table>
71 </div>
72
73 <div class="submit-row">
74 {% trans "Show" %} <input type="text" name="limit" id="id_form_limit" value="100"> {% trans "rows" %}
75 <input type="hidden" name="positions" id="id_form_positions">
76 <!-- <input type="button" name="autocomplete" id="autocomplete" value="{% trans "Auto complete" %}">-->
77 <!-- <select name="autocompletionOptions" id="autocompletionOptions" style="display: none;"></select>-->
78 <input type="submit" name="_save" class="default" value="{% trans "Run" %}">
79 </div>
80
81 {% if display_databases %}
82 <div >
83 {% trans "Database" %}
84 <select name="database_alias" id="id_database_alias">
85 {% for db_alias, database_properties in databases.items %}
86 {% ifequal database_alias db_alias %}
87 <option value="{{ db_alias }}" selected="selected">{{ db_alias }}: {{ database_properties.NAME }} ({{ database_properties.ENGINE }})</option>
88 {% else %}
89 <option value="{{ db_alias }}">{{ db_alias }}: {{ database_properties.NAME }} ({{ database_properties.ENGINE }})</option>
90 {% endifequal %}
91 {% endfor %}
92 </select>
93 </div>
94 {% endif %}
95
96
97 </div>
98
99 <div id="changelist-filter" class="qbeModelList module">
100 <h2>{% trans "Models" %}</h2>
101 {% for app_name, app_models in models.items %}
102 <h3>{{ app_name }}</h3>
103 <ul>
104 {% for model_name, model in app_models.items %}
105 <li id="qbeModelItem_{{ model_name }}"><a id="qbeModelAnchor_{{ app_name }}.{{ model_name }}" href="javascript:void(0);" class="qbeModelAnchor">{{ model_name }}</a></li>
106 {% endfor %}
107 </ul>
108 {% endfor %}
109 </div>
110
111 {{ formset.management_form }}
112 </form>
113
114 <script>
115 {% include "qbe.js" %}
116 </script>
117
118 {% endblock %}
119 {% block sidebar %}{% endblock %}