{# templates/form.html #} {% set key = item.key %} {% macro input(item, type='text', class='api', name='name') %} {{ item.name }}{{ add }} {% endmacro %} {% block form_render %} {% if item.get("elem") == "hex_info" %} {{ label(item, add=':') }} {{ input(item, class='content api') }} data-hex readonly /> {% elif item.get("elem") == "label" %} {{ label(item, class='') }} {% elif item.get("elem") == "range" %}