{% import "macros/alerts.html" as alerts %} {% import "macros/forms.html" as forms %} {% import "macros/icons.html" as icons %} {% extends layout %} {% block main %}

Connection to your database

Your database credentials will be safely stored and encrypted.
{{ forms.form_field(form.database_type, **{"hx-post": url_for('dashboard.workspaces:create.step3'), "hx-trigger": "change", "hx-target": "#main"}) }}
{{ forms.form_field(form.database_host) }}
{{ forms.form_field(form.database_port) }}
{{ forms.form_field(form.database_username) }} {{ forms.form_field(form.database_password) }} {{ forms.form_field(form.database_name) }} {{ forms.form_field(form.database_ssl_mode, **{"hx-post": url_for('dashboard.workspaces:create.step3'), "hx-trigger": "change", "hx-target": "#main"}) }} {% if form.database_ssl_mode.data in UNSAFE_SSL_MODES %}
In this mode, your data may pass unencrypted on the Internet. We strongly recommend to use a mode requiring SSL.
{% endif %} {{ forms.form_csrf_token(form) }} {% if error %} {% call alerts.error() %} {{ error }} {% endcall %} {% endif %} {% if database_connection_success %} {% call alerts.success() %} Successfully connected to the database {% endcall %} {% endif %}
<- Back
{% endblock %}