{% extends "base.html" %} {% load i18n plmapp_tags %} {% block scripts %} {% endblock %} {% block content %}
{% trans "Choose two dates and display options:" %}
{% for field in cmp_form %} {{ field.errors }} {{ field.label_tag }}: {{ field }} {% if field.name == "date2" or field.name == "level" or field.name == "state" %}
{% endif %} {% endfor %}

{% with compact|yesno:"6,10" as col_count %} {% with boms.0.extra_columns|length|add:col_count as colspan %}
{% for d in boms %} {% if compact %} {% else %} {% endif %} {% for field, verbose_name in d.extra_columns %} {% endfor %} {% if compact %} {% else %} {% endif %} {% endfor %} {% for d in boms %} {% if compact %} {% else %} {% endif %} {% for field, verbose_name in d.extra_columns %} {% endfor %} {% if compact %} {% else %} {% endif %} {% endfor %} {% for tag, lines in diff %} {% for rows in lines %} {% if tag != "equal" or forloop.first or forloop.last or not compact%} {% for row in rows %} {% if row.0 == "part" %} {% with row.1 as c %} {% with c.link as link %} {% with link.child as child %} {% if compact %} {% else %} {% endif %} {% for v in row.3 %} {% endfor %} {% if compact %} {% else %} {% endif %} {% endwith %} {% endwith %} {% endwith %} {% else %} {% if row.0 == "document" or row.0 == "alternate" %} {% with row.1 as doc %} {% if compact %} {% else %} {% endif %} {% for field, verbose_name in boms.0.extra_columns %} {% endfor %} {% if compact %} {% else %} {% endif %} {% endwith %} {% else %} {% endif %} {% endif %} {% endfor %} {% else %} {% if tag == "equal" and compact and forloop.counter == 2 %} {% endif %} {% endif %} {% endfor %} {% endfor %}
{{ date1|date:"DATETIME_FORMAT" }} {{ date2|date:"DATETIME_FORMAT" }}
{% trans "Level" %} {% trans "Ord." %} {% trans "Qty" %} {% trans "Unit" %} {% trans "Type/ref./rev." %} {% trans "Reference" %} {% trans "Revision" %} {% trans "Type" %} {% trans "Name" %} {{ verbose_name|capfirst }} {% trans "Current/old states" %} {% trans "Current state" %} {% trans "Old state" %}
- - - - {{ d.obj.type }} / {{ d.obj.reference }} /{{ d.obj.revision }} {{ d.obj.reference }} {{ d.obj.revision }} {{ d.obj.type }} {{ d.obj.name }} - {{ d.obj.state.name }} / {{ d.states|key:d.obj.id }} {{ d.obj.state.name }} {{ d.states|key:d.obj.id }}
{{c.level}} {{ link.order }} {{ link.quantity }} {{ link.get_unit_display }} {{ child.type }} / {{ child.reference }} / {{ child.revision }} {{ child.reference }} {{ child.revision }} {{ child.type }} {{ child.name }} {{ v }} {{ child.state.name }} / {{ row.2 }} {{ child.state.name }} {{ row.2 }} {% if row.0 == "document" %} {% trans "Doc" %} {% else %} {% trans "Alt" %} {% endif %} {{ doc.type }} / {{ doc.reference }} / {{ doc.revision }} {{ doc.reference }} {{ doc.revision }} {{ doc.type }} {{ doc.name }} {{ doc.state.name }} / {{ row.2}} {{ doc.state.name }} {{ row.2}}
...
{% endwith %} {% endwith %} {% endblock %}