~ubuntu-branches/ubuntu/edgy/bugzilla/edgy

« back to all changes in this revision

Viewing changes to template/en/default/search/search-report-graph.html.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Alexis Sukrieh
  • Date: 2005-10-03 16:51:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051003165101-38n0y5qofd68vole
Tags: 2.18.4-1
* New upstream minor release
  + Fixed a security issue: It was possible to bypass the "user
    visibility groups" restrictions if user-matching was turned on
    in "substring" mode.
  + Fixed a security issue: config.cgi exposed information to users who
    weren't logged in, even when "requirelogin" was turned on in Bugzilla.
  (closes: #331206)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[%# 1.0@bugzilla.org %]
 
2
[%# The contents of this file are subject to the Mozilla Public
 
3
  # License Version 1.1 (the "License"); you may not use this file
 
4
  # except in compliance with the License. You may obtain a copy of
 
5
  # the License at http://www.mozilla.org/MPL/
 
6
  #
 
7
  # Software distributed under the License is distributed on an "AS
 
8
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 
9
  # implied. See the License for the specific language governing
 
10
  # rights and limitations under the License.
 
11
  #
 
12
  # The Original Code is the Bugzilla Bug Tracking System.
 
13
  #
 
14
  # The Initial Developer of the Original Code is Netscape Communications
 
15
  # Corporation. Portions created by Netscape are
 
16
  # Copyright (C) 1998 Netscape Communications Corporation. All
 
17
  # Rights Reserved.
 
18
  #
 
19
  # Contributor(s): Gervase Markham <gerv@gerv.net>
 
20
  #%]
 
21
 
 
22
[%# INTERFACE:
 
23
  # This template has no interface. However, to use it, you need to fulfill
 
24
  # the interfaces of the templates it contains.
 
25
  #%]
 
26
 
 
27
[% PROCESS global/variables.none.tmpl %]
 
28
 
 
29
[% PROCESS global/header.html.tmpl
 
30
  title = "Generate Graphical Report"
 
31
  onload = "selectProduct(document.forms['reportform']);chartTypeChanged()"
 
32
%]
 
33
 
 
34
[% PROCESS "search/search-report-select.html.tmpl" %]
 
35
 
 
36
<p>
 
37
  Choose one or more fields as your axes, and then refine your set of 
 
38
  [% terms.bugs %] using the rest of the form.
 
39
</p>
 
40
 
 
41
<script type="text/javascript"><!--
 
42
  [%# The Y-axis fields are not used for pie charts %]
 
43
  function chartTypeChanged() {
 
44
    // format[2] is the pie chart radio button
 
45
    if (document.reportform.format[2].checked == true) {
 
46
      document.reportform.y_axis_field.disabled = true;
 
47
      document.reportform.cumulate[0].disabled = true;
 
48
      document.reportform.cumulate[1].disabled = true;
 
49
    } else {
 
50
      document.reportform.y_axis_field.disabled = false;
 
51
      document.reportform.cumulate[0].disabled = false;
 
52
      document.reportform.cumulate[1].disabled = false;
 
53
    }
 
54
  }
 
55
// -->
 
56
</script>
 
57
 
 
58
[% button_name = "Generate Report" %]
 
59
 
 
60
<form method="get" action="report.cgi" name="reportform">
 
61
 
 
62
<table align="center">
 
63
  <tr>
 
64
    <td valign="middle">
 
65
      <b>Vertical Axis:</b><br>
 
66
      <noscript><small>(not for pie charts)</small><br></noscript>
 
67
      [% PROCESS select name = 'y_axis_field' %]<br>
 
68
      <br>
 
69
        <b>Plot Data Sets:</b><br>
 
70
        <input type="radio" name="cumulate" value="0"
 
71
        [% " checked" IF default.cumulate.0 != "1" %]>
 
72
        Individually<br>
 
73
        <input type="radio" name="cumulate" value="1"
 
74
        [% " checked" IF default.cumulate.0 == "1" %]>
 
75
        Summed
 
76
    </td>
 
77
    <td width="150" height="150">
 
78
      <table border="1" width="100%" height="100%">
 
79
        <tr>
 
80
          <td align="center" valign="middle">
 
81
            <b>Multiple Images:</b><br>
 
82
            [% PROCESS select name = 'z_axis_field' %]
 
83
          </td>
 
84
        </tr>
 
85
      </table>
 
86
    </td>
 
87
    <td rowspan="2">
 
88
      <b>Format:</b><br>
 
89
      [% chart_formats = [
 
90
        { name => "line", description => "Line Graph" },
 
91
        { name => "bar",  description => "Bar Chart" },
 
92
        { name => "pie",  description => "Pie Chart" } ] %]
 
93
      [% default.chart_format.0 = default.chart_format.0 || "bar" %]
 
94
 
 
95
      [% FOREACH chart_format = chart_formats %]
 
96
        <input type="radio" name="format"
 
97
               value="[% chart_format.name FILTER html %]"
 
98
               onchange="chartTypeChanged()"
 
99
          [% " checked" IF default.chart_format.0 == chart_format.name %]>
 
100
          [% chart_format.description FILTER html %]<br>
 
101
      [% END %]
 
102
    </td>
 
103
  </tr>
 
104
 
 
105
  <tr>
 
106
    <td>
 
107
    </td>
 
108
    <td align="left">
 
109
      <b>Horizontal Axis:</b>
 
110
      [% PROCESS select name = 'x_axis_field' %]<br>
 
111
      <label for="x_labels_vertical"><b>Vertical labels:</b></label>
 
112
      <input type="checkbox" name="x_labels_vertical" id="x_labels_vertical"
 
113
             value="1"
 
114
         [% " checked" IF default.x_labels_vertical.0 == "1" %]>
 
115
     </td>
 
116
    <td>
 
117
    </td>
 
118
  </tr>
 
119
</table>
 
120
 
 
121
<hr>
 
122
 
 
123
[% PROCESS search/form.html.tmpl %]
 
124
 
 
125
<br>
 
126
<input type="submit" value="[% button_name FILTER html %]">
 
127
<input type="hidden" name="action" value="wrap">
 
128
<hr>
 
129
 
 
130
[% PROCESS "search/boolean-charts.html.tmpl" %]
 
131
 
 
132
</form>
 
133
 
 
134
[% PROCESS global/footer.html.tmpl %]