view.py
changeset 3369 7b88d12b4ee2
parent 3023 7864fee8b4ec
parent 3326 e3089ceee1ea
child 3451 6b46d73823f5
equal deleted inserted replaced
3300:c7c4775a5619 3369:7b88d12b4ee2
   311         """ read-only field """
   311         """ read-only field """
   312         if w is None:
   312         if w is None:
   313             w = self.w
   313             w = self.w
   314         if row:
   314         if row:
   315             w(u'<div class="row">')
   315             w(u'<div class="row">')
   316         if show_label:
   316         if show_label and label:
   317             if tr:
   317             if tr:
   318                 label = display_name(self.req, label)
   318                 label = display_name(self.req, label)
   319             w(u'<span class="label">%s</span>' % label)
   319             w(u'<span class="label">%s</span>' % label)
   320         w(u'<div class="field">%s</div>' % value)
   320         w(u'<div class="field">%s</div>' % value)
   321         if row:
   321         if row: