{% if schema['units'] == "1" %} {% if id_prefix+'_text' in errors %}{{ errors[id_prefix+'_text'] }}{% endif %} {% else %}
{% if data is not none %}{{ (data | to_datatype).units | prettify_units }}{% else %}{{ schema['units'] | prettify_units }}{% endif %}
{% endif %} {% if id_prefix+'_magnitude' in object_errors %}Error: {{ object_errors[id_prefix+'_magnitude'] }}{% endif %}