Release of plat/al 1.1.12
[platal.git] / templates / profile / base.tpl
index addb55b..3926498 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2014 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {**************************************************************************}
 
 <form action="{$wiz_baseurl}/{$lookup[$current]}" method="post" id="prof_annu">
+  {xsrf_token_field}
   <div>
-    {icon name=information title="Voir ma fiche"} Tu peux consulter ta fiche telle que la
-    voient <a class="popup2" href="profile/{$smarty.session.forlife}">les X</a>,
-    <a class="popup2" href="profile/{$smarty.session.forlife}?view=ax">l'AX</a> ou
-    <a class="popup2" href="profile/{$smarty.session.forlife}?view=public">n'importe quel internaute</a>.
-    {include file="include/flags.radio.tpl" notable=true disabled=true name="profile_ex_pub"}
+    {icon name=information title="Voir ma fiche"} Tu peux consulter
+    {if $isMe}ta{else}cette{/if} fiche telle qu'elle apparaît
+    <a class="popup2" href="profile/{$profile->hrpid}?view=public">pour n'importe quel internaute</a>,
+    <a class="popup2" href="profile/{$profile->hrpid}?view=ax">dans l'annuaire papier</a>{if $viewPrivate} ou
+    <a class="popup2" href="profile/{$profile->hrpid}">pour les X</a>{/if}.
+  </div>
+  <div class="flags">
+  {include file="include/flags.radio.tpl" disabled=true withtext=true val="novalue" name="profile_ex_pub"}
   </div>
   <div style="margin-top: 1em">
     {include file=$profile_page}
   </div>
-  <div style="clear: both" class="center">
+  <div style="clear: both; margin-top: 1em" class="center">
     <input type="hidden" name="valid_page" value="{$current}" />
     <input type="submit" name="current_page" value="Valider les modifications" />
+    {if $current neq count($lookup)-1}
     <input type="submit" name="next_page" value="Valider et passer à la page suivante" />
+    {/if}
   </div>
 </form>
 
-{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
+{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}