Fix all overlib calls (escape simple quotes)
[platal.git] / templates / admin / valider.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
5ddeb07c 3{* Copyright (C) 2003-2007 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
e654517d 30{iterate item=valid from=$vit}
cfb96867 31{assign var=type value=$valid->type}
32{if !$hide_requests[$type]}
0337d704 33<br />
34<table class="bicol">
35 <tr>
fa33f7c6 36 <th colspan="2"><a id="valid{$valid->id()}"></a>{$valid->type}</th>
0337d704 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">
e654517d 42 {$valid->prenom|utf8_encode} {$valid->nom|utf8_encode} (X{$valid->promo})
0337d704 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()}
6aa01fed 53 {if $valid->editor()}
54 <tr>
55 <td colspan="2" class="center">
ed5b9703 56 {if $preview_id == $valid->id()}
fa33f7c6 57 <form enctype="multipart/form-data" action="{$platal->pl_self()}#valid{$valid->id()}" method="post">
6aa01fed 58 <div>
59 {include file=$valid->editor()}
60 <input type="hidden" name="uid" value="{$valid->uid}" />
61 <input type="hidden" name="type" value="{$valid->type}" />
62 <input type="hidden" name="stamp" value="{$valid->stamp}" />
63 <br />
64 <input type="submit" name="edit" value="Editer" />
65 </div>
66 </form>
ed5b9703 67 {else}
949741c3 68 <span class="smaller">
69 <a href="admin/validate/edit/{$valid->id()}#valid{$valid->id()}">{icon name=page_edit}Editer cette demande avant validation</a>
70 </span>
ed5b9703 71 {/if}
6aa01fed 72 </td>
73 </tr>
74 {/if}
0337d704 75 <tr><th colspan='2'>Commentaires</th></tr>
76 {foreach from=$valid->comments item=c}
77 <tr class="{cycle values="impair,pair"}">
78 <td class="titre">
7b2413f6 79 <a href="profile/{$c[0]}" class="popup2">{$c[0]}</a>
0337d704 80 </td>
716c76f6 81 <td>{$c[1]|nl2br}</td>
0337d704 82 </tr>
83 {/foreach}
c73a312d 84 <tr>
0337d704 85 <td colspan='2' class='center'>
86f0a6af 86 <form action="admin/validate" method="post">
0337d704 87 <div>
88 <input type="hidden" name="uid" value="{$valid->uid}" />
89 <input type="hidden" name="type" value="{$valid->type}" />
90 <input type="hidden" name="stamp" value="{$valid->stamp}" />
4791ff77 91 <input type="hidden" name="formid" value="{0|rand:65535}" />
0337d704 92 <textarea rows="3" cols="50" name="comm"></textarea>
93 <br />
94 <input type="submit" name="hold" value="Commenter" />
95 </div>
96 </form>
97 </td>
98 </tr>
a7de4ef7 99 <tr><th colspan='2'>Réponse</th></tr>
0337d704 100 <tr>
fba760d2 101 <td colspan='2' {popup caption="Règles de validation" text=$valid->ruleText()}>
86f0a6af 102 <form action="admin/validate" method="post">
0337d704 103 <div>
a7de4ef7 104 Réponse préremplie :
e18888f4 105 <select onchange="this.form.comm.value=this.value">
106 <option value=""></option>
107 {foreach from=$valid->answers() item=automatic_answer}
108 <option value="{$automatic_answer.answer}">{$automatic_answer.title}</option>
109 {/foreach}
110 </select>
a7de4ef7 111 <a href="admin/validate/answers">{icon name="page_edit" title="Editer les réponses automatiques"}</a>
e18888f4 112 </div>
113 <div class='center'>
a7de4ef7 114 Ajouté dans l'email :<br />
0337d704 115 <textarea rows="5" cols="50" name="comm"></textarea><br />
116
117 <input type="hidden" name="uid" value="{$valid->uid}" />
118 <input type="hidden" name="type" value="{$valid->type}" />
119 <input type="hidden" name="stamp" value="{$valid->stamp}" />
120 <input type="submit" name="accept" value="Accepter" />
121 {if $valid->refuse}<input type="submit" name="refuse" value="Refuser" />{/if}
122 <input type="submit" name="delete" value="Supprimer" />
123 </div>
124 </form>
125 </td>
126 </tr>
127</table>
cfb96867 128{else}
129{counter print=false assign=hidden}
130{/if}
0337d704 131{/iterate}
132
cfb96867 133{if $hidden}
a7de4ef7 134<p>{$hidden} validation{if $hidden > 1}s ont été masquées{else} a été masquée{/if}.</p>
cfb96867 135{/if}
136
0337d704 137{else}
138
a7de4ef7 139<p>Rien à valider</p>
0337d704 140
141{/if}
142
cfb96867 143<p>
144 Afficher seulement les validation suivantes :
cfb96867 145</p>
0337d704 146
2069538b 147<form action="admin/validate" method="post">
148 {foreach from=$categories item=type}
149 <div style="float:left;width:33%"><input type="checkbox" name="{$type}" id="hide_{$type}"{if !$hide_requests[$type]} checked="checked"{/if}/>
150 <label for="hide_{$type}">{$type}</label></div>
151 {/foreach}
152 <div class="center" style="clear:left"><input type="submit" name="hide" value="Valider" /></div>
153</form>
154
a7de4ef7 155{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}