{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2006 Polytechnique.org *}
+{* Copyright (C) 2003-2007 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
<br />
<table class="bicol">
<tr>
- <th colspan="2">{$valid->type}</th>
+ <th colspan="2"><a id="valid{$valid->id()}"></a>{$valid->type}</th>
</tr>
<tr>
<td class="titre" style="width: 20%">Demandeur :</td>
{if $valid->editor()}
<tr>
<td colspan="2" class="center">
- <form enctype="multipart/form-data" action="admin/validate" method="post">
+ {if $preview_id == $valid->id()}
+ <form enctype="multipart/form-data" action="{$platal->pl_self()}#valid{$valid->id()}" method="post">
<div>
{include file=$valid->editor()}
<input type="hidden" name="uid" value="{$valid->uid}" />
<input type="submit" name="edit" value="Editer" />
</div>
</form>
+ {else}
+ <span class="smaller">
+ <a href="admin/validate/edit/{$valid->id()}#valid{$valid->id()}">{icon name=page_edit}Editer cette demande avant validation</a>
+ </span>
+ {/if}
</td>
</tr>
{/if}
<td class="titre">
<a href="profile/{$c[0]}" class="popup2">{$c[0]}</a>
</td>
- <td>{$c[1]}</td>
+ <td>{$c[1]|nl2br}</td>
</tr>
{/foreach}
- <tr id='comment{$valid->uid}'>
+ <tr>
<td colspan='2' class='center'>
<form action="admin/validate" method="post">
<div>