Diff of /projects/tgcrud/trunk/tgcrud/templates/crud/+modelpackage+/templates/list.html_tmpl [r3920] .. [r3921] Maximize Restore

  Switch to side-by-side view

--- a/projects/tgcrud/trunk/tgcrud/templates/crud/+modelpackage+/templates/list.html_tmpl
+++ b/projects/tgcrud/trunk/tgcrud/templates/crud/+modelpackage+/templates/list.html_tmpl
@@ -8,18 +8,22 @@
 
 <head>
 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
-<title>list</title>
+<title>list $${modelname}</title>
 </head>
 <body>
 <h1>Listing $${modelname}</h1>
 <table>
-    <tr>
-        <!--th> name </th>
-        <th> url </th-->
+    <tr>
+        <!--
+        <th> name </th>
+        <th> url </th>
+        -->
     </tr>
     <tr py:for="i, record in enumerate(records)" class="$${i%2 and 'odd' or 'even'}">
-        <!--td>$${record.name}</td>
-        <td>$${record.url}</td-->
+        <!--
+        <td>$${record.name}</td>
+        <td>$${record.url}</td>
+        -->
         <td><a href="$${tg.url('show/%s'%record.${id})}">Show</a></td>
         <td><a href="$${tg.url('edit/%s'%record.${id})}">Edit</a></td>   
         <td><a href="$${tg.url('destroy/%s'%record.${id})}" onclick="if (confirm('Are you sure?')) { var f = document.createElement('form'); this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href; f.submit(); };return false;">Destroy</a></td>
@@ -27,10 +31,12 @@
 </table>
 <br/>
 <a href="new">New $${modelname}</a>
-<!--span py:for="page in tg.paginate.pages">
+<!--
+<span py:for="page in tg.paginate.pages">
     <a py:if="page != tg.paginate.current_page"
         href="$${tg.paginate.get_href(page)}">$${page}</a>
     <b py:if="page == tg.paginate.current_page">$${page}</b>
-</span-->
+</span>
+-->
 </body>
 </html>