login_menu.tt2 4.22 KB
Newer Older
serge.aumont's avatar
 
serge.aumont committed
1
2
3
<!-- RCS Identication ; $Revision$ ; $Date$ -->

<!-- begin login_menu.tt2 -->
sympa-authors's avatar
sympa-authors committed
4
<div class="MenuBlock">
sympa-authors's avatar
   
sympa-authors committed
5
[% IF user.email %]
sympa-authors's avatar
   
sympa-authors committed
6
<div class="MenuBlock">
sympa-authors's avatar
   
sympa-authors committed
7
<div id="Identity">[% user.email %]<br />
8
9
10
11
12
13
[% IF restore_email %]
  <form class="text_center" action="[% path_cgi %]" method="post">
  <fieldset><input class="MainMenuLinks" type="submit" name="action_restore_email" value="[%|loc%]Restore identity[%END%]" />
  </fieldset>
  </form>	
[%END%]
sympa-authors's avatar
sympa-authors committed
14
15
16
17
18
19
20
[% IF is_listmaster %][%|loc%]Listmaster[%END%]
[% ELSIF is_privileged_owner %][%|loc%]Privileged owner[%END%]
[% ELSIF is_owner %][%|loc%]Owner[%END%]
[% ELSIF is_editor %][%|loc%]Editor[%END%]
[% ELSIF is_subscriber %][%|loc%]Subscriber[%END%]
[% END %]
</div>
21
22
23
[% IF last_login_date %]
	<span>[%|loc(last_login_host,last_login_date)%]last login from %1 <br />(%2)</span>[%END%]
[%END%]
sympa-authors's avatar
   
sympa-authors committed
24

sympa-authors's avatar
   
sympa-authors committed
25
[% IF auth_method == 'md5' %]
26
27
  <form class="text_center" action="[% path_cgi %]" method="post">
  <fieldset>
sympa-authors's avatar
   
sympa-authors committed
28
29
  <input type="hidden" name="action" value="logout" />
  [% IF referer %]
serge.aumont's avatar
 
serge.aumont committed
30
          <input type="hidden" name="referer" value="[% referer %]" />
sympa-authors's avatar
   
sympa-authors committed
31
  [% ELSE %]
serge.aumont's avatar
 
serge.aumont committed
32
          <input type="hidden" name="previous_action" value="[% home %]" />
sympa-authors's avatar
   
sympa-authors committed
33
  [% END %]
sympa-authors's avatar
   
sympa-authors committed
34
  <input class="MainMenuLinks" type="submit" name="action_logout" value="[%|loc%]Logout[%END%]" />
35
  </fieldset>
sympa-authors's avatar
   
sympa-authors committed
36
37
  </form>
[% END %]
sympa-authors's avatar
   
sympa-authors committed
38
39
</div>

sympa-authors's avatar
   
sympa-authors committed
40
[% IF action == 'pref' %][% SET class = 'menuLinksCurrentPage' %][% ELSE %][% SET class = 'menuLinks' %][% END %]
sympa-authors's avatar
   
sympa-authors committed
41
<strong><a class="[% class %]" href="[% path_cgi %]/pref" >[%|loc%]Your preferences[%END%]</a></strong><br />
sympa-authors's avatar
   
sympa-authors committed
42

serge.aumont's avatar
 
serge.aumont committed
43
[% ELSE %]
sympa-authors's avatar
   
sympa-authors committed
44
  <div class="MenuBlock">    
45
        [% IF use_sso %]
serge.aumont's avatar
 
serge.aumont committed
46
      <form action="[% path_cgi %]" method="post"> 
47
	<fieldset>	
serge.aumont's avatar
 
serge.aumont committed
48
49
50
51
52
        <input type="hidden" name="previous_action" value="[% previous_action %]" />
        <input type="hidden" name="previous_list" value="[% previous_list %]" />
	<input type="hidden" name="referer" value="[% referer %]" />
        <input type="hidden" name="list" value="[% list %]" />
	  <input type="hidden" name="action" value="sso_login" />
53
          [% IF sso_number == 1 %]
serge.aumont's avatar
 
serge.aumont committed
54
55
            [% FOREACH server = sso %]
              <input type="hidden" name="auth_service_name" value="[% server.key %]" />
56
57
              <input class="MainMenuLinks" type="submit" name="action_sso_login" value="[% server.value %]" /><br />
           [% END %]
serge.aumont's avatar
 
serge.aumont committed
58
          [% ELSE %]
59
     	    <div class="menuInactive2"><strong><label for="auth_service_name">[%|loc%]Choose your authentication server[%END%]</label></strong></div>
60
            <select id="auth_service_name" name="auth_service_name" onchange="this.form.submit();">
serge.aumont's avatar
 
serge.aumont committed
61
62
63
64
            [% FOREACH server = sso %]
               <option value="[% server.key %]">[% server.value %]</option>
            [% END %]
            </select>
sympa-authors's avatar
   
sympa-authors committed
65
          <input class="MainMenuLinks" type="submit" name="action_sso_login" value="[%|loc%]Go[%END%]" /><br />
66
67
          [% END %] 
 	</fieldset>
68
69
70
71
      </form>
     [% END %] 

      <form action="[% path_cgi %]" method="post"> 
72
	<fieldset>
73
74
75
76
        <input type="hidden" name="previous_action" value="[% previous_action %]" />
        <input type="hidden" name="previous_list" value="[% previous_list %]" />
	<input type="hidden" name="referer" value="[% referer %]" />
        <input type="hidden" name="list" value="[% list %]" />
serge.aumont's avatar
 
serge.aumont committed
77
78

      <input type="hidden" name="action" value="login" />
79
      <label for="email_login">[%|loc%]email address[%END%] :</label><br />
80
      <input type="text" name="email" id="email_login" size="28" value="[% unauthenticated_email %]" /><br />
81
82
      <label for="passwd" >[%|loc%]password[%END%] :</label><br />
      <input type="password" name="passwd" id="passwd" size="8" /> &nbsp;&nbsp;
sympa-authors's avatar
   
sympa-authors committed
83
      <input class="MainMenuLinks" type="submit" name="action_login" value="[%|loc%]Login[%END%]" />
84
	</fieldset>
serge.aumont's avatar
 
serge.aumont committed
85
      </form>
sympa-authors's avatar
   
sympa-authors committed
86
87
  </div>
  <br />
88
[% IF use_passwd == '1' %]
89
90
91
[% IF authentication_info_url %]
   <a class="menuLinks" href="[%conf.authentication_info.url%]">[%|loc%]Authentication help[% END %]</a><br />
[% ELSE %]
sympa-authors's avatar
   
sympa-authors committed
92
93
  <a class="menuLinks" href="[% path_cgi %]/sendpasswd/[% escaped_init_email %]">[%|loc%]First login ?[%END%]</a><br />
  <a class="menuLinks" href="[% path_cgi %]/remindpasswd">[%|loc%]Lost password ?[%END%]</a>
serge.aumont's avatar
 
serge.aumont committed
94
[% END %]
95
[% END %]
96
[% END %]
sympa-authors's avatar
   
sympa-authors committed
97

sympa-authors's avatar
   
sympa-authors committed
98
</div><!-- end div=MenuBlock -->
serge.aumont's avatar
 
serge.aumont committed
99
100
101
102


<!-- end login_menu.tt2 -->