1 {**************************************************************************}
3 {* Copyright (C) 2003-2006 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
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. *}
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. *}
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 *}
21 {**************************************************************************}
23 <script type='text/javascript'>
25 function deadlineChange(box)
27 var nd = document.getElementById('no_deadline');
28 var dd = document.getElementById('do_deadline');
31 nd.style.display = 'none';
32 dd.style.display = 'inline';
34 nd.style.display = 'inline';
35 dd.style.display = 'none';
41 <h1>{$asso.nom} : {$evt.intitule}</h1>
44 Un événement peut être une réunion, un séminaire, une conférence, un voyage promo,
45 etc... Pour en organiser un et bénéficier des outils de suivi d'inscription et de
46 paiement offerts, il te faut remplir les quelques champs du formulaire ci-dessous.
49 Tu as la possibilité, pour un événement donné, de distinguer plusieurs "moments"
50 distincts. Par exemple, dans le cas d'une réunion suivie d'un dîner, il peut être
51 utile de comptabiliser les présents à la réunion d'une part, et de compter ceux
52 qui s'inscrivent au repas d'autre part (en général certains participants à la réunion
53 ne restent pas pour le dîner...), de sorte que tu sauras combien de chaises prévoir
54 pour le premier "moment" (la réunion), et pour combien de personnes réserver le
60 <form method="post" action="{rel}/{$platal->ns}events/edit/{$platal->argv[1]}">
61 <table class='bicol' cellspacing='0' cellpadding='0'>
67 Intitulé de l'événement :
70 <input type="hidden" name="eid" value="{$evt.eid}" />
71 <input type="text" name="intitule" value="{$evt.intitule}" size="45" maxlength="100" />
76 Raccourci :<br />
77 <small>(pour les mailings listes)</small>
80 <input type="text" name="short_name" size="20" maxlength="20"
81 value="{$evt.short_name|default:$smarty.request.short_name}" />
82 <small><br />(n'utiliser que chiffres, lettres, tiret et point. garder court)</small>
90 <textarea name="descriptif" cols="45" rows="10">{$evt.descriptif}</textarea>
98 le {html_select_date prefix='deb_' end_year='+5' day_value_format='%02d'
99 field_order='DMY' field_separator=' / ' month_format='%m' time=$evt.debut}
100 à {html_select_time use_24_hours=true display_seconds=false
101 time=$evt.debut prefix='deb_' minute_interval=5}
109 le {html_select_date prefix='fin_' end_year='+5' day_value_format='%02d'
110 field_order='DMY' field_separator=' / ' month_format='%m' time=$evt.fin}
111 à {html_select_time use_24_hours=true display_seconds=false
112 time=$evt.fin prefix='fin_' minute_interval=5}
117 Fin des inscriptions :
120 <input type='checkbox' name='deadline' value='1' onchange='deadlineChange(this)'
121 {if $evt.deadline_inscription}checked='checked'{/if} />
122 <span id='no_deadline' {if $evt.deadline_inscription}style='display: none'{/if}>
125 <span id='do_deadline' {if !$evt.deadline_inscription}style='display: none'{/if}>
126 le {html_select_date prefix='inscr_' end_year='+5' day_value_format='%02d'
127 field_order='DMY' field_separator=' / ' month_format='%m' time=$evt.deadline_inscription}
137 Montrer la liste des inscrits aux membres :
138 <input type="radio" name="show_participants" value="1" {if $evt.show_participants}checked="checked"{/if} /> oui
139 <input type="radio" name="show_participants" value="0" {if !$evt.show_participants}checked="checked"{/if}/> non
142 Autoriser les invités :
143 <input type="radio" name="noinvite" value="0" {if !$evt.noinvite}checked="checked"{/if} /> oui
144 <input type="radio" name="noinvite" value="1" {if $evt.noinvite}checked="checked"{/if}/> non
148 <td>Référence de paiement :</td>
150 <select name="paiement_id" onchange="document.getElementById('new_pay').style.display=(value < 0?'block':'none')">
151 {if $evt.paiement_id eq -2}
152 <option value='-2'>Paiement en attente de validation</option>
154 <option value=''>Pas de paiement</option>
155 <option value='-1'>- Nouveau paiement -</option>
156 {html_options options=$paiements selected=$evt.paiement_id}
162 <table class='bicol' cellspacing='0' cellpadding='0' id="new_pay" style="display:none">
165 Nouveau paiement, message de confirmation :
170 <textarea name="confirmation" rows="12" cols="65"><salutation> <prenom> <nom>,
172 Ton inscription à [METS LE NOM DE L'EVENEMENT ICI] a bien été enregistrée et ton paiement de <montant> a bien été reçu.
173 [COMPLETE EN PRECISANT LA DATE ET LA PERSONNE A CONTACTER]
177 [SIGNE ICI]</textarea>
182 Page internet de l'événement : <input size="40" name="site" value="{$asso.site}" />
187 Le nouveau paiement n'est pas rajouté automatiquement mais doit être
188 validé par le trésorier de l'association Polytechnique.org, ce qui sera
194 {foreach from=$moments item=i}
195 {assign var='moment' value=$items[$i]}
198 <tr><td colspan="2" align="center"><strong>"Moment" {$i}</strong></td></tr>
201 <td><input type="text" name="titre{$i}" value="{$moment.titre}" size="45" maxlength="100" /></td>
204 <td>Détails pratiques :</td>
205 <td><textarea name="details{$i}" rows="6" cols="45">{$moment.details}</textarea></td>
208 <td>Montant par participant :<br /><small>(0 si gratuit)</small></td>
209 <td><input type="text" name="montant{$i}" value="{if $moment.montant}{$moment.montant|replace:".":","}{else}0,00{/if}" size="7" maxlength="7" /> €</td>
215 <input type="submit" name="valid" value="Valider" />
217 <input type="reset" value="Annuler" />
221 {* vim:set et sw=2 sts=2 sws=2: *}