PageRenderTime 167ms CodeModel.GetById 164ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/template/en/default/hook/global/user-error-errors.html.tmpl

https://github.com/bayoteers/AgileTools
Go Template | 73 lines | 59 code | 14 blank | 0 comment | 0 complexity | 362e845a7268422238a21b2529638df9 MD5 | raw file
 1[%# This Source Code Form is subject to the terms of the Mozilla Public
 2  # License, v. 2.0. If a copy of the MPL was not distributed with this
 3  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 4  #
 5  # Copyright (C) 2012 Jolla Ltd.
 6  # Contact: Pami Ketolainen <pami.ketolainen@jollamobile.com>
 7  #%]
 8
 9[%# Note that error messages should generally be indented four spaces, like
10  # below, because when Bugzilla translates an error message into plain
11  # text, it takes four spaces off the beginning of the lines.
12  #%]
13[% IF error == "agile_team_exists" %]
14    [% title = "The team already exists" %]
15    The team [% name FILTER html %] already exists.
16
17[% ELSIF error == "agile_missing_field" %]
18    [% title = "Field required" %]
19    Field [% field FILTER html %] is required and you did not provide any.
20
21[% ELSIF error == "agile_invalid_field" %]
22    [% title = "Invalid field" %]
23    Field [% field FILTER html %] has invalid value [% value FILTER html %].
24
25[% ELSIF error == "agile_team_edit_not_allowed" %]
26    [% title = "Team editing denied" %]
27    You are not allowed to edit team [% name FILTER html %]
28
29[% ELSIF error == "agile_bad_responsibility_type" %]
30    [% title = "Unknown responsibility type" %]
31    Responsibility type of [% type FILTER html %] is not supported
32
33[% ELSIF error == "agile_access_denied" %]
34    [% title = "Access denied" %]
35    You are not allowed to access AgileTools on this [% terms.Bugzilla %].
36    Contact admins for adding you to AgileTools user group.
37
38[% ELSIF error == "agile_permission_denied" %]
39    [% title = "Permission denied" %]
40    You are not allowed to '[% permission OR 'do that' FILTER html %]'.
41
42[% ELSIF error == "agile_team_manage_denied" %]
43    [% title = "Access denied" %]
44    You are not allowed to manage teams in AgileTools
45
46[% ELSIF error == "agile_actual_time_required" %]
47    [% title = "Actual time required" %]
48    [% terms.Bugs %] with severity [% Param('agile_check_time_severity').join(', ') %]
49    and resolution [% Param('agile_check_time_resolution').join(', ') %] require
50    that the actual working time is set when closing them.
51
52[% ELSIF error == "agile_sprint_overlap" %]
53    [% title = "Overlapping sprint" %]
54    The selected start dates overlap with [% sprint.name FILTER html %]
55    starting [% sprint.start_date FILTER html %] and
56    ending [% sprint.end_date FILTER html %]
57
58[% ELSIF error == "agile_sprint_end_before_start" %]
59    [% title = "Bad end date" %]
60    The selected end date is before start date.
61
62[% ELSIF error == "agile_sprint_close_not_current" %]
63    [% title = "Cant close sprint" %]
64    The sprint you are trying to close is not current.
65
66[% ELSIF error == "agile_sprint_close_uncommitted" %]
67    [% title = "Can't close uncommited sprint" %]
68    The sprint you are trying to close has not been committed.
69
70[% ELSIF error == "agile_sprint_commit_empty" %]
71    [% title = "Can't commit to empty sprint" %]
72    You can not commit to sprint without any items in it.
73[% END %]