web/views/cwproperties.py
changeset 5819 1017163825c7
parent 5696 98d390c28edb
child 5877 0c7b7b76a84f
equal deleted inserted replaced
5818:6d8c479fcd98 5819:1017163825c7
   142         _ = req._
   142         _ = req._
   143         w(u'<h1>%s</h1>\n' % _(self.title))
   143         w(u'<h1>%s</h1>\n' % _(self.title))
   144         for label, group, form in sorted((_(g), g, f)
   144         for label, group, form in sorted((_(g), g, f)
   145                                          for g, f in mainopts.iteritems()):
   145                                          for g, f in mainopts.iteritems()):
   146             status = css_class(self._group_status(group))
   146             status = css_class(self._group_status(group))
   147             w(u'<h2 class="propertiesform">%s</h2>\n' %
   147             w(u'<div class="propertiesform">%s</div>\n' %
   148             (make_togglable_link('fieldset_' + group, label.capitalize())))
   148             (make_togglable_link('fieldset_' + group, label.capitalize())))
   149             w(u'<div id="fieldset_%s" %s>' % (group, status))
   149             w(u'<div id="fieldset_%s" %s>' % (group, status))
   150             w(u'<fieldset class="preferences">')
   150             w(u'<fieldset class="preferences">')
   151             w(form)
   151             w(form)
   152             w(u'</fieldset></div>')
   152             w(u'</fieldset></div>')
   153 
   153 
   154         for label, group, objects in sorted((_(g), g, o)
   154         for label, group, objects in sorted((_(g), g, o)
   155                                             for g, o in groupedopts.iteritems()):
   155                                             for g, o in groupedopts.iteritems()):
   156             status = css_class(self._group_status(group))
   156             status = css_class(self._group_status(group))
   157             w(u'<h2 class="propertiesform">%s</h2>\n' %
   157             w(u'<div class="propertiesform">%s</div>\n' %
   158               (make_togglable_link('fieldset_' + group, label.capitalize())))
   158               (make_togglable_link('fieldset_' + group, label.capitalize())))
   159             w(u'<div id="fieldset_%s" %s>' % (group, status))
   159             w(u'<div id="fieldset_%s" %s>' % (group, status))
   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())