Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
5e1513f6 | 3 | {* Copyright (C) 2003-2011 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 | ||
34ade5a6 | 23 | <h1>{if $asso->nom}{$asso->nom} : {/if}Éditer l'accueil</h1> |
0337d704 | 24 | |
7b2413f6 | 25 | <form method="post" action="{$platal->ns}edit" enctype="multipart/form-data"> |
c4cfd6eb | 26 | {xsrf_token_field} |
0337d704 | 27 | {if $super} |
28 | <table cellpadding="0" cellspacing="0" class='tiny'> | |
29 | <tr> | |
30 | <td class="titre"> | |
77af6562 | 31 | Nom : |
0337d704 | 32 | </td> |
33 | <td> | |
34ade5a6 | 34 | <input type="text" size="40" value="{$asso->nom}" name="nom" /> |
0337d704 | 35 | </td> |
36 | </tr> | |
37 | <tr> | |
38 | <td class="titre"> | |
77af6562 | 39 | Diminutif : |
0337d704 | 40 | </td> |
41 | <td> | |
34ade5a6 | 42 | <input type="text" size="40" value="{$asso->diminutif}" name="diminutif" /> |
0337d704 | 43 | </td> |
44 | </tr> | |
45 | <tr> | |
46 | <td class="titre"> | |
77af6562 | 47 | Domaine DNS : |
0337d704 | 48 | </td> |
49 | <td> | |
34ade5a6 | 50 | <input type="text" size="40" value="{$asso->mail_domain}" name="mail_domain" /> |
0337d704 | 51 | </td> |
52 | </tr> | |
53 | <tr> | |
54 | <td class="titre"> | |
e8439508 | 55 | Catégorie : |
0337d704 | 56 | </td> |
57 | <td> | |
58 | <select name="cat"> | |
51fb3b6f SJ |
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> | |
0337d704 | 63 | </select> |
64 | </td> | |
65 | </tr> | |
66 | <tr> | |
67 | <td class="titre"> | |
77af6562 | 68 | Domaine : |
0337d704 | 69 | </td> |
70 | <td> | |
71 | <select name="dom"> | |
9fce7016 | 72 | <option value=""> </option> |
0337d704 | 73 | {iterate from=$dom item=d} |
34ade5a6 | 74 | <option value="{$d.id}" {if $d.id eq $asso->dom}selected="selected"{/if}>{$d.nom} [{$d.cat}]</option> |
0337d704 | 75 | {/iterate} |
76 | </select> | |
77 | </td> | |
78 | </tr> | |
c2f19630 SJ |
79 | <tr> |
80 | <td class="titre center" colspan="2"> | |
e1406965 | 81 | <label><input type="checkbox" value="1" name="ax" {if $asso->ax}checked="checked"{/if} /> |
004ff79e SJ |
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> | |
c2f19630 SJ |
84 | </td> |
85 | </tr> | |
0337d704 | 86 | </table> |
87 | <p></p> | |
88 | {/if} | |
c2f19630 | 89 | |
0337d704 | 90 | <table cellpadding="0" cellspacing="0" class='tiny'> |
91 | <tr> | |
92 | <td class="titre"> | |
77af6562 | 93 | Logo : |
0337d704 | 94 | </td> |
95 | <td> | |
96 | <input type="file" name="logo" /> | |
97 | </td> | |
98 | </tr> | |
99 | ||
100 | <tr> | |
101 | <td class="titre"> | |
77af6562 | 102 | Site web : |
0337d704 | 103 | </td> |
104 | <td> | |
34ade5a6 | 105 | <input type="text" size="40" value="{$asso->site|default:"http://"}" name="site" /> |
0337d704 | 106 | </td> |
107 | </tr> | |
108 | ||
109 | <tr> | |
110 | <td class="titre"> | |
77af6562 | 111 | Contact : |
0337d704 | 112 | </td> |
113 | <td> | |
34ade5a6 | 114 | <input type="text" size="40" name="resp" value="{$asso->resp}" /> |
0337d704 | 115 | </td> |
116 | </tr> | |
117 | ||
118 | <tr> | |
119 | <td class="titre"> | |
faefdbb7 | 120 | Adresse email : |
0337d704 | 121 | </td> |
122 | <td> | |
34ade5a6 | 123 | <input type="text" size="40" name="mail" value="{$asso->mail}" /> |
0337d704 | 124 | </td> |
125 | </tr> | |
126 | ||
127 | <tr> | |
128 | <td class="titre"> | |
77af6562 | 129 | Forum : |
0337d704 | 130 | </td> |
131 | <td> | |
34ade5a6 | 132 | <input type="text" size="40" name="forum" value="{$asso->forum}" /> |
0337d704 | 133 | </td> |
134 | </tr> | |
135 | ||
136 | <tr> | |
137 | <td class="titre"> | |
77af6562 | 138 | Inscription possible : |
19465af7 | 139 | </td> |
140 | <td> | |
141 | <input type="radio" value="1" id="inscr_yes" | |
34ade5a6 | 142 | {if $asso->inscriptible eq 1}checked="checked"{/if} |
19465af7 | 143 | name="inscriptible" /> |
144 | <label for="inscr_yes">oui</label> | |
145 | <input type="radio" value="0" id="inscr_no" | |
34ade5a6 | 146 | {if $asso->inscriptible neq 1}checked="checked"{/if} |
19465af7 | 147 | name="inscriptible" /> |
148 | <label for="inscr_no">non</label> | |
149 | </td> | |
150 | </tr> | |
151 | ||
152 | <tr> | |
153 | <td class="titre"> | |
77af6562 | 154 | Lien pour l'inscription :<br /> |
a7de4ef7 | 155 | <em>laisser vide par défaut</em> |
0337d704 | 156 | </td> |
157 | <td> | |
34ade5a6 | 158 | <input type="text" size="40" name="sub_url" value="{$asso->sub_url}" /> |
0337d704 | 159 | </td> |
160 | </tr> | |
161 | ||
162 | <tr> | |
30032578 | 163 | <td class="titre"> |
77af6562 | 164 | Lien pour la désinscription :<br/> |
a7de4ef7 | 165 | <em>laisser vide par défaut</em> |
30032578 | 166 | </td> |
167 | <td> | |
34ade5a6 | 168 | <input type="text" size="40" name="unsub_url" value="{$asso->unsub_url}" /> |
30032578 | 169 | </td> |
170 | </tr> | |
171 | ||
172 | <tr> | |
73ac0916 SJ |
173 | <td class="titre"> |
174 | Message de bienvenue :<br /> | |
175 | <em>envoyé à l'inscription</em> | |
176 | </td> | |
177 | <td> | |
178 | <textarea cols='40' rows='8' name='welcome_msg'>{$asso->welcome_msg}</textarea> | |
179 | </td> | |
180 | </tr> | |
181 | ||
182 | <tr> | |
0337d704 | 183 | <td class="titre center" colspan="2"> |
2c86d368 FB |
184 | Diffusion de la liste des membres : |
185 | <select name="pub"> | |
34ade5a6 FB |
186 | <option value="public" {if $asso->pub eq 'public'}selected="selected"{/if}>Publique</option> |
187 | <option value="membre" {if $asso->pub eq 'membre'}selected="selected"{/if}>Aux membres du groupe</option> | |
188 | <option value="private" {if $asso->pub eq 'private'}selected="selected"{/if}>Aux animateurs du groupe</option> | |
2c86d368 | 189 | </select> |
0337d704 | 190 | </td> |
c73a312d | 191 | </tr> |
359f9ca3 FB |
192 | <tr> |
193 | <td class="titre center" colspan="2"> | |
34ade5a6 | 194 | <label><input type="checkbox" value="1" name="notif_unsub" {if $asso->notif_unsub}checked="checked"{/if} /> |
a44f405e | 195 | prévenir les animateurs lors de la désinscription d'un membre</label> |
359f9ca3 FB |
196 | </td> |
197 | </tr> | |
0337d704 | 198 | </table> |
199 | ||
200 | <div class="center"> | |
794feea7 FB |
201 | <input type="submit" name="submit" value="Enregistrer" /> |
202 | </div> | |
203 | ||
204 | <div class="center"> | |
794feea7 | 205 | <div id="preview_descr" style="display: none; text-align: justify"></div> |
0337d704 | 206 | <br /> |
794feea7 | 207 | <a href="wiki_help" class="popup3"> |
77af6562 | 208 | {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée pour la description. |
794feea7 | 209 | </a> |
e46cf8c4 | 210 | <textarea name="descr" cols="70" rows="15" id="descr">{$asso->descr}</textarea> |
794feea7 FB |
211 | <input type="submit" name="preview" value="Aperçu de la description" |
212 | onclick="previewWiki('descr', 'preview_descr', true, 'preview_descr'); return false;" /><br /> | |
0337d704 | 213 | <input type="submit" name="submit" value="Enregistrer" /> |
214 | </div> | |
215 | </form> | |
216 | ||
a7de4ef7 | 217 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |