{% load i18n %} {% load inventree_extras %} {% if roles.part.change != True and editing_enabled %}
{% trans "You do not have permission to edit the BOM." %}
{% else %} {% if part.bom_checked_date %} {% if part.is_bom_valid %}
{% else %}
{% blocktrans with part=part.full_name %}The BOM for {{ part }} has changed, and must be validated.
{% endblocktrans %} {% endif %} {% blocktrans with part=part.full_name checker=part.bom_checked_by check_date=part.bom_checked_date %}The BOM for {{ part }} was last checked by {{ checker }} on {{ check_date }}{% endblocktrans %}
{% else %}
{% blocktrans with part=part.full_name %}The BOM for {{ part }} has not been validated.{% endblocktrans %}
{% endif %}
{% if editing_enabled %} {% if part.variant_of %} {% endif %} {% elif part.active %} {% if roles.part.change %} {% if part.is_bom_valid == False %} {% endif %} {% endif %} {% endif %}
{% endif %}