summaryrefslogtreecommitdiffstats
path: root/extensions/Voting/template/en/default/hook/global/user-error-errors.html.tmpl
blob: 55c32d460a4cd089fb3a5290918a26053f7d1918 (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
[%# 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.
  #%]

[% IF error == "voting_must_be_nonnegative" %]
    [% title = "Votes Must Be Non-negative" %]
    [% admindocslinks = {'voting.html' => 'Setting up the voting feature'} %]
    Only use non-negative numbers for your [% terms.bug %] votes.

[% ELSIF error == "voting_product_illegal_votes" %]
    [% title = "Votes Must Be Non-negative" %]
    [% admindocslinks = {'voting.html' => 'Setting up the voting feature'} %]
    '[% votes FILTER html %]' is an invalid value for the
    <em>
    [% IF field == "votesperuser" %]
      Votes Per User
    [% ELSIF field == "maxvotesperbug" %]
      Maximum Votes Per [% terms.Bug %]
    [% ELSIF field == "votestoconfirm" %]
      Votes To Confirm
    [% END %]
    </em> field, which should contain a non-negative number.

[% ELSIF error == "voting_too_many_votes_for_bug" %]
    [% title = "Illegal Vote" %]
    [% admindocslinks = {'voting.html' => 'Setting up the voting feature'} %]
    You may only use at most [% max FILTER html %] votes for a single
    [%+ terms.bug %] in the
    <tt>[% product FILTER html %]</tt> product, but you are trying to
    use [% votes FILTER html %].

[% ELSIF error == "voting_too_many_votes_for_product" %]
    [% title = "Illegal Vote" %]
    [% admindocslinks = {'voting.html' => 'Setting up the voting feature'} %]
    You tried to use [% votes FILTER html %] votes in the
    <tt>[% product FILTER html %]</tt> product, which exceeds the maximum of
    [%+ max FILTER html %] votes for this product.

[% END %]