more graphical (un)subscription
authorx2000habouzit <x2000habouzit>
Sat, 25 Sep 2004 15:55:26 +0000 (15:55 +0000)
committerx2000habouzit <x2000habouzit>
Sat, 25 Sep 2004 15:55:26 +0000 (15:55 +0000)
htdocs/images/flag.png [new file with mode: 0644]
templates/listes/index.tpl
templates/listes/listes.inc.tpl

diff --git a/htdocs/images/flag.png b/htdocs/images/flag.png
new file mode 100644 (file)
index 0000000..3240b29
Binary files /dev/null and b/htdocs/images/flag.png differ
index 0ccc616..1929118 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: index.tpl,v 1.7 2004-09-25 14:56:53 x2000habouzit Exp $
+        $Id: index.tpl,v 1.8 2004-09-25 15:55:26 x2000habouzit Exp $
  ***************************************************************************}
 
 <div class="rubrique">
 </div>
 
 <p>
+Pour t'inscrire à une liste il suffit de cliquer sur l'icone
+<img src="{"images/ajouter.gif"|url}" alt="[ inscription ]" /> située en fin de ligne.
+</p>
+
+<p>
 Certaines listes sont à inscription modérée, l'inscription n'y est pas
 immédiate.  Il faut en effet l'action d'un modérateur de la liste pour valider
-(ou éventuellement refuser) ta candidature.
+(ou éventuellement refuser) ta candidature.  Ces listes apparaissent avec l'icone 
+<img src="{"images/flag.png"|url}" alt="[ en cours ]" />.
 </p>
 
 <p>
-Dans tous les cas, pour se désinscrire, il suffit de décocher la case et de cliquer sur
-"Enregistrer".  
+Pour se désinscrire, il suffit de la même manière de cliquer sur l'icone
+<img src="{"images/retirer.gif"|url}" alt="[ désinscription ]" />.
 </p>
 
 <div class='ssrubrique'>
index 517b53d..c9d10d3 100644 (file)
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: listes.inc.tpl,v 1.6 2004-09-23 17:20:36 x2000habouzit Exp $
+        $Id: listes.inc.tpl,v 1.7 2004-09-25 15:55:26 x2000habouzit Exp $
  ***************************************************************************}
 
 <table class='bicol' cellpadding='0' cellspacing='0'>
   <tr>
     <th>Liste</th>
     <th>Description</th>
-    <th>Diffusion</th>
-    <th>Inscription</th>
+    <th>Régulation</th>
+    <th>Nb</th>
     <th></th>
   </tr>
   {foreach from=$listes item=liste}
       {/if}
     </td>
     <td>{$liste.desc}</td>
-    <td class='center'>{if $liste.diff}modérée{else}libre{/if}</td>
-    <td class='center'>{if $liste.ins}modérée{else}libre{/if}</td>
+    <td class='center'>
+      {if $liste.diff eq 2}2{elseif $list.diff}1{else}0{/if}
+      {if $liste.ins}modérée{else}libre{/if}
+    </td>
+    <td class='right'>{$liste.nbsub}</td>
     <td class='right'>
       {if $liste.sub eq 2}
-      <a href='{$smarty.server.PHP_SELF}?del={$liste.list}'>me désinscrire</a>
+      <a href='{$smarty.server.PHP_SELF}?del={$liste.list}'>
+        <img src="{"images/retirer.gif"|url}" alt="[ désinscription ]" />
+      </a>
       {elseif $liste.sub eq 1}
-      <span class='erreur'>en cours</span>
-      {elseif $liste.ins}
-      <a href='{$smarty.server.PHP_SELF}?add={$liste.list}'>demander son inscription</a>
+      <img src="{"images/flag.png"|url}" alt="[ en cours ]" />
       {else}
-      <a href='{$smarty.server.PHP_SELF}?add={$liste.list}'>m'inscrire</a>
+      <a href='{$smarty.server.PHP_SELF}?add={$liste.list}'>
+        <img src="{"images/ajouter.gif"|url}" alt="[ inscription ]" />
+      </a>
       {/if}
     </td>
   </tr>