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