{% load i18n plmapp_tags %} {{ doc_formset.management_form }} {% if doc_formset.total_form_count > 0 %}

{% trans "Here is the list of documents you may want to attach to the new part. Select documents you want to attach." %}

{% for form in doc_formset.forms %} {{ form.document }} {% with form.initial.document as document %} {% endwith %} {% endfor %}
{{ form.selected }} {{ document.type }} {{ document.reference }} {{ document.revision }} {{ document.name }}
{% endif %} {{ children_formset.management_form }} {% if children_formset.total_form_count > 0 %}

{% trans "Here is the list of parts you may want to add to the new part. Select parts you want to add." %}

{% for form in children_formset.forms %} {{ form.link }} {% with form.initial.link.child as child %} {% endwith %} {% endfor %}
{{ form.selected }} {{ child.type }} {{ child.reference }} {{ child.revision }} {{ child.name }}
{% endif %}