Some html fixes
[platal.git] / templates / admin / valider.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
50a40a33 3{* Copyright (C) 2003-2006 Polytechnique.org *}
0337d704 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
cfb96867 28{counter print=false start=0 assign=hidden}
29
0337d704 30{iterate item=valid from=$vit|smarty:nodefaults}
cfb96867 31{assign var=type value=$valid->type}
32{if !$hide_requests[$type]}
0337d704 33<br />
34<table class="bicol">
35 <tr>
36 <th colspan="2">{$valid->type}</th>
37 </tr>
38 <tr>
39 <td class="titre" style="width: 20%">Demandeur&nbsp;:</td>
40 <td>
7b2413f6 41 <a href="profile/{$valid->bestalias}" class="popup2">
0337d704 42 {$valid->prenom} {$valid->nom} (X{$valid->promo})
43 </a>
44 </td>
45 </tr>
4aec8eff 46 <tr>
47 <td class="titre" style="width: 20%">Date de demande&nbsp;:</td>
48 <td>
49 {$valid->stamp|date_format}
50 </td>
51 </tr>
0337d704 52 {include file=$valid->formu()}
53 <tr><th colspan='2'>Commentaires</th></tr>
54 {foreach from=$valid->comments item=c}
55 <tr class="{cycle values="impair,pair"}">
56 <td class="titre">
7b2413f6 57 <a href="profile/{$c[0]}" class="popup2">{$c[0]}</a>
0337d704 58 </td>
59 <td>{$c[1]}</td>
60 </tr>
61 {/foreach}
62 <tr id='comment{$valid->uid}'>
63 <td colspan='2' class='center'>
86f0a6af 64 <form action="admin/validate" method="post">
0337d704 65 <div>
66 <input type="hidden" name="uid" value="{$valid->uid}" />
67 <input type="hidden" name="type" value="{$valid->type}" />
68 <input type="hidden" name="stamp" value="{$valid->stamp}" />
4791ff77 69 <input type="hidden" name="formid" value="{0|rand:65535}" />
0337d704 70 <textarea rows="3" cols="50" name="comm"></textarea>
71 <br />
72 <input type="submit" name="hold" value="Commenter" />
73 </div>
74 </form>
75 </td>
76 </tr>
77 <tr><th colspan='2'>Réponse</th></tr>
78 <tr>
e18888f4 79 <td colspan='2' {popup caption="Règles de validation" text=$valid->rules}>
86f0a6af 80 <form action="admin/validate" method="post">
0337d704 81 <div>
e18888f4 82 Réponse préremplie :
83 <select onchange="this.form.comm.value=this.value">
84 <option value=""></option>
85 {foreach from=$valid->answers() item=automatic_answer}
86 <option value="{$automatic_answer.answer}">{$automatic_answer.title}</option>
87 {/foreach}
88 </select>
89 <a href="admin/validate/answers">{icon name="page_edit" title="Editer les réponses automatiques"}</a>
90 </div>
91 <div class='center'>
0337d704 92 Ajouté dans l'email :<br />
93 <textarea rows="5" cols="50" name="comm"></textarea><br />
94
95 <input type="hidden" name="uid" value="{$valid->uid}" />
96 <input type="hidden" name="type" value="{$valid->type}" />
97 <input type="hidden" name="stamp" value="{$valid->stamp}" />
98 <input type="submit" name="accept" value="Accepter" />
99 {if $valid->refuse}<input type="submit" name="refuse" value="Refuser" />{/if}
100 <input type="submit" name="delete" value="Supprimer" />
101 </div>
102 </form>
103 </td>
104 </tr>
105</table>
cfb96867 106{else}
107{counter print=false assign=hidden}
108{/if}
0337d704 109{/iterate}
110
cfb96867 111{if $hidden}
112<p>{$hidden} validation{if $hidden > 1}s ont été masquées{else} a été masquée{/if}.</p>
113{/if}
114
0337d704 115{else}
116
117<p>Rien à valider</p>
118
119{/if}
120
cfb96867 121<p>
122 Afficher seulement les validation suivantes :
123 <form action="admin/validate" method="post">
124 {foreach from=$categories item=type}
125 <div style="float:left;width:33%"><input type="checkbox" name="{$type}" id="hide_{$type}"{if !$hide_requests[$type]} checked="checked"{/if}/>
126 <label for="hide_{$type}">{$type}</label></div>
127 {/foreach}
9f94a7d4 128 <div class="center" style="clear:left"><input type="submit" name="hide" value="Valider" /></div>
cfb96867 129 </form>
130</p>
0337d704 131
132{* vim:set et sw=2 sts=2 sws=2: *}