File: pkgreport_options.tmpl

package info (click to toggle)
debbugs 2.6.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,800 kB
  • sloc: perl: 19,270; makefile: 81; sh: 75
file content (85 lines) | stat: -rw-r--r-- 2,763 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<form method="GET">
<input type="hidden" name="_fo_combine_key_fo_searchkey_value_fo_searchvalue" value="1">
<input type="hidden" name="form_options" value="1">
<table class="forms">
<tr><td><h2>Select bugs</h2>
</td>
<td>
{ my $output = '';
our $value_index = 0;
our $search = '';
our $search_value = '';
for my $key (@search_key_order){
   if (exists $param{$key}){
        for my $value (make_list($param{$key})){
           $search = $key;
	   $search_value = $value;
      	   $output .= include('cgi/pkgreport_options_search_key');
	   $output .= '<br>';
	   $value_index++;
        }
   }
 }
 $search = '';
 $search_value = '';
 $output;
}
{include('cgi/pkgreport_options_search_key')}
</td>
<td>
<p>The same search fields are ORed, different fields are ANDed.</p>
<p>Valid severities are {$config{show_severities}}</p>
<p>Valid tags are {join(', ',@{$config{tags}})}</p>
</td>
</tr>
<tr><td><h2>Include Bugs</h2></td>
<td>{our $incexc = 'include';
include('cgi/pkgreport_options_include_exclude');
}</td>
<td></td>
</tr>
<tr><td><h2>Exclude Bugs</h2></td>
<td>
{our $incexc = 'exclude';
include('cgi/pkgreport_options_include_exclude');
}
</td>
<td></td>
</tr>
<tr><td><h2>Categorize/<wbr>Order using</h2></td>
<td><select name="ordering">{ my $output = '';
  for my $order (@{$param{orderings}}) {
    $output .= '<option value="'.$order.'"'.(($order eq $param{ordering})?' selected':'').
     ">$order</option>\n";
  }
$output;
}</td>
<td></td>
</tr>
<tr><td><h2>Misc options</h2></td>
<td>
<input type="checkbox" name="repeatmerged" {exists $param{repeatmerged} and $param{repeatmerged}?' checked':''}> Repeat Merged<br>
<input type="checkbox" name="bug-rev" {exists $param{"bug-rev"} and $param{"bug-rev"}?' checked':''}> Reverse Bugs<br>
<input type="checkbox" name="pend-rev" {exists $param{"pend-rev"} and $param{"pend-rev"}?' checked':''}> Reverse Pending<br>
<input type="checkbox" name="sev-rev" {exists $param{"sev-rev"} and $param{"sev-rev"}?' checked':''}> Reverse Severity<br>
<input type="checkbox" name="noaffects" {exists $param{"noaffects"} and $param{"noaffects"}?' checked':''}> No Bugs which affect packages<br>
<select name="dist">
{output_select_options(['' => 'None',
                        map {($_,$_)} @{$config{distributions}},
                       ],$param{dist}||'')
}</select><br>
<select name="archive">
{output_select_options([0 => 'Unarchived',
                        1 => 'Archived', 
                        both => 'Archived and Unarchived',
                       ],$param{archive}||0)
}</select><br>
<a href="javascript:toggle_extra_status_visible()">Toggle all extra information</a>
</td>
</tr>
<tr><td><h2>Submit</h2></td><td colspan=2>
<input type="submit" name="submit" value="Submit">
</td></tr>
</table>