summaryrefslogtreecommitdiffstats
path: root/template/en/default/search
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2003-03-24 16:59:58 +0100
committerjustdave%syndicomm.com <>2003-03-24 16:59:58 +0100
commit30beadb614663cc4313b5101f23f55c2ce79893e (patch)
tree569771087fc8fc25758f226793b05e1d0a6b2e99 /template/en/default/search
parent681ce77bc0dc5828eae2bb48471db9e373437e4b (diff)
downloadbugzilla-30beadb614663cc4313b5101f23f55c2ce79893e.tar.gz
bugzilla-30beadb614663cc4313b5101f23f55c2ce79893e.tar.xz
Bug 190892: Radio button for "run this query" looks silly if it's the only choice. Make it a hidden input if it's the only one.
r= Gerv, a= justdave
Diffstat (limited to 'template/en/default/search')
-rw-r--r--template/en/default/search/knob.html.tmpl31
1 files changed, 20 insertions, 11 deletions
diff --git a/template/en/default/search/knob.html.tmpl b/template/en/default/search/knob.html.tmpl
index 4a9de5f16..50e8fc646 100644
--- a/template/en/default/search/knob.html.tmpl
+++ b/template/en/default/search/knob.html.tmpl
@@ -66,21 +66,30 @@
</script>
<table>
- <tr>
- <td>
- <input type="radio" id="cmdtype-doit"
- name="cmdtype" value="doit" checked="checked">
- <label for="cmdtype-doit">Run this search</label>
- </td>
- <td>&nbsp;</td>
- </tr>
-
+ [% IF namedqueries.size > 0 %]
+ <tr>
+ <td>
+ <input type="radio" id="cmdtype-doit"
+ name="cmdtype" value="doit" checked="checked">
+ <label for="cmdtype-doit">Run this search</label>
+ </td>
+ <td>&nbsp;</td>
+ </tr>
+ [% END %]
<tr>
<td valign="top">
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+ [% IF namedqueries.size > 0 %]
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+ [% END %]
<input type="checkbox" id="remember" name="remember" value="1"
onclick="remCheckboxChanged()">
- <label for="remember">and remember it</label>
+ [% IF namedqueries.size > 0 %]
+ <label for="remember">and remember it</label>
+ [% ELSE %]
+ <label for="remember">Remember this search</label>
+ <input type="hidden" id="cmdtype-doit"
+ name="cmdtype" value="doit">
+ [% END %]
</td>
<td>
<input type="radio" id="remtype-asnamed"