Mercurial > public > sg101
comparison gpp/templates/search/search.html @ 276:8a46843c258f
Fixing tickets #119 & #124. All search categories are checked on the search form by default now. Made cosmetic tweaks as suggested in #124.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 30 Sep 2010 00:06:04 +0000 |
parents | a5fcf3d1b663 |
children | d424b8bae71d |
comparison
equal
deleted
inserted
replaced
275:2b14840cb882 | 276:8a46843c258f |
---|---|
2 {% load highlight %} | 2 {% load highlight %} |
3 {% block title %}Search{% endblock %} | 3 {% block title %}Search{% endblock %} |
4 {% block content %} | 4 {% block content %} |
5 <h2>Search <img src="{{ MEDIA_URL }}icons/magnifier.png" alt="Search" /></h2> | 5 <h2>Search <img src="{{ MEDIA_URL }}icons/magnifier.png" alt="Search" /></h2> |
6 <form method="get" action="."> | 6 <form method="get" action="."> |
7 <table> | 7 <table> |
8 {{ form.as_table }} | 8 <tr> |
9 <tr> | 9 <td><input type="text" name="q" id="id_q" /></td> |
10 <td> </td> | 10 <td><input type="submit" value="Search" /></td> |
11 <td> | 11 </tr> |
12 <input type="submit" value="Search"> | 12 </table> |
13 </td> | 13 <fieldset> |
14 </tr> | 14 <legend>Search in:</legend> |
15 </table> | 15 <table> |
16 <tr> | |
17 <td><input type="checkbox" name="models" value="forums.post" checked="checked" />Forum Posts</td> | |
18 <td><input type="checkbox" name="models" value="news.story" checked="checked" />News Stories</td> | |
19 <td><input type="checkbox" name="models" value="bio.userprofile" checked="checked" />User Profiles</td> | |
20 </tr> | |
21 <tr> | |
22 <td><input type="checkbox" name="models" value="weblinks.link" checked="checked" />Links</td> | |
23 <td><input type="checkbox" name="models" value="downloads.download" checked="checked" />Downloads</td> | |
24 <td><input type="checkbox" name="models" value="podcast.item" checked="checked" />Podcasts</td> | |
25 </tr> | |
26 </table> | |
27 </fieldset> | |
28 | |
16 {% if query %} | 29 {% if query %} |
17 <h3>Results</h3> | 30 <h3>Results</h3> |
18 {% if page.object_list %} | 31 {% if page.object_list %} |
19 <dl> | 32 <dl> |
20 {% for result in page.object_list %} | 33 {% for result in page.object_list %} |