[Mpuls-commits] r3641 - in base/trunk: . mpulsweb/lib mpulsweb/public/images/icons

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Sep 15 09:38:37 CEST 2010


Author: roland
Date: 2010-09-15 09:38:35 +0200 (Wed, 15 Sep 2010)
New Revision: 3641

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/lib/renderer.py
   base/trunk/mpulsweb/public/images/icons/new_22.png
Log:
issue938: use icon for new rg entries in overview

Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2010-09-15 07:22:42 UTC (rev 3640)
+++ base/trunk/ChangeLog	2010-09-15 07:38:35 UTC (rev 3641)
@@ -1,5 +1,10 @@
 2010-09-15  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/lib/renderer.py: issue938: use the same icon to create new
+	  repeatgroup entries in the overview
+
+2010-09-15  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/controllers/case_bundle.py
 	(CaseBundleController._build_casebundle): Simplify by using the
 	new all_ids form parameter

Modified: base/trunk/mpulsweb/lib/renderer.py
===================================================================
--- base/trunk/mpulsweb/lib/renderer.py	2010-09-15 07:22:42 UTC (rev 3640)
+++ base/trunk/mpulsweb/lib/renderer.py	2010-09-15 07:38:35 UTC (rev 3641)
@@ -1004,6 +1004,25 @@
                 out.append("</a>")
             out.append('</td>')
             out.append('</tr>')
+            
+        out.append('<tr>')
+        out.append('<td style="text-align:right;">')
+        if not self.ro_mode:
+            out.append(escape(_('Create new item')))
+        out.append('</td>')
+        out.append('<td class="actions">')
+        if not self.ro_mode:
+            out.append(tag("a",
+                        #class_="button",
+                        href=url_for(controller="/repeatgroup",
+                                        action="new",
+                                        id=self.page.getIdentifier())))
+            
+            out.append(tag("img", src=icon("new_22.png"),
+                            border="0", alt=_('Add new RG'), title=_('Add new RG')))
+            out.append("</a>")
+        out.append('</td>')
+        out.append('</tr>')
         out.append('</table>')
         out.append('</div>')
         out.append('<div>%s %s</div>'
@@ -1011,16 +1030,6 @@
                       escape(ungettext('Item found', 'Items found',
                                        len(self.page.getChildren())))))
 
-        if not self.ro_mode:
-            out.append('<div>')
-            out.append('<br>')
-            out.append(tag("a", class_="button",
-                           href=url_for(controller="/repeatgroup",
-                                        action="new",
-                                        id=self.page.getIdentifier())))
-            out.append(escape(_('Create new item')))
-            out.append("</a>")
-            out.append("</div>")
         return "\n".join(out)
 
 

Modified: base/trunk/mpulsweb/public/images/icons/new_22.png
===================================================================
(Binary files differ)



More information about the Mpuls-commits mailing list