{% load i18n %} {% load inventree_extras %} {% if not roles.part.change %}
{% trans "You do not have permission to edit the BOM." %}
{% endif %} {% 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 roles.part.change %}
{% endif %}