Fixes vim mode line.
[platal.git] / templates / xnetgrp / edit.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2014 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 <h1>{if $asso->nom}{$asso->nom}&nbsp;: {/if}Éditer l'accueil</h1>
24
25 <form method="post" action="{$platal->ns}edit" enctype="multipart/form-data">
26   {xsrf_token_field}
27   {if $super}
28   <table cellpadding="0" cellspacing="0" class='tiny'>
29     <tr>
30       <td class="titre">
31         Nom&nbsp;:
32       </td>
33       <td>
34         <input type="text" size="40" value="{if $error}{$nom}{else}{$asso->nom}{/if}" name="nom" />
35       </td>
36     </tr>
37     <tr>
38       <td class="titre">
39         Diminutif&nbsp;:
40       </td>
41       <td>
42         <input type="text" size="40" value="{if $error}{$diminutif}{else}{$asso->diminutif}{/if}" name="diminutif" />
43       </td>
44     </tr>
45     <tr>
46       <td class="titre">
47         Domaine DNS&nbsp;:
48       </td>
49       <td>
50         <input type="text" size="40" value="{if $error}{$mail_domain}{else}{$asso->mail_domain}{/if}" name="mail_domain" />
51       </td>
52     </tr>
53     <tr>
54       <td class="titre">
55         Catégorie&nbsp;:
56       </td>
57       <td>
58         <select name="cat">
59           <option value="groupesx" {if $cat eq 'GroupesX'}selected="selected"{/if}>Groupes X</option>
60           <option value="binets" {if $cat eq 'Binets'}selected="selected"{/if}>Binets</option>
61           <option value="promotions" {if $cat eq 'Promotions'}selected="selected"{/if}>Promotions</option>
62           <option value="institutions" {if $cat eq 'Institutions'}selected="selected"{/if}>Institutions</option>
63         </select>
64       </td>
65     </tr>
66     <tr>
67       <td class="titre">
68         Domaine&nbsp;:
69       </td>
70       <td>
71         <select name="dom">
72           <option value="">&nbsp;</option>
73           {iterate from=$domains item=d}
74           <option value="{$d.id}" {if $d.id eq $dom}selected="selected"{/if}>{$d.nom} [{$d.cat}]</option>
75           {/iterate}
76         </select>
77       </td>
78     </tr>
79     <tr>
80       <td class="titre center" colspan="2">
81         <label><input type="checkbox" value="1" name="ax" {if $ax}checked="checked"{/if} />
82         groupe agréé par l'AX</label> le <input type="text" size="10" maxlength="10" value="{if $error}{$axDate}{$asso->axDate}{/if}" name="axDate" />
83         <small>(ex: 01/01/1970)</small>
84       </td>
85     </tr>
86     <tr>
87       <td class="titre center" colspan="2">
88         <label><input type="checkbox" value="1" name="disable_mails" {if $disable_mails}checked="checked"{/if} />
89         désactiver l'envoi de mails</label>
90       </td>
91     </tr>
92   </table>
93   <p></p>
94   {/if}
95
96   <table cellpadding="0" cellspacing="0" class='tiny'>
97     <tr>
98       <td class="titre">
99         Logo&nbsp;:
100       </td>
101       <td>
102         <input type="file" name="logo" />
103       </td>
104     </tr>
105
106     <tr>
107       <td class="titre">
108         Site web&nbsp;:
109       </td>
110       <td>
111         <input type="text" size="40" value="{if $error}{$site}{else}{$asso->site|default:"http://"}{/if}" name="site" />
112       </td>
113     </tr>
114
115     <tr>
116       <td class="titre">
117         Contact&nbsp;:
118       </td>
119       <td>
120         <input type="text" size="40" name="resp" value="{if $error}{$resp}{else}{$asso->resp}{/if}" />
121       </td>
122     </tr>
123
124     <tr>
125       <td class="titre">
126         Adresse email&nbsp;:
127       </td>
128       <td>
129         <input type="text" size="40" name="mail" value="{if $error}{$mail}{else}{$asso->mail}{/if}" />
130       </td>
131     </tr>
132
133     <tr>
134       <td class="titre">Téléphone</td>
135       <td>
136         <input type="text" maxlength="28" name="phone" value="{if $error}{$phone}{else}{$asso->phone}{/if}" />
137       </td>
138     </tr>
139     <tr>
140       <td class="titre">Fax</td>
141       <td>
142         <input type="text" maxlength="28" name="fax" value="{if $error}{$fax}{else}{$asso->fax}{/if}" />
143       </td>
144     </tr>
145     <tr>
146       <td class="titre">Adresse</td>
147       <td>
148         <textarea name="address" cols="30" rows="4">{if $error}{$address}{else}{$asso->address}{/if}</textarea>
149       </td>
150     </tr>
151
152     <tr>
153       <td class="titre">
154         Forum&nbsp;:
155       </td>
156       <td>
157         <input type="text" size="40" name="forum" value="{if $error}{$forum}{else}{$asso->forum}{/if}" />
158       </td>
159     </tr>
160
161     <tr>
162       <td class="titre">
163         Inscription possible&nbsp;:
164       </td>
165       <td>
166         <label><input type="radio" value="1" {if $inscriptible eq 1}checked="checked"{/if} name="inscriptible" />oui</label>
167         <label><input type="radio" value="0" {if $inscriptible neq 1}checked="checked"{/if} name="inscriptible" />non</label>
168       </td>
169     </tr>
170
171     <tr>
172       <td class="titre">
173         Notifier les demandes d'inscriptions&nbsp;:
174       </td>
175       <td>
176         <label><input type="radio" value="1" {if $notify_all}checked="checked"{/if} name="notify_all"
177           onclick="$('#notification').hide()"/>à tous les animateurs</label>
178         <label><input type="radio" value="0" {if !$notify_all}checked="checked"{/if} name="notify_all"
179           onclick="$('#notification').show()" />seulement à certains</label>
180       </td>
181     </tr>
182     <tr id="notification" {if $notify_all}style="display: none"{/if}>
183       <td></td>
184       <td>
185       {if $notified || $unnotified}
186         <ul>
187         {if $notified}
188         {foreach from=$notified item=user}
189           <li>
190             <label><input type="checkbox" name="to_notify_{$user->id()}" checked="checked" />{$user->fullName(true)}</label>
191           </li>
192         {/foreach}
193         {/if}
194         {if $unnotified}
195         {foreach from=$unnotified item=user}
196           <li>
197             <label><input type="checkbox" name="to_notify_{$user->id()}" />{$user->fullName(true)}</label>
198           </li>
199         {/foreach}
200         {/if}
201         </ul>
202       {/if}
203       </td>
204     </tr>
205
206     <tr>
207       <td class="titre">
208         Lien pour l'inscription&nbsp;:<br />
209         <em>laisser vide par défaut</em>
210       </td>
211       <td>
212         <input type="text" size="40" name="sub_url" value="{if $error}{$sub_url}{else}{$asso->sub_url}{/if}" />
213       </td>
214     </tr>
215
216     <tr>
217       <td class="titre">
218         Lien pour la désinscription&nbsp;:<br/>
219         <em>laisser vide par défaut</em>
220       </td>
221       <td>
222         <input type="text" size="40" name="unsub_url" value="{if $error}{$unsub_url}{else}{$asso->unsub_url}{/if}" />
223       </td>
224     </tr>
225
226     <tr>
227       <td class="titre">
228         Message de bienvenue&nbsp;:<br />
229         <em>envoyé à l'inscription</em>
230       </td>
231       <td>
232         <textarea cols='40' rows='8' name='welcome_msg'>{if $error}{$welcome_msg}{else}{$asso->welcome_msg}{/if}</textarea>
233       </td>
234     </tr>
235
236     <tr>
237       <td class="titre center" colspan="2">
238         Diffusion de la liste des membres&nbsp;:
239         <select name="pub">
240           <option value="public" {if $pub eq 'public'}selected="selected"{/if}>Publique</option>
241           <option value="membre" {if $pub eq 'membre'}selected="selected"{/if}>Aux membres du groupe</option>
242           <option value="private" {if $pub eq 'private'}selected="selected"{/if}>Aux animateurs du groupe</option>
243         </select>
244       </td>
245     </tr>
246     <tr>
247       <td class="titre center" colspan="2">
248         <label><input type="checkbox" value="1" name="notif_unsub" {if $notif_unsub}checked="checked"{/if} />
249         prévenir les animateurs lors de la désinscription d'un membre</label>
250       </td>
251     </tr>
252   </table>
253
254   <div class="center">
255     <input type="submit" name="submit" value="Enregistrer" />
256   </div>
257
258   <div class="center">
259     <div id="preview_descr" style="display: none; text-align: justify"></div>
260     <br />
261     <a href="wiki_help" class="popup3">
262       {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée pour la description.
263     </a>
264     <textarea name="descr" cols="70" rows="15" id="descr">{if $error}{$descr}{else}{$asso->descr}{/if}</textarea>
265     <input type="submit" name="preview" value="Aperçu de la description"
266            onclick="previewWiki('descr', 'preview_descr', true, 'preview_descr'); return false;" /><br />
267     <input type="submit" name="submit" value="Enregistrer" />
268   </div>
269 </form>
270
271 {* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}