{# allow_manual_input comes from the recipe. When it is false the digits are not drawn at all - not hidden with CSS: they are the only unambiguously typed way in, and markup that is merely hidden is still markup that can be shown again. The keyboard listener stays either way: that is how the USB caliper arrives, and the component still checks at confirm time, because a wedge and a keyboard are the same device as far as the browser is concerned. #} {% set allow_manual = allow_manual_input if allow_manual_input is defined else true %}
{% if not allow_manual %}
{{ _('Misura solo da calibro: questa ricetta non ammette valori digitati') }}
{% else %}
{% endif %}