pref.tt2 4.51 KB
Newer Older
1
<!-- pref.tt2 -->
2
<div class="block">
Luc Didry's avatar
Luc Didry committed
3
4
5
6
7
8
9
    <h2>
        <i class="fa fa-user"></i>
        [%|loc%]User preferences[%END%]
        <a class="openInNewWindow" href="[% 'nomenu/help' | url_rel(['user-pref.html']) %]" target="wws_help">
            <i class="fa fa-info-circle" title="[%|loc%]Help[%END%]" target="true"></i>
        </a>
    </h2>
10

Luc Didry's avatar
Luc Didry committed
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
    <form action="[% path_cgi %]" method="post">
        <fieldset>
            <label>[%|loc%]Email:[%END%]  </label>[% user.email %]
            <label for="gecos">[%|loc%]Name:[%END%]  </label>
            <input type="text" id="gecos" name="gecos" size="30" value="[% user.gecos %]" />
            <label for="lang" style="vertical-align:top;">[%|loc%]Language:[%END%]  </label>
            <div>
                <select id="lang" name="lang" class="neutral">
                    [% FOREACH l = languages %]
                        <option value="[% l.key %]" lang="[% l.key %]" xml:lang="[% l.key %]"
                                [%~ IF l.value.selected %] selected="selected"[% END %]>
                            [%~ l.key | optdesc('lang') %]
                        </option>
                    [% END %]
                </select>
            </div>
            <label for="cookie_delay">[%|loc%]Connection expiration period:[%END%]  </label>
            <div>
                <select name="cookie_delay" id="cookie_delay">
                    [% FOREACH period = cookie_periods %]
                        <option value="[% period.value %]"
                                [%~ IF period.selected %] selected="selected"[% END %]>
                            [%~ period.desc %]
                        </option>
                    [% END %]
                </select>
            </div>
38

Luc Didry's avatar
Luc Didry committed
39
            <input class="MainMenuLinks" type="submit" name="action_setpref" value="[%|loc%]Submit[%END%]" />
salaun's avatar
salaun committed
40

Luc Didry's avatar
Luc Didry committed
41
42
43
        </fieldset>
    </form>
    <br />
sympa-authors's avatar
sympa-authors committed
44

sikeda's avatar
sikeda committed
45

Luc Didry's avatar
Luc Didry committed
46
    <h3>[%|loc%]Changing your email address[%END%]</h3>
sympa-authors's avatar
sympa-authors committed
47

Luc Didry's avatar
Luc Didry committed
48
49
50
51
52
53
54
55
56
57
58
59
    <p>[%|loc%]You can update your email address for all your list memberships at once. Any list owner or list moderator email addresses will also be updated.[%END%]</p>
    <form action="[% path_cgi %]" method="post">
        <fieldset>
            <div>
                <label for="new_email">[%|loc%]New email address:[%END%] </label>
                <input id="new_email" name="email" size="25" />
            </div>
            <input type="hidden" name="current_email" value="[% user.email %]" />
            <input class="MainMenuLinks" type="submit" name="action_move_user" value="[%|loc%]Change Email[%END%]" />
        </fieldset>
    </form>
    <br />
60

Luc Didry's avatar
Luc Didry committed
61
62
    [% UNLESS use_sso %]
        <h4>[%|loc%]Changing your password[%END%]</h4>
63

Luc Didry's avatar
Luc Didry committed
64
65
66
67
68
69
70
71
72
73
        <form action="[% path_cgi %]" method="post">
            <fieldset>
                <label for="newpasswd1">[%|loc%]New password:[%END%]  </label>
                <input type="password" name="newpasswd1" id="newpasswd1" size="25" />
                <label for="newpasswd2">[%|loc%]Re-enter your new password:[%END%]  </label>
                <input type="password" name="newpasswd2" id="newpasswd2" size="25" />
                <input class="MainMenuLinks" type="submit" name="action_setpasswd" value="[%|loc%]Submit[%END%]" />
            </fieldset>
        </form>
    [% END %]
74

Luc Didry's avatar
Luc Didry committed
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
    [% IF session.auth == 'classic' AND conf.allow_account_deletion %]
        <h4>[%|loc%]Deleting your account[%END%]</h4>
        <p>
            [%|loc%]Deleting your account will unsubscribe you from all your lists, remove your ownership of your lists and permanently delete your account.[%END%]
            <br />
            [%|loc%]Please, note that you will not be able to delete your account if you are the only owner of one or more lists.[%END%]
        </p>
        <form action="[% path_cgi %]" method="post">
            <fieldset>
                <label for="password_for_account_deletion">[%|loc%]Enter your password:[%END%]</label>
                <input type="password" name="passwd" id="password_for_account_deletion" size="25" />
                <input type="checkbox" name="i_understand_the_consequences" id="i_understand_the_consequences" required>
                <label for="i_understand_the_consequences">
                    [%|loc%]I understand that I will be unsubscribed from all my lists and that my account will be permanently deleted.[%END%]
                </label>
                <br />
                <input class="MainMenuLinks" type="submit" name="action_delete_account" value="[%|loc%]Submit[%END%]" />
            </fieldset>
        </form>
    [% END %]
95
96
</div>

97
<!-- end pref.tt2 -->