ajoute un compteur de caracteres quand on cree une annonce : bug 411
[platal.git] / templates / include / form.evenement.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 <form action="{$smarty.server.PHP_SELF}" method="post">
25   <table class="bicol">
26     <tr>
27       <th colspan="2">Contenu du message</th>
28     </tr>
29     <tr>
30       <td><strong>Titre</strong></td>
31       <td>
32         <input type="text" name="titre" size="50" maxlength="200" value="{$titre}" />
33       </td>
34     </tr>
35     <tr>
36       <td><strong>Texte</strong></td>
37       <td><textarea name="texte" rows="10" cols="60" onfocus="update_texte_count(this.form)">{$texte}</textarea></td>
38     </tr>
39     <tr>
40       <td colspan="2">
41         <script type="text/javascript">
42           var form_propose_texte = false;
43           {literal}
44           function update_texte_count(f) {
45             if (!form_propose_texte && f) form_propose_texte = f;
46             form_propose_texte.texte_count.value=form_propose_texte.texte.value.length;
47             setTimeout("update_texte_count(0)", 100);
48           }
49           {/literal}
50         </script>
51         Essaie de faire un texte court, 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.</td>
52     </tr>
53   </table>
54
55   <table class="bicol">
56     <tr>
57       <th colspan="2">Informations complémentaires</th>
58     </tr>
59     <tr>
60       <td>
61         <strong>Promo min *</strong> (incluse)
62       </td>
63       <td>
64         <input type="text" name="promo_min" size="4" maxlength="4" value="{$promo_min}" />
65         &nbsp;<em>0 signifie pas de minimum</em>
66       </td>
67     </tr>
68     <tr>
69       <td>
70         <strong>Promo max *</strong> (incluse)
71       </td>
72       <td>
73         <input type="text" name="promo_max" size="4" maxlength="4" value="{$promo_max}" />
74         &nbsp;<em>0 signifie pas de maximum</em>
75       </td>
76     </tr>
77     <tr>
78       <td colspan="2">
79         * sert à limiter l'affichage de l'annonce aux camarades appartenant à certaines promos seulement.
80       </td>
81     </tr>
82     <tr>
83       <td>
84         <strong>Dernier jour d'affichage</strong>
85       </td>
86       <td>
87         <select name="peremption">
88           {$select|smarty:nodefaults}
89         </select>
90       </td>
91     </tr>
92   </table>
93
94   <div class="center">
95     <input type="hidden" name="evt_id" value="{$smarty.post.evt_id}" />
96     <input type="submit" name="action" value="Proposer" />
97   </div>
98
99 </form>
100
101 {* vim:set et sw=2 sts=2 sws=2: *}