changeset 398:a9b78e0231c6

Remove small search field at top right on search result template
author Michael Mayorov <marchael@kb.csu.ru>
date Fri, 05 Aug 2011 01:14:40 +0000
parents 65c2c01aa266
children fdd1b2dec689
files MoinMoin/apps/frontend/views.py MoinMoin/templates/search_results.html
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Fri Aug 05 01:12:46 2011 +0000
+++ b/MoinMoin/apps/frontend/views.py	Fri Aug 05 01:14:40 2011 +0000
@@ -146,7 +146,7 @@
         return render_template('search_results.html',
                                results=results,
                                query=query,
-                               search_form=search_form
+                               medium_search_form=search_form
                               )
 
 
--- a/MoinMoin/templates/search_results.html	Fri Aug 05 01:12:46 2011 +0000
+++ b/MoinMoin/templates/search_results.html	Fri Aug 05 01:14:40 2011 +0000
@@ -4,12 +4,12 @@
     <p class="searchhint">
         {# TODO: make a search tip here #}
     </p>
-    {{ gen.form.open(search_form, id='moin-long-searchform', method='get', action=url_for('frontend.show_item', item_name=item_name)) }}
+    {{ gen.form.open(medium_search_form, id='moin-long-searchform', method='get', action=url_for('frontend.show_item', item_name=item_name)) }}
         <div>
-            {{ gen.input(search_form['q'], type='search', id='moin-search-query') }}
-            {{ gen.input(search_form['submit'], type='submit') }}
-            {{ gen.input(search_form['pagelen'], type='hidden', value='25') }}
-            {{ forms.render_errors(search_form) }}
+            {{ gen.input(medium_search_form['q'], type='search', id='moin-search-query') }}
+            {{ gen.input(medium_search_form['submit'], type='submit') }}
+            {{ gen.input(medium_search_form['pagelen'], type='hidden', value='25') }}
+            {{ forms.render_errors(medium_search_form) }}
         </div>
     {{ gen.form.close() }}
     {% if results %}