changeset 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 2b14840cb882
children d424b8bae71d
files gpp/templates/search/search.html
diffstat 1 files changed, 22 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/gpp/templates/search/search.html	Mon Sep 27 03:36:58 2010 +0000
+++ b/gpp/templates/search/search.html	Thu Sep 30 00:06:04 2010 +0000
@@ -4,15 +4,28 @@
 {% block content %}
 <h2>Search <img src="{{ MEDIA_URL }}icons/magnifier.png" alt="Search" /></h2>
 <form method="get" action=".">
-  <table>
-      {{ form.as_table }}
-      <tr>
-          <td>&nbsp;</td>
-          <td>
-              <input type="submit" value="Search">
-          </td>
-      </tr>
-  </table>
+<table>
+   <tr>
+      <td><input type="text" name="q" id="id_q" /></td>
+      <td><input type="submit" value="Search" /></td>
+   </tr>
+</table>
+<fieldset>
+<legend>Search in:</legend>
+<table>
+   <tr>
+   <td><input type="checkbox" name="models" value="forums.post" checked="checked" />Forum Posts</td>
+   <td><input type="checkbox" name="models" value="news.story" checked="checked" />News Stories</td>
+   <td><input type="checkbox" name="models" value="bio.userprofile" checked="checked" />User Profiles</td>
+   </tr>
+   <tr>
+   <td><input type="checkbox" name="models" value="weblinks.link" checked="checked" />Links</td>
+   <td><input type="checkbox" name="models" value="downloads.download" checked="checked" />Downloads</td>
+   <td><input type="checkbox" name="models" value="podcast.item" checked="checked" />Podcasts</td>
+   </tr>
+</table>
+</fieldset>
+
   {% if query %}
       <h3>Results</h3>
       {% if page.object_list %}