summaryrefslogtreecommitdiffstats
path: root/extensions/TrackingFlags/template/en/default/hook/global/user-error-errors.html.tmpl
blob: fb4dffdf91268faaa6cee8aa937e93cbff99b672 (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
57
58
59
60
61
62
[%# 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 == "tracking_flags_change_denied" %]
  [% title = "Tracking Flag Modification Denied" %]
  You tried to update the status of the tracking flag '[% flag.name FILTER html %]'
  [% IF value %] to '[% value FILTER html %]'[% END %].
  Only a user with the required permissions may make this change.

[% ELSIF error == "tracking_flags_missing_mandatory" %]
  [% IF fields.size == 1 %]
    [% title = "Missing mandatory field" %]
    The field "[% fields.first FILTER html %]" is mandatory, and must be provided.
  [% ELSE %]
    [% title = "Missing mandatory fields" %]
    The following fields are mandatory, and must be provided:
    [%+ fields.join(', ') FILTER html %]
  [% END %]

[% ELSIF error == "tracking_flags_cf_prefix" %]
  [% title = "Invalid flag name" %]
  The flag name must start with 'cf_'.

[% ELSIF error == "tracking_flags_duplicate_field" %]
  [% title = "Duplicate field" %]
  A tracking flag field named "[% name FILTER html %]" already exists.

[% ELSIF error == "tracking_flags_missing_values" %]
  [% title = "Missing values" %]
  You must provide at least one value.

[% ELSIF error == "tracking_flags_missing_value" %]
  [% title = "Missing value" %]
  You must provied the value for all values.

[% ELSIF error == "tracking_flags_duplicate_value" %]
  [% title = "Duplicate value" %]
  The value "[% value FILTER html %]" has been provided more than once.

[% ELSIF error == "tracking_flags_missing_visibility" %]
  [% title = "Missing visibility" %]
  You must provide at least one product for visibility.

[% ELSIF error == "tracking_flags_duplicate_visibility" %]
  [% title = "Duplicate visibility" %]
  The visibility '[% name FILTER html %]' has been provided more than once.

[% ELSIF error == "tracking_flags_invalid_flag_type" %]
  [% title = "Invalid flag type" %]
  The flag type '[% type FILTER html %]' is invalid.

[% ELSIF error == "tracking_flag_has_contents" %]
  [% title = "Tracking Flag Has Contents" %]
  The tracking flag '[% flag.name FILTER html %]' cannot be deleted because
  at least one [% terms.bug %] has a non empty value for this field.

[% END %]