]> git.donarmstrong.com Git - debbugs.git/blob - templates/en_US/cgi/pkgreport_options.tx
Switch from Text::Template to Text::Xslate
[debbugs.git] / templates / en_US / cgi / pkgreport_options.tx
1 <form method="GET">
2     <input type="hidden" name="_fo_combine_key_fo_searchkey_value_fo_searchvalue" value="1">
3     <input type="hidden" name="form_options" value="1">
4     <table class="forms">
5         <tr><td><h2>Select bugs</h2>
6         </td>
7         <td>
8             : for $search_key_order -> $key {
9                 : if defined $param[$key] { 
10                 : for $param[$key] -> $value {
11                 : include "cgi/pkgreport_options_search_key.tx" { search => $key, search_value => $value };
12                 : }
13                 : }
14             : }
15             : include "cgi/pkgreport_options_search_key.tx";
16         </td>
17         <td>
18             <p>The same search fields are ORed, different fields are ANDed.</p>
19             <p>Valid severities are <: $config.show_severities :></p>
20             <p>Valid tags are <: $config.tags.join(', ') :></p>
21         </td>
22         </tr>
23         <tr><td><h2>Include Bugs</h2></td>
24             <td>
25                 : include "cgi/pkgreport_options_include_exclude.tx" { incexc => "include" };
26             </td>
27             <td></td>
28         </tr>
29         <tr><td><h2>Exclude Bugs</h2></td>
30             <td>
31                 : include "cgi/pkgreport_options_include_exclude.tx" { incexc => "exclude" };
32             </td>
33             <td></td>
34         </tr>
35         <tr><td><h2>Categorize/<wbr>Order using</h2></td>
36             <td><select name="ordering">
37                     : for $param.orderings -> $order {
38                     <option value="<: $order :>"
39                                 : if $order == $param.ordering {
40                                 selected
41                     : }
42             ><:- $order -:></option>
43                     : }
44             </select>
45             </td>
46             <td></td>
47         </tr>
48         <tr><td><h2>Misc options</h2></td>
49             <td>
50                 : macro input_checkbox ->($what,$text) {
51                 <input type="checkbox" name="<: $what :>"
52                        : if defined($param[$what]) and $param[$what] {
53                            checked
54                : }
55                 ><:- $text -:><br>
56                 : }
57                 <:- input_checkbox("repeatmerged","Repeat Merged") :>
58                 <:- input_checkbox("bug-rev","Reverse Bugs") :>
59                 <:- input_checkbox("pend-rev","Reverse Pending") :>
60                 <:- input_checkbox("sev-rev","Reverse Severity") :>
61                 <:- input_checkbox("noaffects","No Bugs which affect packages") :>
62                 <select name="dist">
63                     <: output_select_options(['' => 'None',
64                             $config.distributions],
65                                                         ,$param.dist // '') -:>
66                 </select><br>
67                 <select name="archive">
68                     <: output_select_options([0 => 'Unarchived',
69                             1 => 'Archived', 
70                             both => 'Archived and Unarchived',
71                        ],$param.archive//0) -:></select><br>
72                 <a href="javascript:toggle_extra_status_visible()">
73                     Toggle all extra information</a>
74             </td>
75         </tr>
76         <tr><td><h2>Submit</h2></td><td colspan=2>
77             <input type="submit" name="submit" value="Submit">
78         </td></tr>
79     </table>
80 </form>