Bug 190892: Radio button for "run this query" looks silly if it's the only…

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
parent 681ce77b
...@@ -66,21 +66,30 @@ ...@@ -66,21 +66,30 @@
</script> </script>
<table> <table>
<tr> [% IF namedqueries.size > 0 %]
<td> <tr>
<input type="radio" id="cmdtype-doit" <td>
name="cmdtype" value="doit" checked="checked"> <input type="radio" id="cmdtype-doit"
<label for="cmdtype-doit">Run this search</label> name="cmdtype" value="doit" checked="checked">
</td> <label for="cmdtype-doit">Run this search</label>
<td>&nbsp;</td> </td>
</tr> <td>&nbsp;</td>
</tr>
[% END %]
<tr> <tr>
<td valign="top"> <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" <input type="checkbox" id="remember" name="remember" value="1"
onclick="remCheckboxChanged()"> 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>
<td> <td>
<input type="radio" id="remtype-asnamed" <input type="radio" id="remtype-asnamed"
......
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