Removed results action from SearchAdmin. Added support for vanilla django result...
[philo.git] / philo / contrib / sobol / templates / admin / sobol / search / change_form.html
1 {% extends 'admin/change_form.html' %}
2 {% load i18n %}
3
4 {% block javascripts %}{% endblock %}
5 {% block object-tools %}{% endblock %}
6 {% block title %}Results for "{{ original.string }}" | {% trans 'Django site admin' %}{% endblock %}
7 {% block content_title %}<h1>Results for "{{ original.string }}"</h1>{% endblock %}
8 {% block extrastyle %}
9         <style type="text/css">
10                 .favored td{
11                         font-weight:bold;
12                 }
13                 #changelist table{
14                         width:100%;
15                 }
16         </style>
17 {% endblock %}
18
19 {% block content %}
20         <div class="module" id="changelist">
21                 <table>
22                         <thead>
23                                 <tr>
24                                         <th>Weight</th>
25                                         <th>URL</th>
26                                 </tr>
27                         </thead>
28                         <tbody>
29                                 {% for result in original.get_weighted_results %}
30                                 <tr class="{% cycle 'row1' 'row2' %}{% if result in original.get_favored_results %} favored{% endif %}">
31                                         <td>{{ result.weight }}</td>
32                                         <td>{{ result.url }}</td>
33                                 </tr>
34                                 {% endfor %}
35                         </tbody>
36                 </table>
37         </div>
38         {% block submit_row %}
39         <div class="submit-row">
40                 {% if not is_popup and has_delete_permission %}{% if change or show_delete %}<p class="deletelink-box"><a href="delete/" class="deletelink">{% trans "Delete" %}</a></p>{% endif %}{% endif %}
41         </div>
42         {% endblock %}
43 {% endblock %}