Commit 9f13cc2f authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 523759: Template hooks for the Advanced Search form

Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
parent bc19204d
...@@ -153,6 +153,7 @@ function doOnSelectProduct(selectmode) { ...@@ -153,6 +153,7 @@ function doOnSelectProduct(selectmode) {
<td colspan="4"> <td colspan="4">
<table> <table>
<tr> <tr>
[% Hook.process('before_selects_top') %]
[% IF Param('useclassification') %] [% IF Param('useclassification') %]
<td valign="top"> <td valign="top">
<table> <table>
...@@ -252,6 +253,7 @@ function doOnSelectProduct(selectmode) { ...@@ -252,6 +253,7 @@ function doOnSelectProduct(selectmode) {
</table> </table>
</td> </td>
[% END %] [% END %]
[% Hook.process('after_selects_top') %]
</tr> </tr>
</table> </table>
</td> </td>
...@@ -259,18 +261,24 @@ function doOnSelectProduct(selectmode) { ...@@ -259,18 +261,24 @@ function doOnSelectProduct(selectmode) {
[%# *** Comment URL Whiteboard Keywords *** %] [%# *** Comment URL Whiteboard Keywords *** %]
[% FOREACH field = [ [% SET freetext_fields = [
{ name => "longdesc", description => "A&nbsp;<u>C</u>omment", { name => "longdesc", description => "A&nbsp;<u>C</u>omment",
accesskey => 'c' }, accesskey => 'c' },
{ name => "bug_file_loc", description => "The&nbsp;<u>U</u>RL", { name => "bug_file_loc", description => "The&nbsp;<u>U</u>RL",
accesskey => 'u' }, accesskey => 'u' },
{ name => "status_whiteboard", description => "<u>W</u>hiteboard", { name => "status_whiteboard", description => "<u>W</u>hiteboard",
accesskey => 'w' } ] %] accesskey => 'w' }
] %]
[% UNLESS field.name == 'status_whiteboard' AND NOT Param('usestatuswhiteboard') %]
[% Hook.process('before_freetext_fields') %]
[% FOREACH field = freetext_fields %]
[% NEXT IF field.name == 'status_whiteboard'
AND NOT Param('usestatuswhiteboard')
%]
<tr> <tr>
<th align="right"> <th align="right">
<label for="[% field.name %]" accesskey="[% field.accesskey %]">[% field.description %]</label>: <label for="[% field.name %]"
accesskey="[% field.accesskey %]">[% field.description %]</label>:
</th> </th>
<td> <td>
[% type = field.name _ "_type" %] [% type = field.name _ "_type" %]
...@@ -283,7 +291,6 @@ function doOnSelectProduct(selectmode) { ...@@ -283,7 +291,6 @@ function doOnSelectProduct(selectmode) {
</td> </td>
<td></td> <td></td>
</tr> </tr>
[% END %]
[% END %] [% END %]
[% IF use_keywords %] [% IF use_keywords %]
...@@ -321,6 +328,8 @@ function doOnSelectProduct(selectmode) { ...@@ -321,6 +328,8 @@ function doOnSelectProduct(selectmode) {
</td> </td>
</tr> </tr>
[% END %] [% END %]
[% Hook.process('after_freetext_fields') %]
</table> </table>
...@@ -330,6 +339,7 @@ function doOnSelectProduct(selectmode) { ...@@ -330,6 +339,7 @@ function doOnSelectProduct(selectmode) {
<table> <table>
<tr> <tr>
[% Hook.process('before_selects_bottom') %]
<td> <td>
<table> <table>
<tr> <tr>
...@@ -408,6 +418,7 @@ function doOnSelectProduct(selectmode) { ...@@ -408,6 +418,7 @@ function doOnSelectProduct(selectmode) {
</tr> </tr>
</table> </table>
</td> </td>
[% Hook.process('after_selects_bottom') %]
</tr> </tr>
</table> </table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment