[%# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0. #%] [%# INTERFACE: # chart: Chart object representing the currently assembled chart. # category: hash (keyed by category) of hashes (keyed by subcategory) of # hashes (keyed by name), with value being the series_id of the # series. Contains details of all series the user can see. #%] [% PROCESS global/header.html.tmpl title = "Create Chart" style_urls = ['skins/standard/buglist.css'] %] [% PROCESS "reports/series-common.html.tmpl" donames = 1 %] [% gttext = "Grand Total" %]
[% IF NOT category OR category.size == 0 %] [% ELSE %] [% PROCESS series_select sel = { name => 'category', size => 5, onchange = "catSelected(); subcatSelected();" } %] [% PROCESS series_select sel = { name => 'subcategory', size => 5, onchange = "subcatSelected()" } %] [% PROCESS series_select sel = { name => 'name', size => 5, multiple => 1, # We want to use the series ID as value, # not its name. value_in_hash => 1 } %] [% END %]
No data sets exist, or none are visible to you.

List Of Data Sets To Plot

[% IF chart.lines.size %] [%# The external loop has two counters; one which keeps track of where we # are in the old labels array, and one which keeps track of the new # indexes for the form elements. They are different if chart.lines has # empty slots in it. #%] [% labelidx = 0 %] [% newidx = 0 %] [% FOREACH line = chart.lines %] [% IF NOT line %] [%# chart.lines has an empty slot, so chart.labels will too. We # increment labelidx only to keep the labels in sync with the data. #%] [% labelidx = labelidx + 1 %] [% NEXT %] [% END %] [% FOREACH series = line %] [% IF loop.first %] [% END %] [% END %] [% labelidx = labelidx + 1 %] [% newidx = newidx + 1 %] [% END %] [% IF chart.gt %] [% END %]
Select Label Data Set
[% "{" IF line.size > 1 %] [% series.category FILTER html %] / [%+ series.subcategory FILTER html %] / [%+ series.name FILTER html %] [% IF user.id == series.creator_id OR user.in_group("admin") %] Edit | Delete | [% END %] Run Search
[% gttext FILTER html %]
 

: :
[% ELSE %]

None

[% END %]
[% IF user.in_group('editbugs') %]

Create New Data Set

You can either create a new data set based on one of your saved searches or start with a clean slate.

[% END %] [% PROCESS global/footer.html.tmpl %]