Merge remote branch 'origin/platal-1.0.0'
[platal.git] / templates / xnetevents / edit.tpl
... / ...
CommitLineData
1{**************************************************************************}
2{* *}
3{* Copyright (C) 2003-2010 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 dd = document.getElementById('do_deadline');
28
29 if (box.value == 1) {
30 dd.style.display = 'inline';
31 } else {
32 dd.style.display = 'none';
33 }
34}
35{/literal}
36</script>
37
38<h1>{$asso->nom}&nbsp;: {$evt.intitule|default:"Nouvel événement"}</h1>
39
40<p class="descr">
41 Un événement peut être une réunion, un séminaire, une conférence, un voyage promo&hellip;
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.
44</p>
45<p class="descr">
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&hellip;), 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
52 restaurant.
53</p>
54
55<hr />
56<h2>Description de l'événement</h2>
57
58{if $evt.eid}
59<p class='erreur'>
60 <strong>Attention&nbsp;:</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>.
63</p>
64{/if}
65
66<form method="post" action="{$platal->ns}events/edit/{$url_ref}">
67 {xsrf_token_field}
68 <table class='bicol' cellspacing='0' cellpadding='0'>
69 <colgroup>
70 <col width='25%' />
71 </colgroup>
72 <tr>
73 <th colspan="2">
74 Intitulé de l'événement
75 </th>
76 </tr>
77 <tr>
78 <td class='titre'>
79 Nom complet&nbsp;:
80 </td>
81 <td>
82 <input type="text" name="intitule" value="{$evt.intitule}" size="45" maxlength="100" />
83 </td>
84 </tr>
85 <tr>
86 <td class='titre'>
87 Nom raccourci&nbsp;:<br />
88 <small>(pour les listes de diffusion)</small>
89 </td>
90 <td>
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>
94 </td>
95 </tr>
96 <tr>
97 <td class='titre'>
98 Descriptif&nbsp;:
99 </td>
100 <td>
101 <textarea name="descriptif" cols="45" rows="10">{$evt.descriptif}</textarea>
102 </td>
103 </tr>
104 <tr>
105 <th colspan="2">
106 Inscriptions
107 </th>
108 </tr>
109 <tr>
110 <td class='titre'>
111 Fin des inscriptions&nbsp;:
112 </td>
113 <td>
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&hellip;</option>
117 </select>
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}
121 compris.
122 </span>
123 </td>
124 </tr>
125 <tr>
126 <td class='titre'>
127 Options&nbsp;:
128 </td>
129 <td>
130 Montrer la liste des inscrits aux membres&nbsp;:
131 <label><input type="radio" name="show_participants" value="1" {if $evt.show_participants}checked="checked"{/if} />
132 oui</label>
133 <label><input type="radio" name="show_participants" value="0" {if !$evt.show_participants}checked="checked"{/if}/>
134 non</label>
135
136 <br />
137 Autoriser les non-membres&nbsp;:
138 <label><input type="radio" name="accept_nonmembre" value="1" {if $evt.accept_nonmembre}checked="checked"{/if} />
139 oui</label>
140 <label><input type="radio" name="accept_nonmembre" value="0" {if !$evt.accept_nonmembre}checked="checked"{/if}/>
141 non</label>
142
143 <br />
144 Autoriser les invités&nbsp;:
145 <label><input type="radio" name="noinvite" value="0" {if !$evt.noinvite}checked="checked"{/if} /> oui</label>
146 <label><input type="radio" name="noinvite" value="1" {if $evt.noinvite}checked="checked"{/if}/> non</label>
147 </td>
148 </tr>
149 <tr>
150 <th colspan="2">
151 Paiement&nbsp;:&nbsp;
152 <select name="paiement_id" id="payid" onchange="document.getElementById('new_pay').style.display=(value &lt; 0?'':'none')">
153 {if $evt.paiement_id eq -2}
154 <option value='-2'>Paiement en attente de validation</option>
155 {/if}
156 <option value=''>Pas de paiement</option>
157 <option value='-1' {if $paiement_message}selected="selected"{/if}>- Nouveau paiement -</option>
158 {html_options options=$paiements selected=$evt.paiement_id}
159 </select>
160 </th>
161 </tr>
162 <tr id="new_pay" style="display:none">
163 <td colspan="2">
164 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&nbsp;:
165 <ul>
166 <li><strong>Remplace les crochets</strong> ([&hellip;]) par le texte que tu désires y voir apparaître.</li>
167 <li>&lt;salutation&gt;, &lt;prenom&gt;, &lt;nom&gt;, &lt;montant&gt; et &lt;comment&gt; seront <strong>automatiquement</strong> remplacés par les informations adaptées.</li>
168 <li><a href="wiki_help" class="popup3">{icon name=information} Tu peux utiliser une syntaxe wiki pour formatter ton texte.</a></li>
169 </ul>
170 {javascript name=ajax}
171 <div id="pay_preview" style="display: none">
172 <strong>Aperçu du texte&nbsp;:</strong>
173 <hr />
174 <div id="preview"></div>
175 <hr />
176 </div>
177 <textarea name="confirmation" id="payment_text" rows="12" cols="65">{if $paiement_message}{$paiement_message}{else}&lt;salutation&gt; &lt;prenom&gt; &lt;nom&gt;,
178
179Ton inscription à [METS LE NOM DE L'ÉVÉNEMENT ICI] a bien été enregistrée et ton paiement de &lt;montant&gt; a bien
180été reçu avec le commentaire suivant&nbsp;:
181&lt;comment&gt;
182
183[COMPLÈTE EN PRÉCISANT LA DATE ET LA PERSONNE À CONTACTER]
184
185À très bientôt,
186
187--
188{assign var="profile" value=$smarty.session.user->profile()}
189{$profile->fullName("promo")}{/if}</textarea><br />
190 {assign var='asso_url' value=$globals->baseurl|cat:'/'|cat:$platal->ns}
191 Page internet de l'événement&nbsp;: <input size="40" name="site" value="{$paiement_site|default:$asso->site|default:$asso_url}" /><br />
192 Le nouveau paiement sera activé automatiquement après validation par le trésorier de Polytechnique.org,
193 ce qui sera fait sous peu.
194 <script type="text/javascript">//<![CDATA[
195 document.getElementById('new_pay').style.display=
196 (document.getElementById('payid').value < 0?'':'none');
197 //]]></script><br />
198 <input type="submit" name="preview" value="Aperçu" onclick="previewWiki('payment_text', 'preview', true, 'pay_preview'); return false;" />
199 </td>
200 </tr>
201 </table>
202
203 <hr />
204 <h2>Déroulement de l'événement</h2>
205
206 <table class="bicol">
207 <colgroup>
208 <col width='25%' />
209 </colgroup>
210 <tr>
211 <td class='titre'>
212 Début&nbsp;:
213 </td>
214 <td>
215 le {html_select_date prefix='deb_' end_year='+5' day_value_format='%02d'
216 field_order='DMY' field_separator=' / ' month_format='%m' time=$evt.debut}
217 à {html_select_time use_24_hours=true display_seconds=false
218 time=$evt.debut prefix='deb_' minute_interval=5}
219 </td>
220 </tr>
221 <tr>
222 <td class='titre'>
223 Fin&nbsp;:
224 </td>
225 <td>
226 le {html_select_date prefix='fin_' end_year='+5' day_value_format='%02d'
227 field_order='DMY' field_separator=' / ' month_format='%m' time=$evt.fin}
228 à {html_select_time use_24_hours=true display_seconds=false
229 time=$evt.fin prefix='fin_' minute_interval=5}
230 </td>
231 </tr>
232
233 {foreach from=$moments item=i}
234 {assign var='moment' value=$items[$i]}
235 <tr>
236 <th colspan="2">Moment {$i}</th>
237 </tr>
238 <tr>
239 <td class="titre">Intitulé&nbsp;:</td>
240 <td><input type="text" name="titre{$i}" value="{$moment.titre}" size="45" maxlength="100" /></td>
241 </tr>
242 <tr>
243 <td class="titre">Détails pratiques&nbsp;:</td>
244 <td><textarea name="details{$i}" rows="6" cols="45">{$moment.details}</textarea></td>
245 </tr>
246 <tr>
247 <td class="titre">Tarif&nbsp;:<br /><small>(par participant)</small></td>
248 <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>
249 </tr>
250 {/foreach}
251 </table>
252
253 <div class="center">
254 {if $evt.eid}<input type="hidden" name="organisateur_uid" value="{$evt.organisateur_uid}" />{/if}
255 <input type="submit" name="valid" value="Valider" />
256 &nbsp;
257 <input type="reset" value="Annuler" />
258 </div>
259
260</form>
261{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}