migration d'admin
[platal.git] / templates / admin / valider.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2006 Polytechnique.org                             *}
4 {*  http://opensource.polytechnique.org/                                  *}
5 {*                                                                        *}
6 {*  This program is free software; you can redistribute it and/or modify  *}
7 {*  it under the terms of the GNU General Public License as published by  *}
8 {*  the Free Software Foundation; either version 2 of the License, or     *}
9 {*  (at your option) any later version.                                   *}
10 {*                                                                        *}
11 {*  This program is distributed in the hope that it will be useful,       *}
12 {*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
13 {*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
14 {*  GNU General Public License for more details.                          *}
15 {*                                                                        *}
16 {*  You should have received a copy of the GNU General Public License     *}
17 {*  along with this program; if not, write to the Free Software           *}
18 {*  Foundation, Inc.,                                                     *}
19 {*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
20 {*                                                                        *}
21 {**************************************************************************}
22
23 <h1>Validation</h1>
24  
25
26 {if $vit->total()}
27
28 {iterate item=valid from=$vit|smarty:nodefaults}
29 <br />
30 <table class="bicol">
31   <tr>
32     <th colspan="2">{$valid->type}</th>
33   </tr>
34   <tr>
35     <td class="titre" style="width: 20%">Demandeur&nbsp;:</td>
36     <td>
37       <a href="profile/{$valid->bestalias}" class="popup2">
38         {$valid->prenom} {$valid->nom} (X{$valid->promo})
39       </a>
40     </td>
41   </tr>
42   {include file=$valid->formu()}
43   <tr><th colspan='2'>Commentaires</th></tr>
44   {foreach from=$valid->comments item=c}
45   <tr class="{cycle values="impair,pair"}">
46     <td class="titre">
47       <a href="profile/{$c[0]}" class="popup2">{$c[0]}</a>
48     </td>
49     <td>{$c[1]}</td>
50   </tr>
51   {/foreach}
52   <tr id='comment{$valid->uid}'>
53     <td colspan='2' class='center'>
54       <form action="admin/validate" method="post">
55         <div>
56           <input type="hidden" name="uid"    value="{$valid->uid}" />
57           <input type="hidden" name="type"   value="{$valid->type}" />
58           <input type="hidden" name="stamp"  value="{$valid->stamp}" />
59           <textarea rows="3" cols="50" name="comm"></textarea>
60           <br />
61           <input type="submit" name="hold"   value="Commenter" />
62         </div>
63       </form>
64     </td>
65   </tr>
66   <tr><th colspan='2'>Réponse</th></tr>
67   <tr>
68     <td colspan='2' class='center' {popup caption="Règles de validation" text=$valid->rules}>
69       <form action="admin/validate" method="post">
70         <div>
71           Ajouté dans l'email :<br />
72           <textarea rows="5" cols="50" name="comm"></textarea><br />
73
74           <input type="hidden" name="uid"    value="{$valid->uid}" />
75           <input type="hidden" name="type"   value="{$valid->type}" />
76           <input type="hidden" name="stamp"  value="{$valid->stamp}" />
77           <input type="submit" name="accept" value="Accepter" />
78           {if $valid->refuse}<input type="submit" name="refuse" value="Refuser" />{/if}
79           <input type="submit" name="delete" value="Supprimer" />
80         </div>
81       </form>
82     </td>
83   </tr>
84 </table>
85 {/iterate}
86
87 {else}
88
89 <p>Rien à valider</p>
90
91 {/if}
92
93
94 {* vim:set et sw=2 sts=2 sws=2: *}