summaryrefslogtreecommitdiffstats
path: root/template/en/default/global/choose-classification.html.tmpl
blob: 8433380ea39987a2bc569ded5245cc8a4ebfa509 (plain)
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
[%# 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:
  # classifications: an array of classification objects containing
  #                  at least one product accessible by the user.
  #%]

[% IF target == "enter_bug.cgi" %]
  [% title = "Enter $terms.Bug" %]
  [% subheader = "Select Classification" %]
[% END %]

[% DEFAULT title = "Choose the classification" %]
[% PROCESS global/header.html.tmpl %]

[% USE Bugzilla %]
[% previous_params = Bugzilla.cgi.canonicalise_query('classification') %]

<h2>First, you must pick a classification on which to enter [% terms.abug %]:</h2>
<table id="choose_classification">
  <tr>
    <th class="right">
      <a href="[% target FILTER uri %]?classification=__all
            [%- IF previous_params %]&amp;[% previous_params FILTER none %][% END -%]">
      All</a>:
    </th>

    <td>Show all products</td>
  </tr>
  <tr>
    <th colspan="2">&nbsp;</th>
  </tr>

[% FOREACH class = classifications %]
  <tr>
    <th class="right">
      <a href="[% target FILTER uri %]?classification=[% class.name FILTER uri -%]
            [%- IF previous_params %]&amp;[% previous_params FILTER none %][% END -%]">
      [% class.name FILTER html %]</a>:
    </th>

    [% IF class.description %]
      <td>[% class.description FILTER html_light %]</td>
    [% END %]
  </tr>
[% END %]

</table>

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