web/views/formrenderers.py
branch3.5
changeset 3244 1fc804b2c5ba
parent 2996 866a2c135c33
child 3263 5129918c671b
equal deleted inserted replaced
3243:54e07f97c17f 3244:1fc804b2c5ba
   405  </table>""" % tuple(button.render(form) for button in form.form_buttons))
   405  </table>""" % tuple(button.render(form) for button in form.form_buttons))
   406         else:
   406         else:
   407             super(EntityFormRenderer, self).render_buttons(w, form)
   407             super(EntityFormRenderer, self).render_buttons(w, form)
   408 
   408 
   409     def relations_form(self, w, form):
   409     def relations_form(self, w, form):
   410         srels_by_cat = form.srelations_by_category('generic', 'add')
   410         srels_by_cat = form.srelations_by_category('generic', 'add', strict=True)
   411         if not srels_by_cat:
   411         if not srels_by_cat:
   412             return u''
   412             return u''
   413         req = self.req
   413         req = self.req
   414         _ = req._
   414         _ = req._
   415         label = u'%s :' % _('This %s' % form.edited_entity.e_schema).capitalize()
   415         label = u'%s :' % _('This %s' % form.edited_entity.e_schema).capitalize()