From 44ff1d2fb62fff4a809c8b1a45ad2ed6424691f6 Mon Sep 17 00:00:00 2001 From: ZiRo Date: Tue, 29 Mar 2016 13:38:38 +0200 Subject: [PATCH] Add database installer --- contrib/templates/default/inst_db.mustache | 3 + .../default/inst_postgres_db.mustache | 72 +++++++++++++++++++ .../templates/default/inst_redis_db.mustache | 64 +++++++++++++++++ 3 files changed, 139 insertions(+) create mode 100644 contrib/templates/default/inst_postgres_db.mustache create mode 100644 contrib/templates/default/inst_redis_db.mustache diff --git a/contrib/templates/default/inst_db.mustache b/contrib/templates/default/inst_db.mustache index d5c8546..550a89f 100644 --- a/contrib/templates/default/inst_db.mustache +++ b/contrib/templates/default/inst_db.mustache @@ -9,6 +9,9 @@
{{#i18n.Translations}}{{db_install_title}}{{/i18n.Translations}}
+ {{#dialog.HasError}} +

{{dialog.Error}}

+ {{/dialog.HasError}}
diff --git a/contrib/templates/default/inst_postgres_db.mustache b/contrib/templates/default/inst_postgres_db.mustache new file mode 100644 index 0000000..4fdc4d8 --- /dev/null +++ b/contrib/templates/default/inst_postgres_db.mustache @@ -0,0 +1,72 @@ + + + + + + + + {{#i18n.Translations}}{{postgres_db_install_title}}{{/i18n.Translations}} + + +
{{#i18n.Translations}}{{postgres_db_install_title}}{{/i18n.Translations}}
+ {{#dialog.HasError}} +

{{dialog.Error}}

+ {{/dialog.HasError}} + +
+
+ + + + + + + + + + + + + + + + + + + +
+ {{#i18n.Translations}}{{host_name}}{{/i18n.Translations}} + + +
+ {{#i18n.Translations}}{{port_name}}{{/i18n.Translations}} + + +
+ {{#i18n.Translations}}{{username_name}}{{/i18n.Translations}} + + +
+ {{#i18n.Translations}}{{password_name}}{{/i18n.Translations}} + + +
+
+ {{#dialog.HasNext}} + + {{/dialog.HasNext}} + {{^dialog.HasNext}} + + {{/dialog.HasNext}} +
+ + {{#dialog.HasPrevious}} +
+
+ + +
+
+ {{/dialog.HasPrevious}} + + diff --git a/contrib/templates/default/inst_redis_db.mustache b/contrib/templates/default/inst_redis_db.mustache new file mode 100644 index 0000000..67ed6c2 --- /dev/null +++ b/contrib/templates/default/inst_redis_db.mustache @@ -0,0 +1,64 @@ + + + + + + + + {{#i18n.Translations}}{{redis_db_install_title}}{{/i18n.Translations}} + + +
{{#i18n.Translations}}{{redis_db_install_title}}{{/i18n.Translations}}
+ {{#dialog.HasError}} +

{{dialog.Error}}

+ {{/dialog.HasError}} +
+
+
+ + + + + + + + + + + + + + + +
+ {{#i18n.Translations}}{{host_name}}{{/i18n.Translations}} + + +
+ {{#i18n.Translations}}{{port_name}}{{/i18n.Translations}} + + +
+ {{#i18n.Translations}}{{password_name}}{{/i18n.Translations}} + + +
+
+ {{#dialog.HasNext}} + + {{/dialog.HasNext}} + {{^dialog.HasNext}} + + {{/dialog.HasNext}} +
+
+ {{#dialog.HasPrevious}} +
+
+ + +
+
+ {{/dialog.HasPrevious}} + +