Clarified sobol Search framework - now automatically finds result templates at "sobol...
[philo.git] / philo / contrib / sobol / templates / admin / sobol / search / change_form.html
diff --git a/philo/contrib/sobol/templates/admin/sobol/search/change_form.html b/philo/contrib/sobol/templates/admin/sobol/search/change_form.html
new file mode 100644 (file)
index 0000000..2761599
--- /dev/null
@@ -0,0 +1,44 @@
+{% extends 'admin/change_form.html' %}
+{% load i18n %}
+
+{% block javascripts %}{% endblock %}
+{% block object-tools %}{% endblock %}
+{% block title %}Results for "{{ original.string }}" | {% trans 'Django site admin' %}{% endblock %}
+{% block content_title %}<h1>Results for "{{ original.string }}"</h1>{% endblock %}
+{% block extrastyle %}
+       <style type="text/css">
+               .favored td{
+                       font-weight:bold;
+               }
+               #changelist{
+                       border:none;
+                       background:none;
+               }
+       </style>
+{% endblock %}
+
+{% block content %}
+       <div class="module" id="changelist">
+               <table>
+                       <thead>
+                               <tr>
+                                       <th>Weight</th>
+                                       <th>URL</th>
+                               </tr>
+                       </thead>
+                       <tbody>
+                               {% for result in original.get_weighted_results %}
+                               <tr class="{% cycle 'row1' 'row2' %}{% if result in original.get_favored_results %} favored{% endif %}">
+                                       <td>{{ result.weight }}</td>
+                                       <td>{{ result.url }}</td>
+                               </tr>
+                               {% endfor %}
+                       </tbody>
+               </table>
+       </div>
+       <div class="module footer">
+               <ul class="submit-row">
+                       {% 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 %}
+               </ul>
+       </div>
+{% endblock %}
\ No newline at end of file