choose-classification.html.tmpl 1.62 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 15
  #%]

[% IF target == "enter_bug.cgi" %]
  [% title = "Select Classification" %]
16
  [% subheader = "Please select the classification." %]
17 18 19 20 21 22 23
[% END %]

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

<table>
  <tr>
24
    <th>
25 26 27
      <a href="[% target FILTER uri %]?classification=__all
            [% IF cloned_bug_id %]&amp;cloned_bug_id=[% cloned_bug_id FILTER uri %][% END -%] 
            [%- IF format %]&amp;format=[% format FILTER uri %][% END %]">
28 29 30
      All</a>:
    </th>

31
    <td valign="top">&nbsp;Show all products</td>
32 33 34 35
  </tr>
  <tr>
    <th colspan="2">&nbsp;</th>
  </tr>
36

37
[% FOREACH class = classifications %]
38
  <tr>
39
    <th>
40 41 42
      <a href="[% target FILTER uri %]?classification=[% class.name FILTER uri -%]
            [%- IF cloned_bug_id %]&amp;cloned_bug_id=[% cloned_bug_id FILTER uri %][% END -%] 
            [%- IF format %]&amp;format=[% format FILTER uri %][% END %]">
43
      [% class.name FILTER html %]</a>:
44 45
    </th>

46
    [% IF class.description %]
47
      <td valign="top">&nbsp;[% class.description FILTER html_light %]</td>
48 49 50 51 52 53 54
    [% END %]
  </tr>
[% END %]

</table>

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