aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-04-02 13:05:53 +0000
committerplegall <plg@piwigo.org>2010-04-02 13:05:53 +0000
commite0317e195b6232090129f39939a86923ccc304ed (patch)
tree5ae54761fed329e50b5db621c1e9caa124d6e336 /admin/themes/default/template
parent783c21a8fd7185f8e2d8c63880a616dba7a95ccb (diff)
Improve the install confirmation page: dedicated button to download the
database.inc.php file. git-svn-id: http://piwigo.org/svn/trunk@5571 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template')
-rw-r--r--admin/themes/default/template/install.tpl30
1 files changed, 30 insertions, 0 deletions
diff --git a/admin/themes/default/template/install.tpl b/admin/themes/default/template/install.tpl
index 31e89ec42..99937a670 100644
--- a/admin/themes/default/template/install.tpl
+++ b/admin/themes/default/template/install.tpl
@@ -91,6 +91,16 @@ TD {
.sql_content, .infos a {
color: #ff3363;
}
+
+.config_creation_failed {
+ text-align:left;
+ border:3px solid #F20D00;
+ color:#999;
+ margin:20px;
+ padding:0px 20px 5px 20px;
+ background-image:url(admin/themes/default/icon/errors.png);
+ background-repeat:no-repeat;
+}
</style>
{/literal}
<title>Piwigo {$RELEASE} - {'Installation'|@translate}</title>
@@ -104,6 +114,26 @@ TD {
<h2>Piwigo {$RELEASE} - {'Installation'|@translate}</h2>
+{if isset($config_creation_failed)}
+<div class="config_creation_failed">
+ <p style="margin-left:30px;">
+ <strong>{'Creation of config file local/config/database.inc.php failed.'|@translate}</strong>
+ </p>
+ <ul>
+ <li>
+ <p>{'You can download the config file and upload it to local/config directory of your installation.'|@translate}</p>
+ <p style="text-align:center">
+ <input type="button" value="{'Download the config file'|@translate}" onClick="window.open('{$config_url}');">
+ </p>
+ </li>
+ <li>
+ <p>{'An alternate solution is to copy the text in the box above and paste it into the file "local/config/database.inc.php" (Warning : database.inc.php must only contain what is in the textarea, no line return or space character)'|@translate}</p>
+ <textarea rows="15" cols="70">{$config_file_content}</textarea>
+ </li>
+ </ul>
+</div>
+{/if}
+
{if isset($errors)}
<div class="errors">
<ul>