#588: Auto select the mail to moderate
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 4 Dec 2006 09:30:34 +0000 (09:30 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 4 Dec 2006 09:30:34 +0000 (09:30 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1237 839d8a87-29fc-0310-9880-83ba4fa771e5

ChangeLog
templates/listes/moderate.tpl

index c311bc0..211f72b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,9 @@ New:
 
 Bug/Wish:
 
+    * Lists:
+        - #588: Auto-select mail to moderate                               -FRU
+
     * Register:
         - #277: Improve ergonomy.                                          -FRU
 
index cb44ca2..2585e92 100644 (file)
     <th>Infos</th>
     <th colspan="2"></th>
   </tr>
-  {foreach from=$mails item=m}
+  {foreach from=$mails item=m name=mail}
   <tr class='{cycle values="pair,impair"}'>
     <td>
-      <input type="checkbox" name="select_mails[{$m.id}]" />
+      <input type="checkbox" name="select_mails[{$m.id}]" {if $smarty.foreach.mail.total eq 1}checked="checked"{/if}/>
     </td>
     <td>
       <strong>De&nbsp;:</strong><br />