Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
8d84c630 | 3 | {* Copyright (C) 2003-2009 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 | ||
c1d620b3 | 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> | |
34 | <input type="text" size="40" value="{$asso.nom}" name="nom" /> | |
35 | </td> | |
36 | </tr> | |
37 | <tr> | |
38 | <td class="titre"> | |
77af6562 | 39 | Diminutif : |
0337d704 | 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"> | |
77af6562 | 47 | Domaine DNS : |
0337d704 | 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"> | |
e8439508 | 55 | Catégorie : |
0337d704 | 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"> | |
77af6562 | 68 | Domaine : |
0337d704 | 69 | </td> |
70 | <td> | |
71 | <select name="dom"> | |
72 | <option value=""></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> | |
c2f19630 SJ |
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> | |
83 | </td> | |
84 | </tr> | |
0337d704 | 85 | </table> |
86 | <p></p> | |
87 | {/if} | |
c2f19630 | 88 | |
0337d704 | 89 | <table cellpadding="0" cellspacing="0" class='tiny'> |
90 | <tr> | |
91 | <td class="titre"> | |
77af6562 | 92 | Logo : |
0337d704 | 93 | </td> |
94 | <td> | |
95 | <input type="file" name="logo" /> | |
96 | </td> | |
97 | </tr> | |
98 | ||
99 | <tr> | |
100 | <td class="titre"> | |
77af6562 | 101 | Site web : |
0337d704 | 102 | </td> |
103 | <td> | |
ffe73cf7 | 104 | <input type="text" size="40" value="{$asso.site|default:"http://"}" name="site" /> |
0337d704 | 105 | </td> |
106 | </tr> | |
107 | ||
108 | <tr> | |
109 | <td class="titre"> | |
77af6562 | 110 | Contact : |
0337d704 | 111 | </td> |
112 | <td> | |
113 | <input type="text" size="40" name="resp" value="{$asso.resp}" /> | |
114 | </td> | |
115 | </tr> | |
116 | ||
117 | <tr> | |
118 | <td class="titre"> | |
faefdbb7 | 119 | Adresse email : |
0337d704 | 120 | </td> |
121 | <td> | |
122 | <input type="text" size="40" name="mail" value="{$asso.mail}" /> | |
123 | </td> | |
124 | </tr> | |
125 | ||
126 | <tr> | |
127 | <td class="titre"> | |
77af6562 | 128 | Forum : |
0337d704 | 129 | </td> |
130 | <td> | |
131 | <input type="text" size="40" name="forum" value="{$asso.forum}" /> | |
132 | </td> | |
133 | </tr> | |
134 | ||
135 | <tr> | |
136 | <td class="titre"> | |
77af6562 | 137 | Inscription possible : |
19465af7 | 138 | </td> |
139 | <td> | |
140 | <input type="radio" value="1" id="inscr_yes" | |
141 | {if $asso.inscriptible eq 1}checked="checked"{/if} | |
142 | name="inscriptible" /> | |
143 | <label for="inscr_yes">oui</label> | |
144 | <input type="radio" value="0" id="inscr_no" | |
145 | {if $asso.inscriptible neq 1}checked="checked"{/if} | |
146 | name="inscriptible" /> | |
147 | <label for="inscr_no">non</label> | |
148 | </td> | |
149 | </tr> | |
150 | ||
151 | <tr> | |
152 | <td class="titre"> | |
77af6562 | 153 | Lien pour l'inscription :<br /> |
a7de4ef7 | 154 | <em>laisser vide par défaut</em> |
0337d704 | 155 | </td> |
156 | <td> | |
157 | <input type="text" size="40" name="sub_url" value="{$asso.sub_url}" /> | |
158 | </td> | |
159 | </tr> | |
160 | ||
161 | <tr> | |
30032578 | 162 | <td class="titre"> |
77af6562 | 163 | Lien pour la désinscription :<br/> |
a7de4ef7 | 164 | <em>laisser vide par défaut</em> |
30032578 | 165 | </td> |
166 | <td> | |
167 | <input type="text" size="40" name="unsub_url" value="{$asso.unsub_url}" /> | |
168 | </td> | |
169 | </tr> | |
170 | ||
171 | <tr> | |
0337d704 | 172 | <td class="titre center" colspan="2"> |
2c86d368 FB |
173 | Diffusion de la liste des membres : |
174 | <select name="pub"> | |
175 | <option value="public" {if $asso.pub eq 'public'}selected="selected"{/if}>Publique</option> | |
176 | <option value="membre" {if $asso.pub eq 'membre'}selected="selected"{/if}>Aux membres du groupe</option> | |
47d7a24b | 177 | <option value="private" {if $asso.pub eq 'private'}selected="selected"{/if}>Aux animateurs du groupe</option> |
2c86d368 | 178 | </select> |
0337d704 | 179 | </td> |
c73a312d | 180 | </tr> |
359f9ca3 FB |
181 | <tr> |
182 | <td class="titre center" colspan="2"> | |
a44f405e SJ |
183 | <label><input type="checkbox" value="1" name="notif_unsub" {if $asso.notif_unsub}checked="checked"{/if} /> |
184 | prévenir les animateurs lors de la désinscription d'un membre</label> | |
359f9ca3 FB |
185 | </td> |
186 | </tr> | |
0337d704 | 187 | </table> |
188 | ||
189 | <div class="center"> | |
794feea7 FB |
190 | <input type="submit" name="submit" value="Enregistrer" /> |
191 | </div> | |
192 | ||
193 | <div class="center"> | |
194 | {javascript name=ajax} | |
195 | <div id="preview_descr" style="display: none; text-align: justify"></div> | |
0337d704 | 196 | <br /> |
794feea7 | 197 | <a href="wiki_help" class="popup3"> |
77af6562 | 198 | {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée pour la description. |
794feea7 FB |
199 | </a> |
200 | <textarea name="descr" cols="70" rows="15" id="descr" | |
201 | {if !$asso.wiki_desc && $asso.descr}class="error"{/if}>{$asso.descr}</textarea> | |
202 | <input type="submit" name="preview" value="Aperçu de la description" | |
203 | onclick="previewWiki('descr', 'preview_descr', true, 'preview_descr'); return false;" /><br /> | |
0337d704 | 204 | <input type="submit" name="submit" value="Enregistrer" /> |
205 | </div> | |
206 | </form> | |
207 | ||
a7de4ef7 | 208 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |