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

13
14
<form action="[% path_cgi %]" method="post">
  <fieldset>
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
    <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>
37

38
    <input class="MainMenuLinks" type="submit" name="action_setpref" value="[%|loc%]Submit[%END%]" />
39

40
41
42
  </fieldset>
</form>
<br />
salaun's avatar
salaun committed
43

sympa-authors's avatar
sympa-authors committed
44

45
<h3>[%|loc%]Changing your email address[%END%]</h3>
sikeda's avatar
sikeda committed
46

47
<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>
48
<form action="[% path_cgi %]" method="post">
49
50
51
52
53
54
55
56
57
  <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>
58
</form>
59
<br />
sympa-authors's avatar
sympa-authors committed
60

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

64
<form action="[% path_cgi %]" method="post">
65
66
67
68
69
  <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>
70
</form>
71
[% END %]
72

73
[% IF session.auth == 'classic' AND conf.allow_account_deletion %]
74
75
76
77
<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 />
78
  [%|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%]
79
80
81
82
83
</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" />
84
    <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>
85
86
87
88
    <br />
    <input class="MainMenuLinks" type="submit" name="action_delete_account" value="[%|loc%]Submit[%END%]" />
  </fieldset>
</form>
89
[% END %]
90

91
92
</div>

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