{# View #}
{% if data is none %} — {% else %} {% if schema['units'] == "1" %} {{ data.magnitude_in_base_units | babel_format_number }} {% else %} {{ (data | to_datatype).magnitude | babel_format_number }} {{ (data | to_datatype).units | prettify_units }} {% endif %} {% endif %}
{{ _('Your input is not valid. Please check.') }}
{# Form #}
{% if schema['units'] == "1" %} {% else %}
{% if data is not none %} {{ (data | to_datatype).units | prettify_units }}{% else %} {{ schema['units'] | prettify_units }}{% endif %}
{% endif %} {% if id_prefix+'_magnitude' in errors %} {{ _('Error:') }} {{ errors[id_prefix+'_magnitude'] }}{% endif %}