web/views/formrenderers.py
branchstable
changeset 2247 9dbbe6a4c9b0
parent 2198 ac45d4dbaf76
child 2293 7ded2a1416e4
child 2312 af4d8f75c5db
equal deleted inserted replaced
2246:e89c15221a8a 2247:9dbbe6a4c9b0
   498             w(u'<div id="notice-%s" class="notice">%s</div>' % (
   498             w(u'<div id="notice-%s" class="notice">%s</div>' % (
   499                 values['divid'], self.req._('click on the box to cancel the deletion')))
   499                 values['divid'], self.req._('click on the box to cancel the deletion')))
   500         w(u'<div class="iformBody">')
   500         w(u'<div class="iformBody">')
   501         values['removemsg'] = self.req.__('remove this %s' % form.edited_entity.e_schema)
   501         values['removemsg'] = self.req.__('remove this %s' % form.edited_entity.e_schema)
   502         w(u'<div class="iformTitle"><span>%(title)s</span> '
   502         w(u'<div class="iformTitle"><span>%(title)s</span> '
   503           '#<span class="icounter">1</span> '
   503           '#<span class="icounter">%(counter)s</span> '
   504           '[<a href="javascript: %(removejs)s;noop();">%(removemsg)s</a>]</div>'
   504           '[<a href="javascript: %(removejs)s;noop();">%(removemsg)s</a>]</div>'
   505           % values)
   505           % values)
   506         # cleanup values
   506         # cleanup values
   507         for key in ('title', 'removejs', 'removemsg'):
   507         for key in ('title', 'removejs', 'removemsg'):
   508             values.pop(key)
   508             values.pop(key)