aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/global/per-bug-queries.html.tmpl
blob: a7a67853232d42d7e1bf8bea9809497355ca416a (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
[%# 1.0@bugzilla.org %]
[%# The contents of this file are subject to the Mozilla Public
  # License Version 1.1 (the "License"); you may not use this file
  # except in compliance with the License. You may obtain a copy of
  # the License at http://www.mozilla.org/MPL/
  #
  # Software distributed under the License is distributed on an "AS
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  # implied. See the License for the specific language governing
  # rights and limitations under the License.
  #
  # The Original Code is the Bugzilla Bug Tracking System.
  #
  # Contributor(s): Frédéric Buclin <LpSolit@gmail.com>
  #%]

[% IF user.id && user.settings.per_bug_queries.value == "on" %]
  <div id="links-special">
    <div class="label">&nbsp;</div>
    <div class="links">
      <form action="buglist.cgi" method="get">
        <input type="hidden" name="cmdtype" value="doit">
        <input type="hidden" name="remtype" value="asnamed">
        <input type="hidden" name="add_bugids" value="1">
        <input type="submit" value="Add"> [% terms.bugs %]
        <input type="text" name="bug_ids" size="8" maxlength="80"> to
        [% foundq = 0 %]
        [% FOREACH q = user.queries %]
          [% NEXT UNLESS q.query_type == constants.LIST_OF_BUGS %]
          [% IF !foundq %]
            [% foundq = 1 %]
            <select name="oldqueryname">
          [% END %]
          <option value="[% q.name FILTER html %]">
            [% q.name FILTER html %]</option>
        [% END %]
        [% "</select> or to " IF foundq %]
        the new saved search:
        <input type="text" name="newqueryname" size="20" maxlength="64">
      </form>
    </div>
  </div>
[% END %]