web/views/cwproperties.py
changeset 6543 66145280a7e6
parent 6453 7fdd780d87e4
child 6545 5cea387a5667
equal deleted inserted replaced
6542:f13c47ac9137 6543:66145280a7e6
   160             # create selection
   160             # create selection
   161             sorted_objects =  sorted((self._cw.__('%s_%s' % (group, o)), o, f)
   161             sorted_objects =  sorted((self._cw.__('%s_%s' % (group, o)), o, f)
   162                                            for o, f in objects.iteritems())
   162                                            for o, f in objects.iteritems())
   163             for label, oid, form in sorted_objects:
   163             for label, oid, form in sorted_objects:
   164                 w(u'<div class="component">')
   164                 w(u'<div class="component">')
   165                 w(u'''<div class="componentLink"><a href="javascript:noop();"
   165                 w(u'''<div class="componentLink"><a href="javascript:$.noop();"
   166                            onclick="javascript:toggleVisibility('field_%(oid)s_%(group)s')"
   166                            onclick="javascript:toggleVisibility('field_%(oid)s_%(group)s')"
   167                            class="componentTitle">%(label)s</a>''' % {'label':label, 'oid':oid, 'group':group})
   167                            class="componentTitle">%(label)s</a>''' % {'label':label, 'oid':oid, 'group':group})
   168                 w(u''' (<div class="openlink"><a href="javascript:noop();"
   168                 w(u''' (<div class="openlink"><a href="javascript:$.noop();"
   169                              onclick="javascript:openFieldset('fieldset_%(group)s')">%(label)s</a></div>)'''
   169                              onclick="javascript:openFieldset('fieldset_%(group)s')">%(label)s</a></div>)'''
   170                   % {'label':_('open all'), 'group':group})
   170                   % {'label':_('open all'), 'group':group})
   171                 w(u'</div>')
   171                 w(u'</div>')
   172                 docmsgid = '%s_%s_description' % (group, oid)
   172                 docmsgid = '%s_%s_description' % (group, oid)
   173                 doc = _(docmsgid)
   173                 doc = _(docmsgid)