{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2009 Polytechnique.org *}
+{* Copyright (C) 2003-2013 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* *}
{**************************************************************************}
-<h1>{if $asso.nom}{$asso.nom} : {/if}Éditer l'accueil</h1>
+<h1>{if $asso->nom}{$asso->nom} : {/if}Éditer l'accueil</h1>
<form method="post" action="{$platal->ns}edit" enctype="multipart/form-data">
{xsrf_token_field}
Nom :
</td>
<td>
- <input type="text" size="40" value="{$asso.nom}" name="nom" />
+ <input type="text" size="40" value="{if $error}{$nom}{else}{$asso->nom}{/if}" name="nom" />
</td>
</tr>
<tr>
Diminutif :
</td>
<td>
- <input type="text" size="40" value="{$asso.diminutif}" name="diminutif" />
+ <input type="text" size="40" value="{if $error}{$diminutif}{else}{$asso->diminutif}{/if}" name="diminutif" />
</td>
</tr>
<tr>
Domaine DNS :
</td>
<td>
- <input type="text" size="40" value="{$asso.mail_domain}" name="mail_domain" />
+ <input type="text" size="40" value="{if $error}{$mail_domain}{else}{$asso->mail_domain}{/if}" name="mail_domain" />
</td>
</tr>
<tr>
</td>
<td>
<select name="cat">
- <option value="groupesx" {if $asso.cat eq GroupesX}selected="selected"{/if}>Groupes X</option>
- <option value="binets" {if $asso.cat eq Binets}selected="selected"{/if}>Binets</option>
- <option value="promotions" {if $asso.cat eq Promotions}selected="selected"{/if}>Promotions</option>
- <option value="institutions" {if $asso.cat eq Institutions}selected="selected"{/if}>Institutions</option>
+ <option value="groupesx" {if $cat eq 'GroupesX'}selected="selected"{/if}>Groupes X</option>
+ <option value="binets" {if $cat eq 'Binets'}selected="selected"{/if}>Binets</option>
+ <option value="promotions" {if $cat eq 'Promotions'}selected="selected"{/if}>Promotions</option>
+ <option value="institutions" {if $cat eq 'Institutions'}selected="selected"{/if}>Institutions</option>
</select>
</td>
</tr>
</td>
<td>
<select name="dom">
- <option value=""></option>
- {iterate from=$dom item=d}
- <option value="{$d.id}" {if $d.id eq $asso.dom}selected="selected"{/if}>{$d.nom} [{$d.cat}]</option>
+ <option value=""> </option>
+ {iterate from=$domains item=d}
+ <option value="{$d.id}" {if $d.id eq $dom}selected="selected"{/if}>{$d.nom} [{$d.cat}]</option>
{/iterate}
</select>
</td>
</tr>
+ <tr>
+ <td class="titre center" colspan="2">
+ <label><input type="checkbox" value="1" name="ax" {if $ax}checked="checked"{/if} />
+ groupe agréé par l'AX</label> le <input type="text" size="10" maxlength="10" value="{if $error}{$axDate}{$asso->axDate}{/if}" name="axDate" />
+ <small>(ex: 01/01/1970)</small>
+ </td>
+ </tr>
+ <tr>
+ <td class="titre center" colspan="2">
+ <label><input type="checkbox" value="1" name="disable_mails" {if $disable_mails}checked="checked"{/if} />
+ désactiver l'envoi de mails</label>
+ </td>
+ </tr>
</table>
<p></p>
{/if}
+
<table cellpadding="0" cellspacing="0" class='tiny'>
<tr>
<td class="titre">
Site web :
</td>
<td>
- <input type="text" size="40" value="{$asso.site|default:"http://"}" name="site" />
+ <input type="text" size="40" value="{if $error}{$site}{else}{$asso->site|default:"http://"}{/if}" name="site" />
</td>
</tr>
Contact :
</td>
<td>
- <input type="text" size="40" name="resp" value="{$asso.resp}" />
+ <input type="text" size="40" name="resp" value="{if $error}{$resp}{else}{$asso->resp}{/if}" />
</td>
</tr>
Adresse email :
</td>
<td>
- <input type="text" size="40" name="mail" value="{$asso.mail}" />
+ <input type="text" size="40" name="mail" value="{if $error}{$mail}{else}{$asso->mail}{/if}" />
+ </td>
+ </tr>
+
+ <tr>
+ <td class="titre">Téléphone</td>
+ <td>
+ <input type="text" maxlength="28" name="phone" value="{if $error}{$phone}{else}{$asso->phone}{/if}" />
+ </td>
+ </tr>
+ <tr>
+ <td class="titre">Fax</td>
+ <td>
+ <input type="text" maxlength="28" name="fax" value="{if $error}{$fax}{else}{$asso->fax}{/if}" />
+ </td>
+ </tr>
+ <tr>
+ <td class="titre">Adresse</td>
+ <td>
+ <textarea name="address" cols="30" rows="4">{if $error}{$address}{else}{$asso->address}{/if}</textarea>
</td>
</tr>
Forum :
</td>
<td>
- <input type="text" size="40" name="forum" value="{$asso.forum}" />
+ <input type="text" size="40" name="forum" value="{if $error}{$forum}{else}{$asso->forum}{/if}" />
</td>
</tr>
Inscription possible :
</td>
<td>
- <input type="radio" value="1" id="inscr_yes"
- {if $asso.inscriptible eq 1}checked="checked"{/if}
- name="inscriptible" />
- <label for="inscr_yes">oui</label>
- <input type="radio" value="0" id="inscr_no"
- {if $asso.inscriptible neq 1}checked="checked"{/if}
- name="inscriptible" />
- <label for="inscr_no">non</label>
+ <label><input type="radio" value="1" {if $inscriptible eq 1}checked="checked"{/if} name="inscriptible" />oui</label>
+ <label><input type="radio" value="0" {if $inscriptible neq 1}checked="checked"{/if} name="inscriptible" />non</label>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="titre">
+ Notifier les demandes d'inscriptions :
+ </td>
+ <td>
+ <label><input type="radio" value="1" {if $notify_all}checked="checked"{/if} name="notify_all"
+ onclick="$('#notification').hide()"/>à tous les animateurs</label>
+ <label><input type="radio" value="0" {if !$notify_all}checked="checked"{/if} name="notify_all"
+ onclick="$('#notification').show()" />seulement à certains</label>
+ </td>
+ </tr>
+ <tr id="notification" {if $notify_all}style="display: none"{/if}>
+ <td></td>
+ <td>
+ {if $notified || $unnotified}
+ <ul>
+ {if $notified}
+ {foreach from=$notified item=user}
+ <li>
+ <label><input type="checkbox" name="to_notify_{$user->id()}" checked="checked" />{$user->fullName(true)}</label>
+ </li>
+ {/foreach}
+ {/if}
+ {if $unnotified}
+ {foreach from=$unnotified item=user}
+ <li>
+ <label><input type="checkbox" name="to_notify_{$user->id()}" />{$user->fullName(true)}</label>
+ </li>
+ {/foreach}
+ {/if}
+ </ul>
+ {/if}
</td>
</tr>
<em>laisser vide par défaut</em>
</td>
<td>
- <input type="text" size="40" name="sub_url" value="{$asso.sub_url}" />
+ <input type="text" size="40" name="sub_url" value="{if $error}{$sub_url}{else}{$asso->sub_url}{/if}" />
</td>
</tr>
<em>laisser vide par défaut</em>
</td>
<td>
- <input type="text" size="40" name="unsub_url" value="{$asso.unsub_url}" />
+ <input type="text" size="40" name="unsub_url" value="{if $error}{$unsub_url}{else}{$asso->unsub_url}{/if}" />
</td>
</tr>
<tr>
- <td class="titre center" colspan="2">
- <label><input type="checkbox" value="1" name="ax" {if $asso.ax}checked="checked"{/if} />
- groupe agréé par l'AX</label>
+ <td class="titre">
+ Message de bienvenue :<br />
+ <em>envoyé à l'inscription</em>
+ </td>
+ <td>
+ <textarea cols='40' rows='8' name='welcome_msg'>{if $error}{$welcome_msg}{else}{$asso->welcome_msg}{/if}</textarea>
</td>
</tr>
<td class="titre center" colspan="2">
Diffusion de la liste des membres :
<select name="pub">
- <option value="public" {if $asso.pub eq 'public'}selected="selected"{/if}>Publique</option>
- <option value="membre" {if $asso.pub eq 'membre'}selected="selected"{/if}>Aux membres du groupe</option>
- <option value="private" {if $asso.pub eq 'private'}selected="selected"{/if}>Aux animateurs du groupe</option>
+ <option value="public" {if $pub eq 'public'}selected="selected"{/if}>Publique</option>
+ <option value="membre" {if $pub eq 'membre'}selected="selected"{/if}>Aux membres du groupe</option>
+ <option value="private" {if $pub eq 'private'}selected="selected"{/if}>Aux animateurs du groupe</option>
</select>
</td>
</tr>
<tr>
<td class="titre center" colspan="2">
- <label><input type="checkbox" value="1" name="notif_unsub" {if $asso.notif_unsub}checked="checked"{/if} />
+ <label><input type="checkbox" value="1" name="notif_unsub" {if $notif_unsub}checked="checked"{/if} />
prévenir les animateurs lors de la désinscription d'un membre</label>
</td>
</tr>
</div>
<div class="center">
- {javascript name=ajax}
<div id="preview_descr" style="display: none; text-align: justify"></div>
<br />
<a href="wiki_help" class="popup3">
{icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée pour la description.
</a>
- <textarea name="descr" cols="70" rows="15" id="descr"
- {if !$asso.wiki_desc && $asso.descr}class="error"{/if}>{$asso.descr}</textarea>
+ <textarea name="descr" cols="70" rows="15" id="descr">{if $error}{$descr}{else}{$asso->descr}{/if}</textarea>
<input type="submit" name="preview" value="Aperçu de la description"
onclick="previewWiki('descr', 'preview_descr', true, 'preview_descr'); return false;" /><br />
<input type="submit" name="submit" value="Enregistrer" />