[Mpuls-commits] r2378 - wasko/branches/2.0/mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Apr 15 16:12:47 CEST 2010
Author: torsten
Date: 2010-04-15 16:12:47 +0200 (Thu, 15 Apr 2010)
New Revision: 2378
Modified:
wasko/branches/2.0/mpulsweb/lib/renderer.py
Log:
* mpulsweb/lib/renderer.py (ViewRenderer._renderAttributes): Render
submitbuttons instead of simple links to add and delete rg.
Modified: wasko/branches/2.0/mpulsweb/lib/renderer.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/renderer.py 2010-04-15 14:10:34 UTC (rev 2377)
+++ wasko/branches/2.0/mpulsweb/lib/renderer.py 2010-04-15 14:12:47 UTC (rev 2378)
@@ -432,12 +432,10 @@
out.append('</td>')
out.append('<td class="vcontrol" width="15">')
if not self.ro_mode:
- out.append(tag("a", href=("/repeatgroup/delete/%s"
- % child.getIdentifier())))
- out.append(tag("img",
- src="/images/icons/delete_active_16.png",
- alt=_('Delete'), _close=True))
- out.append('</a>')
+ out.append('<input name="del_rg"
+ type="image"
+ src="/images/icons/delete_active_16.png"
+ value="%s">' % child.getIdentifier())
out.append('</td>')
out.append('</tr>')
if self.ro_mode:
@@ -447,13 +445,10 @@
out.append('<tr>')
out.append('<td class="hcontrol" style="text-align: right;"'
' colspan="2">')
- out.append(tag("a",
- href="/repeatgroup/new/%s" % node.getIdentifier()))
- out.append(escape(_('Create new')))
- out.append(" ")
- out.append(tag("img", src="/images/icons/new_16.png",
- alt=_('Create new'), _close=True))
- out.append("</a>")
+ out.append('<input width="16"
+ name="add_rg"
+ type="image" src="/images/icons/new_16.png"
+ value="%s">' % node.getIdentifier())
out.append("</td>")
out.append("</tr>")
return out
More information about the Mpuls-commits
mailing list