Allows research on NL subscription using UFC_NLSubscribed.
[platal.git] / templates / newsletter / admin.tpl
index ec3edbc..4ad6c47 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2006 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2011 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {*                                                                        *}
 {**************************************************************************}
 
+{include file="newsletter/header.tpl" current="admin"}
 
-<h1>
-  Lettre de Polytechnique.org
-</h1>
+<h3>
+  <a href="{$nl->adminPrefix()}/categories">Gérer les catégories d'articles</a>
+</h3>
+
+{if $nl->canSyncWithGroup()}
+<h3>
+  <a href="{$nl->adminPrefix()}/sync">Synchroniser avec les membres du groupe</a>
+</h3>
+{/if}
 
 <table class="bicol" cellpadding="3" cellspacing="0" summary="liste des NL">
   <tr>
-    <th>date</th>
-    <th>titre</th>
+    <th>Date</th>
+    <th>État</th>
+    <th>Titre</th>
   </tr>
   <tr>
-    <td colspan='2'><a href='admin/newsletter/new'>Créer une nouvelle lettre</a></td>
+    <td colspan='3'><a href='{$nl->adminPrefix()}/new'>Créer une nouvelle lettre</a></td>
   </tr>
-  {foreach item=nl from=$nl_list}
+  {foreach item=nli from=$nl_list}
   <tr class="{cycle values="pair,impair"}">
-    <td>{$nl.date|date_format}</td>
+    <td>{$nli->date|date_format}</td>
+    <td>{$nli->state}</td>
     <td>
-      <a href="admin/newsletter/edit/{$nl.id}">{$nl.titre|default:"[no title]"}</a>
+      <a href="{$nl->adminPrefix()}/edit/{$nli->id()}">{$nli->title()|default:"[Sans titre]"}</a>
     </td>
   </tr>
   {/foreach}
 </table>
 
 
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}