{% extends get_form_property_template(schema, container_style) %} {% block property_field %} {% include "objects/fields/quantity_field.html" %} {% endblock %} {% block property_errors %} {% if 'calculation' in schema %}
{% if 'units' in schema.calculation %} {% set unit = schema.calculation.units %} {% elif schema.units is string %} {% set unit = schema.units %} {% else %} {% set unit = schema.units[0] %} {% endif %}
{% endif %} {{ super() }} {% endblock %}