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