From ae23da1db4f36ee4a7eacc32931348a53e021517 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Sun, 30 Jan 2011 00:33:24 +0100 Subject: [PATCH] Update admin pages in order to list all NLs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- templates/newsletter/admin_all.tpl | 40 ++++++++++++++++++++++++++++++++++++++ templates/newsletter/index.tpl | 4 ++-- 2 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 templates/newsletter/admin_all.tpl diff --git a/templates/newsletter/admin_all.tpl b/templates/newsletter/admin_all.tpl new file mode 100644 index 0000000..20b0714 --- /dev/null +++ b/templates/newsletter/admin_all.tpl @@ -0,0 +1,40 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2011 Polytechnique.org *} +{* http://opensource.polytechnique.org/ *} +{* *} +{* This program is free software; you can redistribute it and/or modify *} +{* it under the terms of the GNU General Public License as published by *} +{* the Free Software Foundation; either version 2 of the License, or *} +{* (at your option) any later version. *} +{* *} +{* This program is distributed in the hope that it will be useful, *} +{* but WITHOUT ANY WARRANTY; without even the implied warranty of *} +{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} +{* GNU General Public License for more details. *} +{* *} +{* You should have received a copy of the GNU General Public License *} +{* along with this program; if not, write to the Free Software *} +{* Foundation, Inc., *} +{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} +{* *} +{**************************************************************************} + + + + + + + + + + {foreach from=$nls item=nl} + + + + + + + + {/foreach} +
IdGroupeTitreCSS spécifiqueCritères actifs
{$nl->id}{$nl->group}{$nl->name}{if $nl->hasCustomCss()}Oui{else}Non{/if}{$nl->criteria->flags()}
diff --git a/templates/newsletter/index.tpl b/templates/newsletter/index.tpl index 4fd362c..1978e44 100644 --- a/templates/newsletter/index.tpl +++ b/templates/newsletter/index.tpl @@ -61,9 +61,9 @@ Tu n'es actuellement pas inscrit à la {$nl->name}. {foreach item=nli from=$nl_list} - {$nli.date|date_format} + {$nli->date|date_format} - {$nli.title|default:"[Sans titre]"} + {$nli->title()|default:"[Sans titre]"} {/foreach} -- 2.1.4