<h3 class="block-formSectionHeader">{{ phrase('source_database_configuration') }}</h3>
<xf:if is="!$baseConfig.db.host">
	<xf:textboxrow name="config[db][host]" value="{$db.host}"
		label="{{ phrase('mysql_server') }}"
		placeholder="$config['MasterServer']['servername']" />
	<xf:textboxrow name="config[db][port]" value="{$db.port}"
		label="{{ phrase('mysql_port') }}"
		placeholder="$config['MasterServer']['port']" />
	<xf:textboxrow name="config[db][username]" value="{$db.username}"
		label="{{ phrase('mysql_user_name') }}"
		placeholder="$config['MasterServer']['username']" />
	<xf:textboxrow name="config[db][password]" value="{$db.password}" autocomplete="off"
		label="{{ phrase('mysql_password') }}"
		placeholder="$config['MasterServer']['password']" />
	<xf:textboxrow name="config[db][dbname]" value="{$db.dbname}"
		label="{{ phrase('mysql_database_name') }}"
		placeholder="$config['Database']['dbname']" />
	<xf:textboxrow name="config[db][tablePrefix]" value="{$db.tablePrefix}"
		label="{{ phrase('mysql_table_prefix') }}"
		placeholder="$config['Database']['tableprefix']" />
	<hr class="formRowSep" />
	<xf:textboxrow name="config[db][charset]" value="{$db.charset}"
		label="{{ phrase('mysql_force_charset') }}"
		explain="{{ phrase('mysql_force_charset_explain') }}"
		placeholder="$config['Mysqli']['charset']" />

	<xf:hiddenval name="config[super_admins]" value="{$super_admins}" />
<xf:else />
	<xf:formrow label="{{ phrase('mysql_server') }}">{$fullConfig.db.host}:{$fullConfig.db.dbname}</xf:formrow>
</xf:if>