{{ form.connection_type.label(class="block mb-2 text-sm font-medium text-gray-900 dark:text-white") }}
{{ form.connection_type(class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-primary focus:border-primary block w-full p-2.5 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary dark:focus:border-primary", **{"hx-get": url_for("connections.create_connection") , "hx-target": "closest .relative", "hx-swap": "outerHTML", "hx-trigger": "change", "hx-include": "[name='connection_type']"}) }}
{% if form.connection_type.errors %}
{% for error in form.connection_type.errors %}
{{ error }}
{% endfor %}