{% load static %} {% load materializecss %} {% comment %} This file is intended to be used as a Django include file for the purpose of displaying all of the properties of a part revision, as follows: {% include 'bom/part-revision-display.html' with part_revision_form=XXX %} where XXX should be the name of the includee's object that represent its PartRevisionForm. {% endcomment %}
{{ part_revision_form.revision|materializecss:'m2 s12' }}
{{ part_revision_form.description|materializecss:'m8 s12' }}
{% if part_revision_form.property_definitions %}

Properties

{% else %}

You can add part class specific properties (e.g. voltage, width, sheen, etc) after creating the part.

{% endif %}
{% for group in part_revision_form.property_fields %}
{{ group.property|materializecss:'m3 s6' }}
{% if group.unit %}
{{ group.unit|materializecss:'m3 s6' }}
{% endif %}
{% endfor %}