Add database installer
This commit is contained in:
parent
390574ed45
commit
44ff1d2fb6
@ -9,6 +9,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="installer_header">{{#i18n.Translations}}{{db_install_title}}{{/i18n.Translations}}</div>
|
<div class="installer_header">{{#i18n.Translations}}{{db_install_title}}{{/i18n.Translations}}</div>
|
||||||
|
{{#dialog.HasError}}
|
||||||
|
<p class="installer_error">{{dialog.Error}}</p>
|
||||||
|
{{/dialog.HasError}}
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
<div id="install-outer">
|
<div id="install-outer">
|
||||||
<div id="installer-inner">
|
<div id="installer-inner">
|
||||||
|
72
contrib/templates/default/inst_postgres_db.mustache
Normal file
72
contrib/templates/default/inst_postgres_db.mustache
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="initial-scale=1" />
|
||||||
|
<link rel="stylesheet" href="{{board.Prefix}}static/site.css" />
|
||||||
|
<link rel="stylesheet" href="{{board.Prefix}}static/user.css" />
|
||||||
|
<script type="text/javascript" src="{{board.Prefix}}static/nntpchan.js"></script>
|
||||||
|
<title>{{#i18n.Translations}}{{postgres_db_install_title}}{{/i18n.Translations}}</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="installer_header">{{#i18n.Translations}}{{postgres_db_install_title}}{{/i18n.Translations}}</div>
|
||||||
|
{{#dialog.HasError}}
|
||||||
|
<p class="installer_error">{{dialog.Error}}</p>
|
||||||
|
{{/dialog.HasError}}
|
||||||
|
<form action="" method="post" autocomplete="off">
|
||||||
|
<div id="install-outer">
|
||||||
|
<div id="installer-inner">
|
||||||
|
<table class="installer-tab">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
{{#i18n.Translations}}{{host_name}}{{/i18n.Translations}}
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="host" value="{{dialog.Host}}">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
{{#i18n.Translations}}{{port_name}}{{/i18n.Translations}}
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="port" value="{{dialog.Port}}">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
{{#i18n.Translations}}{{username_name}}{{/i18n.Translations}}
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="user" value="{{dialog.Username}}">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
{{#i18n.Translations}}{{password_name}}{{/i18n.Translations}}
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<input type="password" name="password" value="">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
{{#dialog.HasNext}}
|
||||||
|
<input type="submit" value="{{#i18n.Translations}}{{next_prompt}}{{/i18n.Translations}}" class="button" />
|
||||||
|
{{/dialog.HasNext}}
|
||||||
|
{{^dialog.HasNext}}
|
||||||
|
<input type="submit" value="{{#i18n.Translations}}{{finish_prompt}}{{/i18n.Translations}}" class="button" />
|
||||||
|
{{/dialog.HasNext}}
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
{{#dialog.HasPrevious}}
|
||||||
|
<div class="back_button">
|
||||||
|
<form action="" method="post">
|
||||||
|
<input type="hidden" name="back" value="true" />
|
||||||
|
<input type="submit" value="{{#i18n.Translations}}{{previous_prompt}}{{/i18n.Translations}}" class="button" />
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
{{/dialog.HasPrevious}}
|
||||||
|
</body>
|
||||||
|
</html>
|
64
contrib/templates/default/inst_redis_db.mustache
Normal file
64
contrib/templates/default/inst_redis_db.mustache
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="initial-scale=1" />
|
||||||
|
<link rel="stylesheet" href="{{board.Prefix}}static/site.css" />
|
||||||
|
<link rel="stylesheet" href="{{board.Prefix}}static/user.css" />
|
||||||
|
<script type="text/javascript" src="{{board.Prefix}}static/nntpchan.js"></script>
|
||||||
|
<title>{{#i18n.Translations}}{{redis_db_install_title}}{{/i18n.Translations}}</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="installer_header">{{#i18n.Translations}}{{redis_db_install_title}}{{/i18n.Translations}}</div>
|
||||||
|
{{#dialog.HasError}}
|
||||||
|
<p class="installer_error">{{dialog.Error}}</p>
|
||||||
|
{{/dialog.HasError}}
|
||||||
|
<form action="" method="post" autocomplete="off">
|
||||||
|
<div id="install-outer">
|
||||||
|
<div id="installer-inner">
|
||||||
|
<table class="installer-tab">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
{{#i18n.Translations}}{{host_name}}{{/i18n.Translations}}
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="host" value="{{dialog.Host}}">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
{{#i18n.Translations}}{{port_name}}{{/i18n.Translations}}
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="port" value="{{dialog.Port}}">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
{{#i18n.Translations}}{{password_name}}{{/i18n.Translations}}
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<input type="password" name="password" value="">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
{{#dialog.HasNext}}
|
||||||
|
<input type="submit" value="{{#i18n.Translations}}{{next_prompt}}{{/i18n.Translations}}" class="button" />
|
||||||
|
{{/dialog.HasNext}}
|
||||||
|
{{^dialog.HasNext}}
|
||||||
|
<input type="submit" value="{{#i18n.Translations}}{{finish_prompt}}{{/i18n.Translations}}" class="button" />
|
||||||
|
{{/dialog.HasNext}}
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
{{#dialog.HasPrevious}}
|
||||||
|
<div class="back_button">
|
||||||
|
<form action="" method="post">
|
||||||
|
<input type="hidden" name="back" value="true" />
|
||||||
|
<input type="submit" value="{{#i18n.Translations}}{{previous_prompt}}{{/i18n.Translations}}" class="button" />
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
{{/dialog.HasPrevious}}
|
||||||
|
</body>
|
||||||
|
</html>
|
Reference in New Issue
Block a user