1 {**************************************************************************}
3 {* Copyright (C) 2003-2011 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 dd = document.getElementById('do_deadline');
30 dd.style.display = 'inline';
32 dd.style.display = 'none';
38 <h1>{$asso->nom} : {$evt.intitule|default:"Nouvel événement"}</h1>
41 Un événement peut être une réunion, un séminaire, une conférence, un voyage promo…
42 Pour en organiser un et bénéficier des outils de suivi d'inscription et de
43 paiement offerts, il te faut remplir les quelques champs du formulaire ci-dessous.
46 Tu as la possibilité, pour un événement donné, de distinguer plusieurs "moments"
47 distincts. Par exemple, dans le cas d'une réunion suivie d'un dîner, il peut être
48 utile de comptabiliser les présents à la réunion d'une part et de compter ceux
49 qui s'inscrivent au repas d'autre part (en général certains participants à la réunion
50 ne restent pas pour le dîner…), de sorte que tu sauras combien de chaises prévoir
51 pour le premier "moment" (la réunion) et pour combien de personnes réserver le
56 <h2>Description de l'événement</h2>
60 <strong>Attention :</strong> si tu souhaites modifier la structure d'un événement alors
61 que des personnes y sont déjà inscrites, contacte préalablement
62 <a href='mailto:contact@polytechnique.org'>l'équipe de Polytechnique.org</a>.
66 <form method="post" action="{$platal->ns}events/edit/{$url_ref}">
68 <table class='bicol' cellspacing='0' cellpadding='0'>
74 Intitulé de l'événement
82 <input type="text" name="intitule" value="{$evt.intitule}" size="45" maxlength="100" />
87 Nom raccourci :<br />
88 <small>(pour les listes de diffusion)</small>
91 <input type="text" name="short_name" size="20" maxlength="20"
92 value="{$evt.short_name}" />
93 <small>(n'utiliser que chiffres, lettres, tiret et point. garder court)</small>
101 <textarea name="descriptif" cols="45" rows="10">{$evt.descriptif}</textarea>
111 Fin des inscriptions :
114 <select name="deadline" onchange='deadlineChange(this)'>
115 <option value='0' {if !$evt.deadline_inscription}selected='selected'{/if}>Jamais</option>
116 <option value='1' {if $evt.deadline_inscription}selected='selected'{/if}>Le…</option>
118 <span id='do_deadline' {if !$evt.deadline_inscription}style='display: none'{/if}>
119 {html_select_date prefix='inscr_' end_year='+5' day_value_format='%02d'
120 field_order='DMY' field_separator=' / ' month_format='%m' time=$evt.deadline_inscription}
127 Notifier lors d'une inscriptions :
130 <select name="subscription_notification">
131 <option value='creator' {if $evt.subscription_notification eq 'creator'}selected='selected'{/if}>le créateur de l'événement</option>
132 <option value='animator' {if $evt.subscription_notification eq 'animator'}selected='selected'{/if}>les animateurs du groupe</option>
133 <option value='both' {if $evt.subscription_notification eq 'both'}selected='selected'{/if}>le créateur de l'événement et les animateurs du groupe</option>
134 <option value='nobody' {if $evt.subscription_notification eq 'nobody'}selected='selected'{/if}>personne</option>
143 Montrer la liste des inscrits aux membres :
144 <label><input type="radio" name="show_participants" value="1" {if $evt.show_participants}checked="checked"{/if} />
146 <label><input type="radio" name="show_participants" value="0" {if !$evt.show_participants}checked="checked"{/if}/>
150 Autoriser les non-membres :
151 <label><input type="radio" name="accept_nonmembre" value="1" {if $evt.accept_nonmembre}checked="checked"{/if} />
153 <label><input type="radio" name="accept_nonmembre" value="0" {if !$evt.accept_nonmembre}checked="checked"{/if}/>
157 Autoriser les invités :
158 <label><input type="radio" name="noinvite" value="0" {if !$evt.noinvite}checked="checked"{/if} /> oui</label>
159 <label><input type="radio" name="noinvite" value="1" {if $evt.noinvite}checked="checked"{/if}/> non</label>
164 Paiement :
165 <select name="paiement_id" id="payid" onchange="document.getElementById('new_pay').style.display=(value < 0?'':'none')">
166 {if $evt.paiement_id eq -2}
167 <option value='-2'>Paiement en attente de validation</option>
169 <option value=''>Pas de paiement</option>
170 <option value='-1' {if $error}selected="selected"{/if}>- Nouveau paiement -</option>
171 {html_options options=$paiements selected=$evt.paiement_id}
175 {if $evt.paiement_id neq -2}
176 <tr id="new_pay" style="display:none">
178 Il faut que tu définisses le texte de l'email de confirmation de paiement. Pour ceci, tu peux adapter le modèle qui suit :
180 <li><strong>Remplace les crochets</strong> ([…]) par le texte que tu désires y voir apparaître.</li>
181 <li><salutation>, <prenom>, <nom>, <montant> et <comment> seront <strong>automatiquement</strong> remplacés par les informations adaptées.</li>
182 <li><a href="wiki_help" class="popup3">{icon name=information} Tu peux utiliser une syntaxe wiki pour formatter ton texte.</a></li>
184 <div id="pay_preview" style="display: none">
185 <strong>Aperçu du texte :</strong>
187 <div id="preview"></div>
190 <textarea name="confirmation" id="payment_text" rows="12" cols="65">{if $payment_message}{$payment_message}{else}<salutation> <prenom> <nom>,
192 Ton inscription à [METS LE NOM DE L'ÉVÉNEMENT ICI] a bien été enregistrée et ton paiement de <montant> € a bien été reçu avec le commentaire suivant :
195 [COMPLÈTE EN PRÉCISANT LA DATE ET LA PERSONNE À CONTACTER]
200 {$smarty.session.user->fullName("promo")}{/if}</textarea><br />
201 {assign var='asso_url' value=$globals->baseurl|cat:'/'|cat:$platal->ns}
202 Page internet de l'événement : <input size="40" name="site" value="{$payment_site|default:$asso->site|default:$asso_url}" /><br />
203 Rendre public le télépaiement :
204 <label><input type="radio" name="payment_public" value="no" {if !t($payment_public)}checked="checked"{/if} />Non</label>
206 <label>Oui<input type="radio" name="payment_public" value="yes" {if t($payment_public)}checked="checked"{/if} /></label><br />
207 Attention : cela aura pour effet de rendre accessible ce télépaiement à tout le monde, même aux personnes non connectées.<br />
208 Le nouveau paiement sera activé automatiquement après validation par le trésorier de Polytechnique.org,
209 ce qui sera fait sous peu.
210 <script type="text/javascript">//<![CDATA[
211 document.getElementById('new_pay').style.display=
212 (document.getElementById('payid').value < 0?'':'none');
214 <input type="submit" name="preview" value="Aperçu" onclick="previewWiki('payment_text', 'preview', true, 'pay_preview'); return false;" />
221 <h2>Déroulement de l'événement</h2>
223 <table class="bicol">
232 le {html_select_date prefix='deb_' end_year='+5' day_value_format='%02d'
233 field_order='DMY' field_separator=' / ' month_format='%m' time=$evt.debut}
234 à {html_select_time use_24_hours=true display_seconds=false
235 time=$evt.debut prefix='deb_' minute_interval=5}
243 le {html_select_date prefix='fin_' end_year='+5' day_value_format='%02d'
244 field_order='DMY' field_separator=' / ' month_format='%m' time=$evt.fin}
245 à {html_select_time use_24_hours=true display_seconds=false
246 time=$evt.fin prefix='fin_' minute_interval=5}
250 {foreach from=$moments item=i}
251 {assign var='moment' value=$items[$i]}
253 <th colspan="2">Moment {$i}</th>
256 <td class="titre">Intitulé :</td>
257 <td><input type="text" name="titre{$i}" value="{$moment.titre}" size="45" maxlength="100" /></td>
260 <td class="titre">Détails pratiques :</td>
261 <td><textarea name="details{$i}" rows="6" cols="45">{$moment.details}</textarea></td>
264 <td class="titre">Tarif :<br /><small>(par participant)</small></td>
265 <td><input type="text" name="montant{$i}" value="{if $moment.montant}{$moment.montant|replace:".":","}{else}0,00{/if}" size="7" maxlength="7" /> € <small>(0 si gratuit)</small></td>
271 {if $evt.eid}<input type="hidden" name="uid" value="{$evt.uid}" />{/if}
272 <input type="submit" name="valid" value="Valider" />
274 <input type="reset" value="Annuler" />
278 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}