#592: User can unsubscribe from a group
[platal.git] / templates / xnet / groupe / edit.tpl
index 7d16926..0a1455d 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2004 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2006 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {*                                                                        *}
 {**************************************************************************}
 
-<img src='getlogo.php' alt="LOGO" style="float: right;" />
-
 <h1>{$asso.nom} : Éditer l'accueil</h1>
 
-<form method="post" action="{$smarty.server.PHP_SELF}" enctype="multipart/form-data">
+<form method="post" action="{$platal->ns}edit" enctype="multipart/form-data">
   {if $super}
   <table cellpadding="0" cellspacing="0" class='tiny'>
     <tr>
 
     <tr>
       <td class="titre">
+        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>
+      </td>
+    </tr>
+
+    <tr>
+      <td class="titre">
         Lien pour l'inscription:<br />
         <em>laisser vide par défaut</em>
       </td>
     </tr>
 
     <tr>
+      <td class="titre">
+        Lien pour la désinscription:<br/>
+        <em>laisser vide par défaut</em>
+      </td>
+      <td>
+        <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
         <input type="checkbox" value="1" name="pub" {if $asso.pub eq 'private'}checked="checked"{/if} />
         liste des membres privée
       </td>
+    </tr>
   </table>
 
   <div class="center">