iCal now contains yearly events for *all* contacts
[platal.git] / templates / xnetevents / edit.tpl
... / ...
CommitLineData
1{**************************************************************************}
2{* *}
3{* Copyright (C) 2003-2006 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<script type='text/javascript'>
24{literal}
25function deadlineChange(box)
26{
27 var nd = document.getElementById('no_deadline');
28 var dd = document.getElementById('do_deadline');
29
30 if (box.checked) {
31 nd.style.display = 'none';
32 dd.style.display = 'inline';
33 } else {
34 nd.style.display = 'inline';
35 dd.style.display = 'none';
36 }
37}
38{/literal}
39</script>
40
41<h1>{$asso.nom} : {$evt.intitule|default:"Nouvel événement"}</h1>
42
43<p class="descr">
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.
47</p>
48<p class="descr">
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
55 restaurant.
56</p>
57
58<hr />
59
60<form method="post" action="{$platal->ns}events/edit/{$platal->argv[1]}">
61 <table class='bicol' cellspacing='0' cellpadding='0'>
62 <colgroup>
63 <col width='30%' />
64 </colgroup>
65 <tr>
66 <td class='titre'>
67 Intitulé de l'événement&nbsp;:
68 </td>
69 <td>
70 <input type="text" name="intitule" value="{$evt.intitule}" size="45" maxlength="100" />
71 </td>
72 </tr>
73 <tr>
74 <td class='titre'>
75 Raccourci&nbsp;:<br />
76 <small>(pour les mailings listes)</small>
77 </td>
78 <td>
79 <input type="text" name="short_name" size="20" maxlength="20"
80 value="{$evt.short_name|default:$smarty.request.short_name}" />
81 <small><br />(n'utiliser que chiffres, lettres, tiret et point. garder court)</small>
82 </td>
83 </tr>
84 <tr>
85 <td class='titre'>
86 Descriptif&nbsp;:
87 </td>
88 <td>
89 <textarea name="descriptif" cols="45" rows="10">{$evt.descriptif}</textarea>
90 </td>
91 </tr>
92 <tr>
93 <td class='titre'>
94 Date de début :
95 </td>
96 <td>
97 le {html_select_date prefix='deb_' end_year='+5' day_value_format='%02d'
98 field_order='DMY' field_separator=' / ' month_format='%m' time=$evt.debut}
99 à {html_select_time use_24_hours=true display_seconds=false
100 time=$evt.debut prefix='deb_' minute_interval=5}
101 </td>
102 </tr>
103 <tr>
104 <td class='titre'>
105 Date de fin :
106 </td>
107 <td>
108 le {html_select_date prefix='fin_' end_year='+5' day_value_format='%02d'
109 field_order='DMY' field_separator=' / ' month_format='%m' time=$evt.fin}
110 à {html_select_time use_24_hours=true display_seconds=false
111 time=$evt.fin prefix='fin_' minute_interval=5}
112 </td>
113 </tr>
114 <tr>
115 <td class='titre'>
116 Fin des inscriptions&nbsp;:
117 </td>
118 <td>
119 <input type='checkbox' name='deadline' value='1' onchange='deadlineChange(this)'
120 {if $evt.deadline_inscription}checked='checked'{/if} />
121 <span id='no_deadline' {if $evt.deadline_inscription}style='display: none'{/if}>
122 Pas de deadline
123 </span>
124 <span id='do_deadline' {if !$evt.deadline_inscription}style='display: none'{/if}>
125 le {html_select_date prefix='inscr_' end_year='+5' day_value_format='%02d'
126 field_order='DMY' field_separator=' / ' month_format='%m' time=$evt.deadline_inscription}
127 compris.
128 </span>
129 </td>
130 </tr>
131 <tr>
132 <td class='titre'>
133 Options&nbsp;:
134 </td>
135 <td>
136 Montrer la liste des inscrits aux membres :
137 <input type="radio" name="show_participants" value="1" {if $evt.show_participants}checked="checked"{/if} /> oui
138 <input type="radio" name="show_participants" value="0" {if !$evt.show_participants}checked="checked"{/if}/> non
139
140 <br />
141 Autoriser les invités :
142 <input type="radio" name="noinvite" value="0" {if !$evt.noinvite}checked="checked"{/if} /> oui
143 <input type="radio" name="noinvite" value="1" {if $evt.noinvite}checked="checked"{/if}/> non
144 </td>
145 </tr>
146 <tr>
147 <td>Référence de paiement&nbsp;:</td>
148 <td>
149 <select name="paiement_id" onchange="document.getElementById('new_pay').style.display=(value &lt; 0?'block':'none')">
150 {if $evt.paiement_id eq -2}
151 <option value='-2'>Paiement en attente de validation</option>
152 {/if}
153 <option value=''>Pas de paiement</option>
154 <option value='-1'>- Nouveau paiement -</option>
155 {html_options options=$paiements selected=$evt.paiement_id}
156 </select>
157 </td>
158 </tr>
159 </table>
160
161 <table class='bicol' cellspacing='0' cellpadding='0' id="new_pay" style="display:none">
162 <tr>
163 <th>
164 Nouveau paiement, message de confirmation&nbsp;:
165 </th>
166 </tr>
167 <tr>
168 <td>
169 <textarea name="confirmation" rows="12" cols="65">&lt;salutation&gt; &lt;prenom&gt; &lt;nom&gt;,
170
171 Ton inscription à [METS LE NOM DE L'EVENEMENT ICI] a bien été enregistrée et ton paiement de &lt;montant&gt; a bien été reçu.
172 [COMPLETE EN PRECISANT LA DATE ET LA PERSONNE A CONTACTER]
173
174 A très bientot,
175
176 [SIGNE ICI]</textarea>
177 </td>
178 </tr>
179 <tr>
180 <td>
181 Page internet de l'événement&nbsp;: <input size="40" name="site" value="{$asso.site}" />
182 </td>
183 </tr>
184 <tr>
185 <td>
186 Le nouveau paiement n'est pas rajouté automatiquement mais doit être
187 validé par le trésorier de l'association Polytechnique.org, ce qui sera
188 fait sous peu.
189 </td>
190 </tr>
191 </table>
192
193 {foreach from=$moments item=i}
194 {assign var='moment' value=$items[$i]}
195 <hr />
196 <table>
197 <tr><td colspan="2" align="center"><strong>"Moment" {$i}</strong></td></tr>
198 <tr>
199 <td>Intitulé :</td>
200 <td><input type="text" name="titre{$i}" value="{$moment.titre}" size="45" maxlength="100" /></td>
201 </tr>
202 <tr>
203 <td>Détails pratiques :</td>
204 <td><textarea name="details{$i}" rows="6" cols="45">{$moment.details}</textarea></td>
205 </tr>
206 <tr>
207 <td>Montant par participant :<br /><small>(0 si gratuit)</small></td>
208 <td><input type="text" name="montant{$i}" value="{if $moment.montant}{$moment.montant|replace:".":","}{else}0,00{/if}" size="7" maxlength="7" /> &#8364;</td>
209 </tr>
210 </table>
211 {/foreach}
212
213 <div class="center">
214 <input type="submit" name="valid" value="Valider" />
215 &nbsp;
216 <input type="reset" value="Annuler" />
217 </div>
218
219</form>
220{* vim:set et sw=2 sts=2 sws=2: *}