Fix a broken link
[platal.git] / templates / profil.tpl
index 2ef8291..8eb438a 100644 (file)
 <p class="erreur">{$e}</p>
 {/foreach}
 
-<p>Tu peux consulter <a href="{rel}/fiche.php?user={$smarty.session.forlife}" class="popup2">l'état actuel de ta fiche</a>
-telle qu'elle apparaîtra pour un camarade,
-ou telle qu'elle apparaîtra dans l'annuaire de l'<a href="{rel}/fiche.php?user={$smarty.session.forlife}&amp;view=ax" class="popup2">AX</a> ou à <a href="{rel}/fiche.php?user={$smarty.session.forlife}&amp;view=public" class="popup2">tout le monde</a>.</p>
+<p>
+Tu peux consulter <a href="profile/{$smarty.session.forlife}" class="popup2">l'état actuel de ta fiche</a>
+telle qu'elle apparaîtra pour un camarade, ou telle qu'elle apparaîtra dans l'annuaire de
+l'<a href="profile/{$smarty.session.forlife}?view=ax" class="popup2">AX</a>
+ou à <a href="profile/{$smarty.session.forlife}?view=public" class="popup2">tout le monde</a>.</p>
 
-<form action="{$smarty.server.PHP_SELF}" method="post" id="prof_annu">
+<form action="profile/edit/{$onglet}" method="post" id="prof_annu">
   <table class="cadre_a_onglet" cellpadding="0" cellspacing="0" style="width: 98%; margin-left:1%;">
     <tr>
       <td>
@@ -42,11 +44,10 @@ ou telle qu'elle appara
           {if $o eq $onglet}
           <li class="actif">{$i|nl2br}</li>
           {else}
-          <li><a href="{$smarty.server.PHP_SELF}?old_tab={$o}">{$i|nl2br}</a></li>
+          <li><a href="profile/edit/{$o}">{$i|nl2br}</a></li>
           {/if}
           {/foreach}
         </ul>
-        <input type="hidden" value="{$onglet}" name="old_tab" />
         <input type="hidden" value="" name="adresse_flag" />
       </td>
     </tr>
@@ -62,15 +63,9 @@ ou telle qu'elle appara
             <td>
               <input type="submit" value="Valider ces modifications" name="modifier" />
             </td>
-            {if $onglet != $onglet_last}
             <td>
               <input type="submit" value="Valider et passer au prochain onglet" name="suivant" />
             </td>
-            {else}
-            <td>
-              <input type="submit" value="Valider et revenir au premier onglet" name="suivant" />
-            </td>
-            {/if}
           </tr>
         </table>
       </td>