BeastBB/templates/install/welcome.html.ep

32 lines
1.3 KiB
Plaintext

<html>
<head>
<script src="js/install/welcome.js"></script>
</head>
<body>
% if ( !defined $config->{db} ) {
<h1>Welcome to the 1 minute BeastBB installation.</h1>
<h2>Please introduce your Postgresql database details.</h2>
<p>Blank fields will be attempted to be guess to sane value if posible</p>
% if ( defined $error ) {
<p style="color: red;"><%= $error %></p>
% }
<form method="POST" action="/install/database">
<h3>Username.</h3>
<label for="username"><input type="text" name="username"/></label>
<label for"password"><h3>Password.</h3></label>
<input type="password" name="password" id="postgres_password"/>
<br>
<a href="#" id="change_readable_password">Click here to toggle readable/unreadable the password</a>
<label for="host"><h3>Host</h3></label>
<input type="text" name="host"/>
<label for="port"><h3>Port</h3></label>
<input type="number" name="port"/>
<label for="dbname"><h3>Database Name</h3></label>
<input type="text" name="dbname"/>
<input type="submit" value="Submit"/>
</form>
% }
</body>
</html>