1 {**************************************************************************}
3 {* Copyright (C) 2003-2006 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
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. *}
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. *}
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 *}
21 {**************************************************************************}
28 {counter print=false start=0 assign=hidden}
30 {iterate item=valid from=$vit|smarty:nodefaults}
31 {assign var=type value=$valid->type}
32 {if !$hide_requests[$type]}
36 <th colspan="2">{$valid->type}</th>
39 <td class="titre" style="width: 20%">Demandeur :</td>
41 <a href="profile/{$valid->bestalias}" class="popup2">
42 {$valid->prenom} {$valid->nom} (X{$valid->promo})
47 <td class="titre" style="width: 20%">Date de demande :</td>
49 {$valid->stamp|date_format}
52 {include file=$valid->formu()}
55 <td colspan="2" class="center">
56 <form action="admin/validate" method="post">
58 {include file=$valid->editor()}
59 <input type="hidden" name="uid" value="{$valid->uid}" />
60 <input type="hidden" name="type" value="{$valid->type}" />
61 <input type="hidden" name="stamp" value="{$valid->stamp}" />
63 <input type="submit" name="edit" value="Editer" />
69 <tr><th colspan='2'>Commentaires</th></tr>
70 {foreach from=$valid->comments item=c}
71 <tr class="{cycle values="impair,pair"}">
73 <a href="profile/{$c[0]}" class="popup2">{$c[0]}</a>
78 <tr id='comment{$valid->uid}'>
79 <td colspan='2' class='center'>
80 <form action="admin/validate" method="post">
82 <input type="hidden" name="uid" value="{$valid->uid}" />
83 <input type="hidden" name="type" value="{$valid->type}" />
84 <input type="hidden" name="stamp" value="{$valid->stamp}" />
85 <input type="hidden" name="formid" value="{0|rand:65535}" />
86 <textarea rows="3" cols="50" name="comm"></textarea>
88 <input type="submit" name="hold" value="Commenter" />
93 <tr><th colspan='2'>Réponse</th></tr>
95 <td colspan='2' {popup caption="Règles de validation" text=$valid->rules}>
96 <form action="admin/validate" method="post">
99 <select onchange="this.form.comm.value=this.value">
100 <option value=""></option>
101 {foreach from=$valid->answers() item=automatic_answer}
102 <option value="{$automatic_answer.answer}">{$automatic_answer.title}</option>
105 <a href="admin/validate/answers">{icon name="page_edit" title="Editer les réponses automatiques"}</a>
108 Ajouté dans l'email :<br />
109 <textarea rows="5" cols="50" name="comm"></textarea><br />
111 <input type="hidden" name="uid" value="{$valid->uid}" />
112 <input type="hidden" name="type" value="{$valid->type}" />
113 <input type="hidden" name="stamp" value="{$valid->stamp}" />
114 <input type="submit" name="accept" value="Accepter" />
115 {if $valid->refuse}<input type="submit" name="refuse" value="Refuser" />{/if}
116 <input type="submit" name="delete" value="Supprimer" />
123 {counter print=false assign=hidden}
128 <p>{$hidden} validation{if $hidden > 1}s ont été masquées{else} a été masquée{/if}.</p>
133 <p>Rien à valider</p>
138 Afficher seulement les validation suivantes :
141 <form action="admin/validate" method="post">
142 {foreach from=$categories item=type}
143 <div style="float:left;width:33%"><input type="checkbox" name="{$type}" id="hide_{$type}"{if !$hide_requests[$type]} checked="checked"{/if}/>
144 <label for="hide_{$type}">{$type}</label></div>
146 <div class="center" style="clear:left"><input type="submit" name="hide" value="Valider" /></div>
149 {* vim:set et sw=2 sts=2 sws=2: *}