0337d704 |
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 | <p class="descr"> |
24 | Un événement peut être une réunion, un séminaire, une conférence, un voyage promo, |
25 | etc... Pour en organiser un et bénéficier des outils de suivi d'inscription et de |
26 | paiement offerts, il te faut remplir les quelques champs du formulaire ci-dessous. |
27 | </p> |
28 | <p class="descr"> |
29 | Tu as la possibilité, pour un événement donné, de distinguer plusieurs "moments" |
30 | distincts. Par exemple, dans le cas d'une réunion suivie d'un dîner, il peut être |
31 | utile de comptabiliser les présents à la réunion d'une part, et de compter ceux |
32 | qui s'inscrivent au repas d'autre part (en général certains participants à la réunion |
33 | ne restent pas pour le dîner...), de sorte que tu sauras combien de chaises prévoir |
34 | pour le premier "moment" (la réunion), et pour combien de personnes réserver le |
35 | restaurant. |
36 | </p> |
37 | |
38 | <form method="post" action="{$smarty.server.PHP_SELF}"> |
39 | <hr /> |
40 | <table> |
41 | <tr> |
3b3e9d15 |
42 | <td>Intitulé de l'événement :</td> |
0337d704 |
43 | <td> |
44 | <input type="hidden" name="eid" value="{$evt.eid}" /> |
45 | <input type="text" name="intitule" value="{$evt.intitule}" size="45" maxlength="100" /> |
46 | </td> |
47 | </tr> |
48 | <tr> |
3b3e9d15 |
49 | <td>Evénement en raccourci (pour les mailings listes) :</td> |
0337d704 |
50 | <td><input type="text" name="short_name" value="{$evt.short_name}" size="20"/></td> |
51 | </tr> |
52 | <tr> |
53 | <td>Descriptif :</td> |
54 | <td><textarea name="descriptif" cols="45" rows="6">{$evt.descriptif}</textarea></td> |
55 | </tr> |
56 | <tr> |
57 | <td>Date de début :</td> |
58 | <td> |
59 | le |
60 | {html_select_date prefix='deb_' end_year='+5' day_value_format='%02d' field_order='DMY' field_separator=' / ' month_format='%m' time=$evt.debut} |
61 | à |
62 | {html_select_time use_24_hours=true display_seconds=false time=$evt.debut prefix='deb_' minute_interval=5} |
63 | </td> |
64 | </tr> |
65 | <tr> |
66 | <td>Date de fin :</td> |
67 | <td> |
68 | le |
69 | {html_select_date prefix='fin_' end_year='+5' day_value_format='%02d' field_order='DMY' field_separator=' / ' month_format='%m' time=$evt.fin} |
70 | à |
71 | {html_select_time use_24_hours=true display_seconds=false time=$evt.fin prefix='fin_' minute_interval=5} |
72 | </td> |
73 | </tr> |
74 | <tr> |
258b9710 |
75 | <td>Fin des inscriptions</td> |
76 | <td>pas de deadline <input type='checkbox' name='deadline' {if !$evt.deadline_inscription}checked='checked'{/if}/> |
77 | {html_select_date prefix='inscr_' end_year='+5' day_value_format='%02d' field_order='DMY' field_separator=' / ' month_format='%m' time=$evt.deadline_inscription} |
78 | </td> |
79 | </tr> |
80 | <tr> |
0337d704 |
81 | <td colspan="2">Ouvert aux membres du groupe uniquement : |
82 | <input type="radio" name="membres_only" value="1" {if $evt.membres_only}checked="checked"{/if} /> oui |
83 | <input type="radio" name="membres_only" value="0" {if !$evt.membres_only}checked="checked"{/if} /> non |
84 | </td> |
85 | </tr> |
86 | <tr> |
87 | <td colspan="2">Annoncer l'événement publiquement sur le site : |
88 | <input type="radio" name="advertise" value="1" {if $evt.advertise}checked="checked"{/if} /> oui |
89 | <input type="radio" name="advertise" value="0" {if !$evt.advertise}checked="checked"{/if} /> non |
90 | </td> |
91 | </tr> |
92 | <tr> |
93 | <td colspan="2">Montrer la liste des participants à tous les membres : |
94 | <input type="radio" name="show_participants" value="1" {if $evt.show_participants}checked="checked"{/if} /> oui |
95 | <input type="radio" name="show_participants" value="0" {if !$evt.show_participants}checked="checked"{/if}/> non |
96 | </td> |
97 | </tr> |
98 | <tr> |
3b3e9d15 |
99 | <td>Référence de paiement : |
0337d704 |
100 | </td> |
101 | <td> |
3b3e9d15 |
102 | <select name="paiement_id" onchange="document.getElementById('new_pay').style.display=(value < 0?'block':'none')"> |
b479e26b |
103 | {if $evt.paiement_id eq -2} |
104 | <option value='-2'>Paiement en attente de validation</option> |
105 | {/if} |
0337d704 |
106 | <option value=''>Pas de paiement</option> |
107 | <option value='-1'>- Nouveau paiement -</option> |
108 | {html_options options=$paiements selected=$evt.paiement_id} |
109 | </select> |
110 | </td> |
111 | </tr> |
112 | </table> |
113 | <div id="new_pay" style="display:none"> |
114 | Nouveau paiement, message de confirmation :<br /> |
115 | <textarea name="confirmation" rows="12" cols="65"><salutation> <prenom> <nom>, |
116 | |
117 | Ton inscription à [METS LE NOM DE L'EVENEMENT ICI] a bien été enregistrée et ton paiement de <montant> a bien été reçu. |
118 | [COMPLETE EN PRECISANT LA DATE ET LA PERSONNE A CONTACTER] |
119 | |
120 | A très bientot, |
121 | |
122 | [SIGNE ICI]</textarea><br /> |
123 | Le nouveau paiement n'est pas rajouté automatiquement mais doit être validé par le trésorier de l'association Polytechnique.org, ce qui sera fait sous peu.<br /><br /> |
124 | Page internet de l'événement :<br /> |
125 | <input size="40" name="site" value="{$asso.site}" /> |
126 | </div> |
127 | |
128 | {foreach from=$moments item=i} |
129 | {assign var='moment' value=$items[$i]} |
130 | <hr /> |
131 | <table> |
132 | <tr><td colspan="2" align="center"><strong>"Moment" {$i}</strong></td></tr> |
133 | <tr> |
134 | <td>Intitulé :</td> |
135 | <td><input type="text" name="titre{$i}" value="{$moment.titre}" size="45" maxlength="100" /></td> |
136 | </tr> |
137 | <tr> |
138 | <td>Détails pratiques :</td> |
139 | <td><textarea name="details{$i}" rows="6" cols="45">{$moment.details}</textarea></td> |
140 | </tr> |
141 | <tr> |
142 | <td>Montant par participant :<br /><small>(0 si gratuit)</small></td> |
143 | <td><input type="text" name="montant{$i}" value="{if $moment.montant}{$moment.montant|replace:".":","}{else}0,00{/if}" size="7" maxlength="7" /> €</td> |
144 | </tr> |
145 | </table> |
146 | {/foreach} |
147 | |
148 | <div class="center"> |
149 | <input type="submit" name="valid" value="Valider" /> |
150 | |
151 | <input type="reset" value="Annuler" /> |
152 | </div> |
153 | |
154 | </form> |
155 | {* vim:set et sw=2 sts=2 sws=2: *} |