<?php
	if($database->isToShow()):
		Balloon::draw($database);
	else:
		$dtb = $database->getDatabaseConfig();
?>

<h1>Banco de dados</h1>
<div class="row form-box">
	<div class="col-8">
		<form method="POST">
			
			<label>Hostname</label>
			<input type="text" name="hostname" value="<?php echo $dtb['host']; ?>" />

			<label>Usuário</label>
			<input type="text" name="username" value="<?php echo $dtb['user']; ?>" />

			<label>Senha</label>
			<input type="text" name="password" value="<?php echo $dtb['pass']; ?>" />

			<label>Banco de dados</label>
			<input type="text" name="database" value="<?php echo $dtb['name']; ?>" />

			<input type="submit" class="right success" value="Atualizar" />

		</form>
	</div>
</div>
<?php
	endif;
?>