first reimport from platal
[platal.git] / templates / evenements.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2004 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
24 <h1>
25   Proposition d'information événementielle
26 </h1>
27
28
29 {if $action eq "proposer"}
30
31 <p>
32 Voici ton annonce :
33 </p>
34
35 <table class="bicol">
36   <tr>
37     <th>{$titre|nl2br}</th>
38   </tr>
39   <tr>
40     <td>{$texte|nl2br}</td>
41   </tr>
42 </table>
43
44 <p>
45 Ce message est à destination
46 {if $promo_min || $promo_max}
47 des promotions {if $promo_min}X{$promo_min}{/if} {if $promo_max}jusqu'à X{$promo_max}{else}et plus{/if}
48 {else}
49 de toutes les promotions
50 {/if}
51 et sera affiché sur la page d'accueil jusqu'au {$peremption|date_format}
52 </p>
53
54 {if $validation_message}
55 <p>
56 Tu as ajouté le message suivant à l'intention du validateur : {$validation_message|nl2br}
57 </p>
58 {/if}
59
60 <form action="{$smarty.request.PHP_SELF}" method="post">
61   <div>
62     <input type="hidden" name="titre" value="{$titre}" />
63     <input type="hidden" name="texte" value="{$texte}" />
64     <input type="hidden" name="promo_min" value="{$promo_min}" />
65     <input type="hidden" name="promo_max" value="{$promo_max}" />
66     <input type="hidden" name="peremption" value="{$peremption}" />
67     <input type="hidden" name="validation_message" value="{$validation_message}" />
68     <input type="submit" name="action" value="Confirmer" />
69     <input type="submit" name="action" value="Modifier" />
70   </div>
71 </form>
72
73
74 {elseif $action eq "confirmer"}
75
76 {if $ok}
77 <p>
78 Ta proposition a bien été enregistrée, un administrateur va se charger de la valider aussi rapidement que possible.
79 </p>
80 <p>
81 Merci pour ta contribution à la vie du site!
82 </p>
83 <p>
84 <a href="login.php">Retour à la page d'accueil</a>
85 </p>
86 {else}
87 <p class="erreur">
88 Une erreur s'est produite pendant l'enregistrement de ta proposition.  Merci de nous <a href="contacts.php">contacter</a>!
89 </p>
90 {/if}
91
92 {else}
93
94 {include file="include/form.evenement.tpl"}
95
96 {/if}
97
98
99 {* vim:set et sw=2 sts=2 sws=2: *}