From 9f13cc2f7966f423f34e9a8efc146eebf8cfaf0e Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 4 Dec 2009 14:38:45 +0000 Subject: Bug 523759: Template hooks for the Advanced Search form Patch by Max Kanat-Alexander (module owner) a=mkanat --- template/en/default/search/form.html.tmpl | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'template/en/default/search') diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index 72e1cf033..6ee301dd0 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -153,6 +153,7 @@ function doOnSelectProduct(selectmode) { + [% Hook.process('before_selects_top') %] [% IF Param('useclassification') %] [% END %] + [% Hook.process('after_selects_top') %]
@@ -252,6 +253,7 @@ function doOnSelectProduct(selectmode) {
@@ -259,18 +261,24 @@ function doOnSelectProduct(selectmode) { [%# *** Comment URL Whiteboard Keywords *** %] - [% FOREACH field = [ + [% SET freetext_fields = [ { name => "longdesc", description => "A Comment", accesskey => 'c' }, { name => "bug_file_loc", description => "The URL", accesskey => 'u' }, { name => "status_whiteboard", description => "Whiteboard", - accesskey => 'w' } ] %] - - [% UNLESS field.name == 'status_whiteboard' AND NOT Param('usestatuswhiteboard') %] + accesskey => 'w' } + ] %] + + [% Hook.process('before_freetext_fields') %] + [% FOREACH field = freetext_fields %] + [% NEXT IF field.name == 'status_whiteboard' + AND NOT Param('usestatuswhiteboard') + %] - : + : [% type = field.name _ "_type" %] @@ -283,7 +291,6 @@ function doOnSelectProduct(selectmode) { - [% END %] [% END %] [% IF use_keywords %] @@ -321,6 +328,8 @@ function doOnSelectProduct(selectmode) { [% END %] + + [% Hook.process('after_freetext_fields') %] @@ -330,6 +339,7 @@ function doOnSelectProduct(selectmode) { + [% Hook.process('before_selects_bottom') %] + [% Hook.process('after_selects_bottom') %]
@@ -408,6 +418,7 @@ function doOnSelectProduct(selectmode) {
-- cgit v1.2.3-24-g4f1b