deux titres pour la nl : un pour le mail, un pour le vrai titre
[platal.git] / templates / include / form.evenement.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
7b2413f6 23<form action="{$platal->path}" method="post">
0337d704 24 <table class="bicol">
25 <tr>
26 <th colspan="2">Contenu du message</th>
27 </tr>
09e37980 28 {if strlen(trim($texte))}
29 <tr class="pair">
30 <td colspan="2" style="border-bottom: 1px dotted #777">
31 {$texte|smarty:nodefaults|nl2br}
32 </td>
33 </tr>
34 {/if}
0337d704 35 <tr>
09e37980 36 <td class="titre">Titre</td>
0337d704 37 <td>
38 <input type="text" name="titre" size="50" maxlength="200" value="{$titre}" />
39 </td>
40 </tr>
41 <tr>
09e37980 42 <td class="titre">Texte</td>
7095511f 43 <td><textarea name="texte" rows="10" cols="60" onfocus="update_texte_count(this.form)">{$texte}</textarea></td>
44 </tr>
45 <tr>
09e37980 46 <td colspan="2" class="smaller">
7095511f 47 <script type="text/javascript">
48 var form_propose_texte = false;
49 {literal}
50 function update_texte_count(f) {
51 if (!form_propose_texte && f) form_propose_texte = f;
52 form_propose_texte.texte_count.value=form_propose_texte.texte.value.length;
53 setTimeout("update_texte_count(0)", 100);
54 }
55 {/literal}
56 </script>
09e37980 57 Essaie de faire un <strong>texte court</strong>, une annonce ne doit pas excéder 800 caractères soit une douzaine de ligne. Tu en es déjà à <input type='text' name='texte_count' size="4"/> caractères.
58 </td>
0337d704 59 </tr>
0337d704 60 <tr>
61 <th colspan="2">Informations complémentaires</th>
62 </tr>
09e37980 63 </table>
64
65 <table class="bicol">
66 <tr class="pair">
2f5102a0 67 <td colspan="2">
68 Tu peux limiter la visibilité de ton annonce aux camarades de certaines promotions :
69 </td>
70 </tr>
71 <tr class="impair">
72 <td class="titre">Promotion la plus ancienne</td>
0337d704 73 <td>
09e37980 74 <input type="text" name="promo_min" size="4" maxlength="4" value="{$promo_min}" /> incluse
2f5102a0 75 &nbsp;<em>(ex : 1980, 0 signifie pas de minimum)</em>
0337d704 76 </td>
77 </tr>
2f5102a0 78 <tr class="impair">
79 <td class="titre">Promotion la plus jeune</td>
0337d704 80 <td>
09e37980 81 <input type="text" name="promo_max" size="4" maxlength="4" value="{$promo_max}" /> incluse
9df2476f 82 &nbsp;<em>(ex : 2000, 0 signifie pas de maximum)</em>
0337d704 83 </td>
84 </tr>
09e37980 85 <tr class="pair">
2f5102a0 86 <td colspan="2">
87 Choisis la date d'expiration de ton annonce :
0337d704 88 </td>
89 </tr>
90 <tr>
2f5102a0 91 <td class="titre">
92 Dernier jour d'affichage
0337d704 93 </td>
94 <td>
95 <select name="peremption">
96 {$select|smarty:nodefaults}
97 </select>
98 </td>
99 </tr>
100 </table>
101
102 <div class="center">
103 <input type="hidden" name="evt_id" value="{$smarty.post.evt_id}" />
104 <input type="submit" name="action" value="Proposer" />
105 </div>
106
107</form>
108
109{* vim:set et sw=2 sts=2 sws=2: *}