<h3 class="block-formSectionHeader">
	<span class="block-formSectionHeader-aligner">
		{{ phrase('source_database_configuration') }}
	</span>
</h3>

<xf:foreach loop="$requiredExtensions" key="$extension" value="$installed">
    <xf:if is="!$installed">
		<xf:inforow>
			<div class="blockMessage blockMessage--error blockMessage--iconic">
				{{ phrase('required_php_extension_x_not_found', {'extension': $extension}) }}
			</div>
		</xf:inforow>
	</xf:if>
</xf:foreach>

<xf:macro id="import_config_macros::db_textbox"
	arg-name="host"
	arg-label="{{ phrase('xfi_postgresql_server') }}"
	arg-value="{$config.db.host}" />

<xf:macro id="import_config_macros::db_textbox"
	arg-name="dbname"
	arg-label="{{ phrase('xfi_postgresql_database_name') }}"
	arg-value="{$config.db.dbname}" />

<xf:macro id="import_config_macros::db_textbox"
	arg-name="username"
	arg-label="{{ phrase('xfi_postgresql_user_name') }}"
	arg-value="{$config.db.username}" />

<xf:macro id="import_config_macros::db_textbox"
	arg-name="password"
	arg-label="{{ phrase('xfi_postgresql_password') }}"
	arg-value="{$config.db.password}"
	arg-autocomplete="off" />

<xf:macro id="import_config_macros::db_textbox"
	arg-name="port"
	arg-label="{{ phrase('xfi_postgresql_port') }}"
	arg-value="{$config.db.port}" />

<hr class="formRowSep" />

<xf:textboxrow label="{{ phrase('xfi_discourse_files_directory') }}" name="config[discourse_path]" required="required"
	explain="{{ phrase('xfi_discourse_files_directory_explain') }}" />