<h3 class="block-formSectionHeader">{{ phrase('source_database_configuration') }}</h3>
<xf:if is="!$baseConfig.db.host">
	<xf:textboxrow name="config[db][host]" value="localhost"
		label="{{ phrase('mysql_server') }}"
		placeholder="$config['db']['host']" />
	<xf:textboxrow name="config[db][port]" value="3306"
		label="{{ phrase('mysql_port') }}"
		placeholder="$config['db']['port']" />
	<xf:textboxrow name="config[db][username]"
		label="{{ phrase('mysql_user_name') }}"
		placeholder="$config['db']['username']" />
	<xf:textboxrow name="config[db][password]" autocomplete="off"
		label="{{ phrase('mysql_password') }}"
		placeholder="$config['db']['password']" />
	<xf:textboxrow name="config[db][dbname]"
		label="{{ phrase('mysql_database_name') }}"
		placeholder="$config['db']['dbname']" />
<xf:else />
	<xf:formrow label="{{ phrase('mysql_server') }}">{$fullConfig.db.host}:{$fullConfig.db.dbname}</xf:formrow>
</xf:if>

<xf:if is="$requiresDataPath">
	<xf:if is="!$baseConfig.data_dir">
		<hr class="formRowSep" />

		<xf:textboxrow name="config[data_dir]"
			label="{{ phrase('data_directory') }}"
			placeholder="$config['externalDataPath']" />
	<xf:else />
		<xf:formrow label="{{ phrase('data_directory') }}">{$fullConfig.data_dir}</xf:formrow>
	</xf:if>
</xf:if>
<xf:if is="$requiresInternalDataPath">
	<xf:if is="!$baseConfig.internal_data_dir">
		<xf:textboxrow name="config[internal_data_dir]"
			label="{{ phrase('internal_data_directory') }}"
			placeholder="$config['internalDataPath']" />
	<xf:else />
		<xf:formrow label="{{ phrase('internal_data_directory') }}">{$fullConfig.internal_data_dir}</xf:formrow>
	</xf:if>
</xf:if>
<xf:if is="$requiresForumImportLog">
	<xf:if is="!$baseConfig.forum_import_log">
		<xf:textboxrow name="config[forum_import_log]" label="{{ phrase('forum_import_log') }}">
			<xf:explain>
				{{ phrase('you_must_provide_name_of_forum_import_log') }}
			</xf:explain>
		</xf:textboxrow>
	<xf:else />
		<xf:formrow label="{{ phrase('forum_import_log') }}">
			{$fullConfig.forum_import_log}
		</xf:formrow>
	</xf:if>
</xf:if>