Merge commit 'origin/fusionax' into account
[platal.git] / templates / xnetgrp / edit.tpl
index 464af9d..5f0277b 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2008 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2009 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {*                                                                        *}
 {**************************************************************************}
 
-<h1>{$asso.nom}&nbsp;: Éditer l'accueil</h1>
+<h1>{if $asso->nom}{$asso->nom}&nbsp;: {/if}Éditer l'accueil</h1>
 
 <form method="post" action="{$platal->ns}edit" enctype="multipart/form-data">
+  {xsrf_token_field}
   {if $super}
   <table cellpadding="0" cellspacing="0" class='tiny'>
     <tr>
       <td class="titre">
-        Nom:
+        Nom&nbsp;:
       </td>
       <td>
-        <input type="text" size="40" value="{$asso.nom}" name="nom" />
+        <input type="text" size="40" value="{$asso->nom}" name="nom" />
       </td>
     </tr>
     <tr>
       <td class="titre">
-        Diminutif:
+        Diminutif&nbsp;:
       </td>
       <td>
-        <input type="text" size="40" value="{$asso.diminutif}" name="diminutif" />
+        <input type="text" size="40" value="{$asso->diminutif}" name="diminutif" />
       </td>
     </tr>
     <tr>
       <td class="titre">
-        Domaine DNS:
+        Domaine DNS&nbsp;:
       </td>
       <td>
-        <input type="text" size="40" value="{$asso.mail_domain}" name="mail_domain" />
+        <input type="text" size="40" value="{$asso->mail_domain}" 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 $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>
         </select>
       </td>
     </tr>
     <tr>
       <td class="titre">
-        Domaine:
+        Domaine&nbsp;:
       </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="{$d.id}" {if $d.id eq $asso->dom}selected="selected"{/if}>{$d.nom} [{$d.cat}]</option>
           {/iterate}
         </select>
       </td>
@@ -81,7 +82,7 @@
   <table cellpadding="0" cellspacing="0" class='tiny'>
     <tr>
       <td class="titre">
-        Logo:
+        Logo&nbsp;:
       </td>
       <td>
         <input type="file" name="logo" />
 
     <tr>
       <td class="titre">
-        Site Web:
+        Site web&nbsp;:
       </td>
       <td>
-        <input type="text" size="40" value="{$asso.site}" name="site" />
+        <input type="text" size="40" value="{$asso->site|default:"http://"}" name="site" />
       </td>
     </tr>
 
     <tr>
       <td class="titre">
-        Contact:
+        Contact&nbsp;:
       </td>
       <td>
-        <input type="text" size="40" name="resp" value="{$asso.resp}" />
+        <input type="text" size="40" name="resp" value="{$asso->resp}" />
       </td>
     </tr>
 
     <tr>
       <td class="titre">
-        Adresse mail:
+        Adresse email&nbsp;:
       </td>
       <td>
-        <input type="text" size="40" name="mail" value="{$asso.mail}" />
+        <input type="text" size="40" name="mail" value="{$asso->mail}" />
       </td>
     </tr>
 
     <tr>
       <td class="titre">
-        Forum:
+        Forum&nbsp;:
       </td>
       <td>
-        <input type="text" size="40" name="forum" value="{$asso.forum}" />
+        <input type="text" size="40" name="forum" value="{$asso->forum}" />
       </td>
     </tr>
 
     <tr>
       <td class="titre">
-        Inscription possible:
+        Inscription possible&nbsp;:
       </td>
       <td>
         <input type="radio" value="1" id="inscr_yes"
-          {if $asso.inscriptible eq 1}checked="checked"{/if}
+          {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}
+          {if $asso->inscriptible neq 1}checked="checked"{/if}
           name="inscriptible" />
         <label for="inscr_no">non</label>
       </td>
 
     <tr>
       <td class="titre">
-        Lien pour l'inscription:<br />
+        Lien pour l'inscription&nbsp;:<br />
         <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="{$asso->sub_url}" />
       </td>
     </tr>
 
     <tr>
       <td class="titre">
-        Lien pour la désinscription:<br/>
+        Lien pour la désinscription&nbsp;:<br/>
         <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="{$asso->unsub_url}" />
       </td>
     </tr>
 
     <tr>
       <td class="titre center" colspan="2">
-        <input type="checkbox" value="1" name="ax" {if $asso.ax}checked="checked"{/if} />
-        groupe agréé par l'AX
+        <label><input type="checkbox" value="1" name="ax" {if $asso->ax}checked="checked"{/if} />
+        groupe agréé par l'AX</label>
       </td>
     </tr>
 
       <td class="titre center" colspan="2">
         Diffusion de la liste des membres&nbsp;:
         <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 administrateurs du groupe</option>
+          <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>
         </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} />
+        prévenir les animateurs lors de la désinscription d'un membre</label>
+      </td>
+    </tr>
   </table>
 
   <div class="center">
     <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
+      {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>
+              {if !$asso->wiki_desc && $asso->descr}class="error"{/if}>{$asso->descr}</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" />