{% if widget.is_initial %}
{% if widget.current_preview %}{% endif %} {{ widget.initial_text }}: {{ widget.value }} {% if not widget.required %}{% endif %}
{% endif %} {# The input sets or unsets every htmx attribute that it would otherwise inherit from an htmx form and that would break uploads. #}
{# The inline display stops a framework class such as Bulma's .progress from overriding hidden. #}
{% if widget.upload %}{% include "heggra/file.html" with upload=widget.upload classes=widget.classes remove_text=widget.remove_text disabled=widget.disabled %}{% endif %}