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) |