Fixes selection of alias and ax ways of loging.
[platal.git] / templates / xnetgrp / edit.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2011 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="{$asso->nom}" 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="{$asso->diminutif}" 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="{$asso->mail_domain}" 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 $asso->cat eq 'GroupesX'}selected="selected"{/if}>Groupes X</option>
60           <option value="binets" {if $asso->cat eq 'Binets'}selected="selected"{/if}>Binets</option>
61           <option value="promotions" {if $asso->cat eq 'Promotions'}selected="selected"{/if}>Promotions</option>
62           <option value="institutions" {if $asso->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=$dom item=d}
74           <option value="{$d.id}" {if $d.id eq $asso->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 $asso->ax}checked="checked"{/if} />
82         groupe agréé par l'AX</label> le <input type="text" size="10" maxlength="10" value="{$asso->axDate}" name="axDate" />
83         <small>(ex: 01/01/1970)</small>
84       </td>
85     </tr>
86   </table>
87   <p></p>
88   {/if}
89
90   <table cellpadding="0" cellspacing="0" class='tiny'>
91     <tr>
92       <td class="titre">
93         Logo&nbsp;:
94       </td>
95       <td>
96         <input type="file" name="logo" />
97       </td>
98     </tr>
99
100     <tr>
101       <td class="titre">
102         Site web&nbsp;:
103       </td>
104       <td>
105         <input type="text" size="40" value="{$asso->site|default:"http://"}" name="site" />
106       </td>
107     </tr>
108
109     <tr>
110       <td class="titre">
111         Contact&nbsp;:
112       </td>
113       <td>
114         <input type="text" size="40" name="resp" value="{$asso->resp}" />
115       </td>
116     </tr>
117
118     <tr>
119       <td class="titre">
120         Adresse email&nbsp;:
121       </td>
122       <td>
123         <input type="text" size="40" name="mail" value="{$asso->mail}" />
124       </td>
125     </tr>
126
127     <tr>
128       <td class="titre">Téléphone</td>
129       <td>
130         <input type="text" maxlength="28" name="phone" value="{$asso->phone}" />
131       </td>
132     </tr>
133     <tr>
134       <td class="titre">Fax</td>
135       <td>
136         <input type="text" maxlength="28" name="fax" value="{$asso->fax}" />
137       </td>
138     </tr>
139     <tr>
140       <td class="titre">Adresse</td>
141       <td>
142         <textarea name="address" cols="30" rows="4">{$asso->address}</textarea>
143       </td>
144     </tr>
145
146     <tr>
147       <td class="titre">
148         Forum&nbsp;:
149       </td>
150       <td>
151         <input type="text" size="40" name="forum" value="{$asso->forum}" />
152       </td>
153     </tr>
154
155     <tr>
156       <td class="titre">
157         Inscription possible&nbsp;:
158       </td>
159       <td>
160         <input type="radio" value="1" id="inscr_yes"
161           {if $asso->inscriptible eq 1}checked="checked"{/if}
162           name="inscriptible" />
163         <label for="inscr_yes">oui</label>
164         <input type="radio" value="0" id="inscr_no"
165           {if $asso->inscriptible neq 1}checked="checked"{/if}
166           name="inscriptible" />
167         <label for="inscr_no">non</label>
168       </td>
169     </tr>
170
171     <tr>
172       <td class="titre">
173         Lien pour l'inscription&nbsp;:<br />
174         <em>laisser vide par défaut</em>
175       </td>
176       <td>
177         <input type="text" size="40" name="sub_url" value="{$asso->sub_url}" />
178       </td>
179     </tr>
180
181     <tr>
182       <td class="titre">
183         Lien pour la désinscription&nbsp;:<br/>
184         <em>laisser vide par défaut</em>
185       </td>
186       <td>
187         <input type="text" size="40" name="unsub_url" value="{$asso->unsub_url}" />
188       </td>
189     </tr>
190
191     <tr>
192       <td class="titre">
193         Message de bienvenue&nbsp;:<br />
194         <em>envoyé à l'inscription</em>
195       </td>
196       <td>
197         <textarea cols='40' rows='8' name='welcome_msg'>{$asso->welcome_msg}</textarea>
198       </td>
199     </tr>
200
201     <tr>
202       <td class="titre center" colspan="2">
203         Diffusion de la liste des membres&nbsp;:
204         <select name="pub">
205           <option value="public" {if $asso->pub eq 'public'}selected="selected"{/if}>Publique</option>
206           <option value="membre" {if $asso->pub eq 'membre'}selected="selected"{/if}>Aux membres du groupe</option>
207           <option value="private" {if $asso->pub eq 'private'}selected="selected"{/if}>Aux animateurs du groupe</option>
208         </select>
209       </td>
210     </tr>
211     <tr>
212       <td class="titre center" colspan="2">
213         <label><input type="checkbox" value="1" name="notif_unsub" {if $asso->notif_unsub}checked="checked"{/if} />
214         prévenir les animateurs lors de la désinscription d'un membre</label>
215       </td>
216     </tr>
217   </table>
218
219   <div class="center">
220     <input type="submit" name="submit" value="Enregistrer" />
221   </div>
222
223   <div class="center">
224     <div id="preview_descr" style="display: none; text-align: justify"></div>
225     <br />
226     <a href="wiki_help" class="popup3">
227       {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée pour la description.
228     </a>
229     <textarea name="descr" cols="70" rows="15" id="descr">{$asso->descr}</textarea>
230     <input type="submit" name="preview" value="Aperçu de la description"
231            onclick="previewWiki('descr', 'preview_descr', true, 'preview_descr'); return false;" /><br />
232     <input type="submit" name="submit" value="Enregistrer" />
233   </div>
234 </form>
235
236 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}