error.tt2 2.4 KB
Newer Older
1
<!-- error.tt2 -->
IKEDA Soji's avatar
IKEDA Soji committed
2
<div id="ErrorMsg" class="reveal medium" data-reveal
Luc Didry's avatar
Luc Didry committed
3
4
5
     aria-labelledby="[%|loc%]Error[%END%]" aria-hidden="true" role="dialog">
    <div class="alert-box alert radius">
        <i class="fi-x"></i>
6

Luc Didry's avatar
Luc Didry committed
7
8
9
10
11
12
13
14
15
16
17
18
        [%###################-%]
        [%#### INTERN    ERROR -%]
        [%###################-%]
        [% FOREACH i_err = intern_errors %]
            [%|loc(i_err.action)%]INTERNAL SERVER ERROR (%1)[%END-%] -
            [% PROCESS report.tt2
                 report_type='intern'
                 report_entry=i_err.msg
                 report_param=i_err
            %]
            </br>
        [% END %]
19

Luc Didry's avatar
Luc Didry committed
20
21
22
23
24
        [%###################-%]
        [%#### USER    ERROR     -%]
        [%###################-%]
        [% FOREACH u_err = user_errors %]
            [%|loc(u_err.action)%]ERROR (%1) [%END-%] -
25

Luc Didry's avatar
Luc Didry committed
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
            [% error_msg = BLOCK ~%]
                [% PROCESS report.tt2
                     report_type  = 'user'
                     report_entry = u_err.msg
                     report_param = u_err
                %]
            [%~ END ~%]
            [% IF error_msg.match('\S') ~%]
                [% error_msg %]
            [%~ ELSE ~%]
                [% TRY ~%]
                    [% INCLUDE "${u_err.msg}" %]
                [%~ CATCH ~%]
                    [% u_err.msg %]
                [%~ END %]
            [%~ END %]
            <br />
        [% END %]
44

Luc Didry's avatar
Luc Didry committed
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
        [%#####################-%]
        [%# AUTHORIZATION ERROR-%]
        [%#####################-%]
        [% FOREACH auth = auth_rejects %]
            [%|loc(auth.action)%]AUTHORIZATION REJECT (%1)[%END-%]
            [% IF auth.change_email_failed %]
                [%|loc(auth.listname)%]Could not change your subscription address for the list '%1' because your new address is not allowed to subscribe/unsubscribe:[%END%]
            [% END %]
            [% SET reason = auth.msg -%]
            [% IF reason == 'edit_right' %]
                [% SET role  = auth.role -%]
                [% SET right = auth.right -%]
            [% END -%]
            [% PROCESS report.tt2
                 report_type  = 'auth'
                 report_entry = auth.msg
            %]
            [%~ IF auth.login %]
                <br />
                [%|loc%]You need to login[%END%]
            [% END %]
            <br />
        [% END %]
68

Luc Didry's avatar
Luc Didry committed
69
70
        [%# Close button will be inserted here. ~%]
    </div>
lumineau's avatar
lumineau committed
71
</div>
sympa-authors's avatar
sympa-authors committed
72
<!-- end error.tt2 -->