Commit c98d2354 authored by sikeda's avatar sikeda
Browse files

[-dev] Starting to repair new skin.

- login_menu.tt2: Show roles by three criteria: listmaster, any of admin and subscriber.
- If sso is used, password would not need to be changed.


git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@11852 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 2a39dec4
<!-- $Id$ -->
[% IF conf.logo_html_definition %]
<div id="logo" >[% conf.logo_html_definition %]</div>
<div id="logo" >[% conf.logo_html_definition %]</div>
[% ELSE %]
<div id="logo" ><a href="[% conf.wwsympa_url %]" title="[% conf.wwsympa_url %]"><img src="[% icons_url %]/logo_sympa.png" alt="[%|loc%]SYMPA logo[%END%]" /></a></div>
<div id="logo" ><a href="[% conf.wwsympa_url %]" title="[% conf.wwsympa_url %]"><img src="[% icons_url %]/logo_sympa.png" alt="[%|loc%]SYMPA logo[%END%]" /></a></div>
[% END %]
<div id="top"><a class="displayNone" href="#content-inner">[%|loc%]Skip to Content.[%END%]</a></div>
<div id="top"><a class="displayNone" href="#content-inner">[%|loc%]Skip to Content.[%END%]</a></div>
<div id="bandeau_top">
[% IF user.email %]
<h2>[%|loc%]User Information[%END%]</h2>
<div id="Identity">
[% user.email %]&nbsp; <br/>
[% IF is_listmaster %][%|loc%]Role:&nbsp;[%END%][%|loc%]Listmaster[%END%]
[% ELSIF is_privileged_owner %][%|loc%]Role:&nbsp;[%END%][%|loc%]Privileged owner[%END%]
[% ELSIF is_owner %][%|loc%]Role:&nbsp;[%END%][%|loc%]Owner[%END%]
[% ELSIF is_editor %][%|loc%]Role:&nbsp;[%END%][%|loc%]Editor[%END%]
[% ELSIF is_subscriber %][%|loc%]Role:&nbsp;[%END%][%|loc%]Subscriber[%END%]
[% END %]
<br />
[% IF restore_email %]
<form class="text_center" style="padding-top: 1em;" action="[% path_cgi %]" method="post">
<fieldset>
<input class="MainMenuLinks" type="submit" name="action_restore_email" value="[%|loc%]Restore identity[%END%]" />
</fieldset>
</form>
[%END%]
[% IF last_login_date %]
<span>[%|loc(last_login_host)%]last login from %1[%END%] &nbsp;&nbsp; ([% last_login_date %])</span>
[%END%]
</div>
<div class="prefs">
<ul id="MainMenuLinks">
<li><a href="[% path_cgi %]/pref">[%|loc%]My preferences[%END%]</a></li>
<li><a href="[% path_cgi %]/my" onclick="show('loading'); hide('content-inner');">[%|loc%]My lists[%END%]</a></li>
</ul>
</div>
[% IF auth_method == 'md5' %]
<div class="login">
<form action="[% path_cgi %]" method="post">
<fieldset>
<input type="hidden" name="action" value="logout" />
[% IF referer %]
<input type="hidden" name="referer" value="[% referer %]" />
[% ELSE %]
<input type="hidden" name="previous_action" value="[% home %]" />
[% END %]
<input class="MainMenuLinks" type="submit" name="action_logout" value="[%|loc%]Logout[%END%]" />
</fieldset>
</form>
</div>
[% END %]
<h2>[%|loc%]User Information[%END%]</h2>
<div id="Identity">
[% user.email %]&nbsp; <br/>
[% IF is_listmaster || is_privileged_owner || is_owner || is_editor || is_subscriber %]
[%|loc%]Role:&nbsp;[%END%][% IF is_listmaster ~%]
[%|loc%]Listmaster[%END%][% IF is_privileged_owner || is_owner || is_editor || is_subscriber %][%|loc%], [%END%][% END ~%]
[% END ~%]
[% IF is_privileged_owner ~%]
[%|loc%]Privileged owner[%END%][% IF is_subscriber %][%|loc%], [%END%][% END ~%]
[% ELSIF is_owner ~%]
[%|loc%]Owner[%END%][% IF is_subscriber %][%|loc%], [%END%][% END ~%]
[% ELSIF is_editor ~%]
[%|loc%]Editor[%END%][% IF is_subscriber %][%|loc%], [%END%][% END ~%]
[% END ~%]
[% IF is_subscriber ~%]
[%|loc%]Subscriber[%END%]
[% END %]
<br />
[% END %]
[% IF restore_email %]
<form class="text_center" style="padding-top: 1em;" action="[% path_cgi %]" method="post">
<fieldset>
<input class="MainMenuLinks" type="submit" name="action_restore_email" value="[%|loc%]Restore identity[%END%]" />
</fieldset>
</form>
[%END%]
[% IF last_login_date %]
<span>[%|loc(last_login_host)%]last login from %1[%END%] &nbsp;&nbsp; ([% last_login_date %])</span>
[%END%]
</div>
<div class="prefs">
<ul id="MainMenuLinks">
<li><a href="[% path_cgi %]/pref">[%|loc%]My preferences[%END%]</a></li>
<li><a href="[% path_cgi %]/my" onclick="show('loading'); hide('content-inner');">[%|loc%]My lists[%END%]</a></li>
</ul>
</div>
[% IF auth_method == 'md5' %]
<div class="login">
<form action="[% path_cgi %]" method="post">
<fieldset>
<input type="hidden" name="action" value="logout" />
[% IF referer %]
<input type="hidden" name="referer" value="[% referer %]" />
[% ELSE %]
<input type="hidden" name="previous_action" value="[% home %]" />
[% END %]
<input class="MainMenuLinks" type="submit" name="action_logout" value="[%|loc%]Logout[%END%]" />
</fieldset>
</form>
</div>
[% END %]
[% ELSE %]
[% PROCESS 'loginbanner.tt2' %]
[% PROCESS 'loginbanner.tt2' %]
[% END %]
......
......@@ -5,35 +5,32 @@
<form action="[% path_cgi %]" method="post">
<fieldset>
<div class="form_row"><label>[%|loc%]Email:[%END%] </label>[% user.email %]</div>
<div class="form_row"> <label for="gecos">[%|loc%]Name:[%END%] </label><input type="text" id="gecos" name="gecos" size="30" value="[% user.gecos %]" /></div>
<div class="form_row">
<div class="form_row"><label>[%|loc%]Email:[%END%] </label>[% user.email %]</div>
<div class="form_row"> <label for="gecos">[%|loc%]Name:[%END%] </label><input type="text" id="gecos" name="gecos" size="30" value="[% user.gecos %]" /></div>
<div class="form_row">
<label for="lang" style="vertical-align:top;">[%|loc%]Language:[%END%] </label><select id="lang" name="lang" class="neutral">
[% FOREACH l = languages %]
<option value='[% l.key %]' lang="[% l.key %]" xml:lang="[% l.key %]" [% l.value.selected %]>[% l.value.complete %]</option>
[% END %]
</select></div>
<div class="form_row">
[% FOREACH l = languages %]
<option value="[% l.key %]" lang="[% l.key %]" xml:lang="[% l.key %]" [% l.value.selected %]>[% l.value.complete %]</option>
[% END %]
</select></div>
<div class="form_row">
<label for="cookie_delay">[%|loc%]Connection expiration period:[%END%] </label><select name="cookie_delay" id="cookie_delay">
[% FOREACH period = cookie_periods %]
<option value="[% period.value %]" [% period.selected %]>[% period.desc %]</option>
[% END %]
</select></div>
[% FOREACH period = cookie_periods %]
<option value="[% period.value %]" [% period.selected %]>[% period.desc %]</option>
[% END %]
</select></div>
<div class="form_row"> <input class="MainMenuLinks" type="submit" name="action_setpref" value="[%|loc%]Submit[%END%]" />
</div>
<div class="form_row">
<input class="MainMenuLinks" type="submit" name="action_setpref" value="[%|loc%]Submit[%END%]" /></div>
</fieldset>
</form>
<br />
<!-- prynhart: Workaround for Sympa Bug 8605 -->
[% res = user.email.match('@massey.ac.nz') %]
[% IF res.0 != '1' %]
<h4>[%|loc%]Changing your email address[%END%]</h4>
[%|loc%]You can update your email address for all your list memberships at once. If you are also list owner or list moderator your email address for these roles will also be updated.[%END%]
<p>[%|loc%]You can update your email address for all your list memberships at once. If you are also list owner or list moderator your email address for these roles will also be updated.[%END%]</p>
<form action="[% path_cgi %]" method="post">
<fieldset>
<div class="form_row"><label for="new_email">[%|loc%]New email address:[%END%] </label><input id="new_email" name="new_email" size="25" /></div>
......@@ -42,6 +39,7 @@
</form>
<br />
[% UNLESS use_sso %]
<h4>[%|loc%]Changing your password[%END%]</h4>
<form action="[% path_cgi %]" method="post">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment