{% extends "revisions.html" %} {% load i18n plmapp_tags %} {% block confirmation %}
{{ 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 revision. 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 revision. 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 %} {{ parents_formset.management_form }} {% if parents_formset.total_form_count > 0 %}

{% trans "Here is the list of the current parents you may want to update to link to the new revision. Select parts you want to update." %}

{% for form in parents_formset.forms %} {{ form.link }} {{ form.new_parent }} {% with form.initial.new_parent as parent %} {% endwith %} {% endfor %}
{{ form.selected }} {{ parent.type }} {{ parent.reference }} {{ parent.revision }} {{ parent.name }}
{% endif %}
{% endblock %}