choose-classification.html.tmpl 1.63 KB
Newer Older
1 2 3
[%# 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/.
4
  #
5 6
  # This Source Code Form is "Incompatible With Secondary Licenses", as
  # defined by the Mozilla Public License, v. 2.0.
7 8 9
  #%]

[%# INTERFACE:
10 11
  # classifications: an array of classification objects containing
  #                  at least one product accessible by the user.
12 13 14
  #%]

[% IF target == "enter_bug.cgi" %]
15 16
  [% title = "Enter $terms.Bug" %]
  [% subheader = "Select Classification" %]
17 18 19 20 21
[% END %]

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

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

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

34
    <td>Show all products</td>
35 36 37 38
  </tr>
  <tr>
    <th colspan="2">&nbsp;</th>
  </tr>
39

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

48
    [% IF class.description %]
49
      <td>[% class.description FILTER html_light %]</td>
50 51 52 53 54 55 56
    [% END %]
  </tr>
[% END %]

</table>

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