web/views/autoform.py
changeset 4082 c7117119e215
parent 4015 4f8235204dda
child 4083 3b285889b8e9
equal deleted inserted replaced
4081:64548076add4 4082:c7117119e215
   284                     formviews += self.inline_creation_form_view(rschema, ttype, role)
   284                     formviews += self.inline_creation_form_view(rschema, ttype, role)
   285                 # we can create more than one related entity, we thus display a link
   285                 # we can create more than one related entity, we thus display a link
   286                 # to add new related entities
   286                 # to add new related entities
   287                 if self.should_display_add_new_relation_link(rschema, formviews, card):
   287                 if self.should_display_add_new_relation_link(rschema, formviews, card):
   288                     addnewlink = self.vreg['views'].select(
   288                     addnewlink = self.vreg['views'].select(
   289                         'inline-addnew-link', self.req,
   289                         'inline-addnew-link', self._cw,
   290                         etype=ttype, rtype=rschema, role=role,
   290                         etype=ttype, rtype=rschema, role=role,
   291                         peid=self.edited_entity.eid, pform=self, card=card)
   291                         peid=self.edited_entity.eid, pform=self, card=card)
   292                     formviews.append(addnewlink)
   292                     formviews.append(addnewlink)
   293                 allformviews += formviews
   293                 allformviews += formviews
   294         return allformviews
   294         return allformviews