Makes the forum link available for all logged users.
[platal.git] / templates / xnetgrp / edit.tpl
CommitLineData
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}&nbsp;: {/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&nbsp;:
0337d704 32 </td>
33 <td>
f611c8bd 34 <input type="text" size="40" value="{if $error}{$nom}{else}{$asso->nom}{/if}" name="nom" />
0337d704 35 </td>
36 </tr>
37 <tr>
38 <td class="titre">
77af6562 39 Diminutif&nbsp;:
0337d704 40 </td>
41 <td>
f611c8bd 42 <input type="text" size="40" value="{if $error}{$diminutif}{else}{$asso->diminutif}{/if}" name="diminutif" />
0337d704 43 </td>
44 </tr>
45 <tr>
46 <td class="titre">
77af6562 47 Domaine DNS&nbsp;:
0337d704 48 </td>
49 <td>
f611c8bd 50 <input type="text" size="40" value="{if $error}{$mail_domain}{else}{$asso->mail_domain}{/if}" name="mail_domain" />
0337d704 51 </td>
52 </tr>
53 <tr>
54 <td class="titre">
e8439508 55 Catégorie&nbsp;:
0337d704 56 </td>
57 <td>
58 <select name="cat">
f611c8bd
SJ
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>
0337d704 63 </select>
64 </td>
65 </tr>
66 <tr>
67 <td class="titre">
77af6562 68 Domaine&nbsp;:
0337d704 69 </td>
70 <td>
71 <select name="dom">
9fce7016 72 <option value="">&nbsp;</option>
f611c8bd
SJ
73 {iterate from=$domains item=d}
74 <option value="{$d.id}" {if $d.id eq $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">
f611c8bd
SJ
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" />
004ff79e 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&nbsp;:
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&nbsp;:
0337d704 103 </td>
104 <td>
f611c8bd 105 <input type="text" size="40" value="{if $error}{$site}{else}{$asso->site|default:"http://"}{/if}" name="site" />
0337d704 106 </td>
107 </tr>
108
109 <tr>
110 <td class="titre">
77af6562 111 Contact&nbsp;:
0337d704 112 </td>
113 <td>
f611c8bd 114 <input type="text" size="40" name="resp" value="{if $error}{$resp}{else}{$asso->resp}{/if}" />
0337d704 115 </td>
116 </tr>
117
118 <tr>
119 <td class="titre">
faefdbb7 120 Adresse email&nbsp;:
0337d704 121 </td>
122 <td>
f611c8bd 123 <input type="text" size="40" name="mail" value="{if $error}{$mail}{else}{$asso->mail}{/if}" />
0337d704 124 </td>
125 </tr>
126
127 <tr>
a174a707
SJ
128 <td class="titre">Téléphone</td>
129 <td>
f611c8bd 130 <input type="text" maxlength="28" name="phone" value="{if $error}{$phone}{else}{$asso->phone}{/if}" />
a174a707
SJ
131 </td>
132 </tr>
133 <tr>
134 <td class="titre">Fax</td>
135 <td>
f611c8bd 136 <input type="text" maxlength="28" name="fax" value="{if $error}{$fax}{else}{$asso->fax}{/if}" />
a174a707
SJ
137 </td>
138 </tr>
baab50c7
SJ
139 <tr>
140 <td class="titre">Adresse</td>
141 <td>
f611c8bd 142 <textarea name="address" cols="30" rows="4">{if $error}{$address}{else}{$asso->address}{/if}</textarea>
baab50c7
SJ
143 </td>
144 </tr>
a174a707
SJ
145
146 <tr>
0337d704 147 <td class="titre">
77af6562 148 Forum&nbsp;:
0337d704 149 </td>
150 <td>
f611c8bd 151 <input type="text" size="40" name="forum" value="{if $error}{$forum}{else}{$asso->forum}{/if}" />
0337d704 152 </td>
153 </tr>
154
155 <tr>
156 <td class="titre">
77af6562 157 Inscription possible&nbsp;:
19465af7 158 </td>
159 <td>
f611c8bd
SJ
160 <label><input type="radio" value="1" {if $inscriptible eq 1}checked="checked"{/if} name="inscriptible" />oui</label>
161 <label><input type="radio" value="0" {if $inscriptible neq 1}checked="checked"{/if} name="inscriptible" />non</label>
19465af7 162 </td>
163 </tr>
164
165 <tr>
166 <td class="titre">
7c8b692c
SJ
167 Notifier les demandes d'inscriptions&nbsp;:
168 </td>
169 <td>
170 <label><input type="radio" value="1" {if $notify_all}checked="checked"{/if} name="notify_all"
171 onclick="$('#notification').hide()"/>à tous les animateurs</label>
172 <label><input type="radio" value="0" {if !$notify_all}checked="checked"{/if} name="notify_all"
173 onclick="$('#notification').show()" />seulement à certains</label>
174 </td>
175 </tr>
176 <tr id="notification" {if $notify_all}style="display: none"{/if}>
177 <td></td>
178 <td>
179 {if $notified || $unnotified}
180 <ul>
181 {if $notified}
182 {foreach from=$notified item=user}
183 <li>
184 <label><input type="checkbox" name="to_notify_{$user->id()}" checked="checked" />{$user->fullName(true)}</label>
185 </li>
186 {/foreach}
187 {/if}
188 {if $unnotified}
189 {foreach from=$unnotified item=user}
190 <li>
191 <label><input type="checkbox" name="to_notify_{$user->id()}" />{$user->fullName(true)}</label>
192 </li>
193 {/foreach}
194 {/if}
195 </ul>
196 {/if}
197 </td>
198 </tr>
199
200 <tr>
201 <td class="titre">
77af6562 202 Lien pour l'inscription&nbsp;:<br />
a7de4ef7 203 <em>laisser vide par défaut</em>
0337d704 204 </td>
205 <td>
f611c8bd 206 <input type="text" size="40" name="sub_url" value="{if $error}{$sub_url}{else}{$asso->sub_url}{/if}" />
0337d704 207 </td>
208 </tr>
209
210 <tr>
30032578 211 <td class="titre">
77af6562 212 Lien pour la désinscription&nbsp;:<br/>
a7de4ef7 213 <em>laisser vide par défaut</em>
30032578 214 </td>
215 <td>
f611c8bd 216 <input type="text" size="40" name="unsub_url" value="{if $error}{$unsub_url}{else}{$asso->unsub_url}{/if}" />
30032578 217 </td>
218 </tr>
219
220 <tr>
73ac0916
SJ
221 <td class="titre">
222 Message de bienvenue&nbsp;:<br />
223 <em>envoyé à l'inscription</em>
224 </td>
225 <td>
f611c8bd 226 <textarea cols='40' rows='8' name='welcome_msg'>{if $error}{$welcome_msg}{else}{$asso->welcome_msg}{/if}</textarea>
73ac0916
SJ
227 </td>
228 </tr>
229
230 <tr>
0337d704 231 <td class="titre center" colspan="2">
2c86d368
FB
232 Diffusion de la liste des membres&nbsp;:
233 <select name="pub">
f611c8bd
SJ
234 <option value="public" {if $pub eq 'public'}selected="selected"{/if}>Publique</option>
235 <option value="membre" {if $pub eq 'membre'}selected="selected"{/if}>Aux membres du groupe</option>
236 <option value="private" {if $pub eq 'private'}selected="selected"{/if}>Aux animateurs du groupe</option>
2c86d368 237 </select>
0337d704 238 </td>
c73a312d 239 </tr>
359f9ca3
FB
240 <tr>
241 <td class="titre center" colspan="2">
f611c8bd 242 <label><input type="checkbox" value="1" name="notif_unsub" {if $notif_unsub}checked="checked"{/if} />
a44f405e 243 prévenir les animateurs lors de la désinscription d'un membre</label>
359f9ca3
FB
244 </td>
245 </tr>
0337d704 246 </table>
247
248 <div class="center">
794feea7
FB
249 <input type="submit" name="submit" value="Enregistrer" />
250 </div>
251
252 <div class="center">
794feea7 253 <div id="preview_descr" style="display: none; text-align: justify"></div>
0337d704 254 <br />
794feea7 255 <a href="wiki_help" class="popup3">
77af6562 256 {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée pour la description.
794feea7 257 </a>
f611c8bd 258 <textarea name="descr" cols="70" rows="15" id="descr">{if $error}{$descr}{else}{$asso->descr}{/if}</textarea>
794feea7
FB
259 <input type="submit" name="preview" value="Aperçu de la description"
260 onclick="previewWiki('descr', 'preview_descr', true, 'preview_descr'); return false;" /><br />
0337d704 261 <input type="submit" name="submit" value="Enregistrer" />
262 </div>
263</form>
264
a7de4ef7 265{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}