diff options
author | Yorhel <git@yorhel.nl> | 2009-05-31 17:47:10 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-05-31 17:47:10 +0200 |
commit | 2573d3d310e3636f466e1d0bd97c52882fb8b7c0 (patch) | |
tree | d0b23ff4b6e213285365d587a3640b7b2b565172 /lib/VNDB/Handler/Tags.pm | |
parent | 776743c0b8f1adb6f6335b7c1bb30323879cf98c (diff) |
Tabs on v/r/p/g search fields
This should make a nice connection between the few kinds of database
entries we have.
Diffstat (limited to 'lib/VNDB/Handler/Tags.pm')
-rw-r--r-- | lib/VNDB/Handler/Tags.pm | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/VNDB/Handler/Tags.pm b/lib/VNDB/Handler/Tags.pm index 6838e7c7..a6d02698 100644 --- a/lib/VNDB/Handler/Tags.pm +++ b/lib/VNDB/Handler/Tags.pm @@ -368,11 +368,8 @@ sub taglist { div class => 'mainbox'; h1 $title; form action => '/g/list', 'accept-charset' => 'UTF-8', method => 'get'; - fieldset class => 'search'; - input type => 'hidden', name => 't', value => $f->{t}; - input type => 'text', name => 'q', id => 'q', class => 'text', value => $f->{q}; - input type => 'submit', class => 'submit', value => 'Search!'; - end; + input type => 'hidden', name => 't', value => $f->{t}; + $self->htmlSearchBox('g', $f->{q}); end; p class => 'browseopts'; a href => "/g/list?q=$f->{q};t=-1", $f->{t} == -1 ? (class => 'optselected') : (), 'All'; @@ -590,10 +587,7 @@ sub tagindex { a class => 'addnew', href => "/g/new", ($self->authCan('tagmod')?'Create':'Request').' new tag' if $self->authCan('tag'); h1 'Search tags'; form action => '/g/list', 'accept-charset' => 'UTF-8', method => 'get'; - fieldset class => 'search'; - input type => 'text', name => 'q', id => 'q', class => 'text'; - input type => 'submit', class => 'submit', value => 'Search!'; - end; + $self->htmlSearchBox('g', ''); end; end; |