Clarified sobol Search framework - now automatically finds result templates at "sobol...
[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{
14                         border:none;
15                         background:none;
16                 }
17         </style>
18 {% endblock %}
19
20 {% block content %}
21         <div class="module" id="changelist">
22                 <table>
23                         <thead>
24                                 <tr>
25                                         <th>Weight</th>
26                                         <th>URL</th>
27                                 </tr>
28                         </thead>
29                         <tbody>
30                                 {% for result in original.get_weighted_results %}
31                                 <tr class="{% cycle 'row1' 'row2' %}{% if result in original.get_favored_results %} favored{% endif %}">
32                                         <td>{{ result.weight }}</td>
33                                         <td>{{ result.url }}</td>
34                                 </tr>
35                                 {% endfor %}
36                         </tbody>
37                 </table>
38         </div>
39         <div class="module footer">
40                 <ul class="submit-row">
41                         {% if not is_popup and has_delete_permission %}{% if change or show_delete %}<li class="left delete-link-container"><a href="delete/" class="delete-link">{% trans "Delete" %}</a></li>{% endif %}{% endif %}
42                 </ul>
43         </div>
44 {% endblock %}