1 {% extends
"admin/change_list.html" %}
6 <script type="text/javascript" src="{% firstof STATIC_URL MEDIA_URL %}django_qbe/js/excanvas.js"></script>
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"/>
18 {% block breadcrumbs %}
<div class=
"breadcrumbs"><a href=
"{% url admin:index %}">{% trans 'Home' %}
</a>{% if title %}
› {{ title }}{% endif %}
</div>
21 {% block pretitle %}{% endblock %}
22 {% block content_title %}{% if title %}
<h1>{{ title }}
</h1>{% endif %}{% endblock %}
24 {% block object-tools %}
25 <ul class=
"object-tools">
27 <a href=
"javascript:void(0);" id=
"qbeDiagramTab">{% trans
"Diagram" %}
</a>
30 <a href=
"javascript:void(0);" id=
"qbeTabularTab">{% trans
"Tabular" %}
</a>
33 <a class=
"addlink" href=
"javascript:void(0);" id=
"qbeModelsTab">{% trans
"Models" %}
</a>
38 <form id=
"qbeForm" method=
"post" action=
"{% url qbe_proxy %}">
40 <div class=
"qbeContainer qbeDiagram" id=
"qbeDiagram" style=
"display: none;">
41 <div id=
"qbeDiagramContainer"></div>
43 <div class=
"qbeContainer qbeTabular" id=
"qbeTabular">
44 <div class=
"inline-group">
45 <table cellspacing=
"0" class=
"tabular" width=
"100%" id=
"qbeConditionsTable">
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>
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>
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
" %}">
79 {% if display_databases %}
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>
87 <option value=
"{{ db_alias }}">{{ db_alias }}: {{ database_properties.NAME }} ({{ database_properties.ENGINE }})
</option>
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>
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>
109 {{ formset.management_form }}
113 {% include
"qbe.js" %}
117 {% block sidebar %}{% endblock %}