web/views/formrenderers.py
branchstable
changeset 3211 7918d4a5cdbf
parent 2996 866a2c135c33
child 3264 5d1f3f6c042d
equal deleted inserted replaced
3197:b27d19c0db1c 3211:7918d4a5cdbf
   499         # display one explicit inline-creation view
   499         # display one explicit inline-creation view
   500         if form.should_display_inline_creation_form(rschema, existant, card):
   500         if form.should_display_inline_creation_form(rschema, existant, card):
   501             w(form.view('inline-creation', None, etype=targettype,
   501             w(form.view('inline-creation', None, etype=targettype,
   502                         peid=entity.eid, ptype=entity.e_schema,
   502                         peid=entity.eid, ptype=entity.e_schema,
   503                         rtype=rschema, role=role))
   503                         rtype=rschema, role=role))
       
   504             existant = True
   504         # we can create more than one related entity, we thus display a link
   505         # we can create more than one related entity, we thus display a link
   505         # to add new related entities
   506         # to add new related entities
   506         if form.should_display_add_new_relation_link(rschema, existant, card):
   507         if form.should_display_add_new_relation_link(rschema, existant, card):
   507             divid = "addNew%s%s%s:%s" % (targettype, rschema, role, entity.eid)
   508             divid = "addNew%s%s%s:%s" % (targettype, rschema, role, entity.eid)
   508             w(u'<div class="inlinedform" id="%s" cubicweb:limit="true">'
   509             w(u'<div class="inlinedform" id="%s" cubicweb:limit="true">'