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">' |