changeset 1372:6dacf2061124

cosmetic change for language and file type selection
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Fri, 18 Aug 2006 14:41:47 +0200
parents 640e007672ed
children 90cb8fe71cdf
files MoinMoin/macro/AdvancedSearch.py
diffstat 1 files changed, 12 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/AdvancedSearch.py	Fri Aug 18 14:36:03 2006 +0200
+++ b/MoinMoin/macro/AdvancedSearch.py	Fri Aug 18 14:41:47 2006 +0200
@@ -35,7 +35,7 @@
         ''.join([''.join([
             f.table_row(1),
             f.table_cell(1),
-            f.text('%s:' % _(txt)),
+            f.text(_(txt)),
             f.table_cell(0),
             f.table_cell(1),
             f.rawHTML(input_field),
@@ -80,17 +80,20 @@
     search_options = ''.join([
         ''.join([
             f.table_row(1),
-            f.table_cell(1, colspan=3),
-            txt,
+            f.table_cell(1, attrs={'class': 'searchfor'}),
+            txt[0],
+            f.table_cell(0),
+            f.table_cell(1, colspan=2),
+            txt[1],
             f.table_cell(0),
             f.table_row(0),
             ]) for txt in (
-                'Language: ' + lang_dropdown,
-                'File Type: ' + ft_dropdown,
-                '<input type="checkbox" name="titlesearch" value="1">%s</input>' %
-                _('Search only in titles'),
-                '<input type="checkbox" name="case" value="1">%s</input>' %
-                _('Case-sensitive search'))
+                ('Language', lang_dropdown),
+                ('File Type', ft_dropdown),
+                ('', '<input type="checkbox" name="titlesearch" value="1">%s</input>' %
+                _('Search only in titles')),
+                ('', '<input type="checkbox" name="case" value="1">%s</input>' %
+                _('Case-sensitive search')))
     ])
     
     html = [