equal
deleted
inserted
replaced
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() |