Ignore:
Timestamp:
Apr 2, 2010, 3:05:53 PM (14 years ago)
Author:
plg
Message:

Improve the install confirmation page: dedicated button to download the
database.inc.php file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/install.tpl

    r5408 r5571  
    9292  color: #ff3363;
    9393}
     94
     95.config_creation_failed {
     96  text-align:left;
     97  border:3px solid #F20D00;
     98  color:#999;
     99  margin:20px;
     100  padding:0px 20px 5px 20px;
     101  background-image:url(admin/themes/default/icon/errors.png);
     102  background-repeat:no-repeat;
     103}
    94104</style>
    95105{/literal}
     
    104114
    105115<h2>Piwigo {$RELEASE} - {'Installation'|@translate}</h2>
     116
     117{if isset($config_creation_failed)}
     118<div class="config_creation_failed">
     119  <p style="margin-left:30px;">
     120    <strong>{'Creation of config file local/config/database.inc.php failed.'|@translate}</strong>
     121  </p>
     122  <ul>
     123    <li>
     124      <p>{'You can download the config file and upload it to local/config directory of your installation.'|@translate}</p>
     125      <p style="text-align:center">
     126          <input type="button" value="{'Download the config file'|@translate}" onClick="window.open('{$config_url}');">
     127      </p>
     128    </li>
     129    <li>
     130      <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>
     131      <textarea rows="15" cols="70">{$config_file_content}</textarea>
     132    </li>
     133  </ul>
     134</div>
     135{/if}
    106136
    107137{if isset($errors)}
Note: See TracChangeset for help on using the changeset viewer.