{% import "_includes/forms" as forms %}

{% set readOnly = readOnly ?? false %}

{{ forms.autosuggestField({
    label: "Username"|t('app'),
    id: 'username',
    name: 'username',
    suggestEnvVars: true,
    value: adapter.username,
    errors: adapter.getErrors('username'),
    disabled: readOnly,
}) }}

{{ forms.autosuggestField({
    label: "Password"|t('app'),
    id: 'password',
    name: 'password',
    suggestEnvVars: true,
    value: adapter.password,
    errors: adapter.getErrors('password'),
    disabled: readOnly,
}) }}
