diff options
author | nashe <thomas@chauchefoin.fr> | 2017-10-17 09:15:11 +0200 |
---|---|---|
committer | nashe <thomas@chauchefoin.fr> | 2017-10-17 09:15:11 +0200 |
commit | 4be283528552e579141b5e7d2d0a9a3972365bf2 (patch) | |
tree | 1f25cffbf21d309aed513c41547dc9c63f61ec5b /custom/views | |
parent | aa9abd236239e363da2934918fe1fb32242a1859 (diff) | |
download | planet-4be283528552e579141b5e7d2d0a9a3972365bf2.tar planet-4be283528552e579141b5e7d2d0a9a3972365bf2.tar.gz planet-4be283528552e579141b5e7d2d0a9a3972365bf2.tar.bz2 planet-4be283528552e579141b5e7d2d0a9a3972365bf2.tar.xz planet-4be283528552e579141b5e7d2d0a9a3972365bf2.zip |
Move the setup page into a view
Diffstat (limited to 'custom/views')
-rw-r--r-- | custom/views/install.tpl.php | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/custom/views/install.tpl.php b/custom/views/install.tpl.php new file mode 100644 index 0000000..038ecdb --- /dev/null +++ b/custom/views/install.tpl.php @@ -0,0 +1,118 @@ +<!DOCTYPE html> +<html lang="en"> +<meta charset="utf-8"/> +<head> + <title><?=_g('moonmoon installation')?></title> + <style> + body { + font: normal 1em sans-serif; + width: 500px; + margin: 0 auto; + } + + /* Error */ + td.ok { + color: #090; + } + + td.fail { + color: #900; + font-weight: bold; + } + th { + text-align: left; + } + + /* Install */ + .field label { + display: block; + } + + .submit { + font-size: 2em; + } + + </style> +</head> + +<body> +<h1><?=_g('moonmoon installation')?></h1> + +<?php if ($status == 'error') : ?> + <div id="compatibility"> + <h2>Sorry, your server is not compatible with moonmoon.</h2> + + <h3>Your server does not fulfill the requirements</h3> + <table> + <thead> + <tr> + <th>Test</th> + <th>Result</th> + </tr> + </thead> + <tbody> + <?php echo $strInstall ?> + </tbody> + </table> + + <h3>Troubleshooting</h3> + <p>To install moonmoon, try the following changes:</p> + <ul> + <?php echo $strRecommendation; ?> + </ul> + </div> + +<?php elseif ($status == 'install') : ?> + <div> + <form method="post" action=""> + <fieldset> + <input type="hidden" id="url" name="url" value="" readonly="readonly"/> + <script> + <!-- + document.forms[0].elements[1].value = document.URL.replace('install.php',''); + --> + </script> + + <p class="field"> + <label for="title">Title:</label> + <input type="text" id="title" name="title" value="My website"/> + </p> + <!-- + <p class="field"> + <label>Administrator login:</label> <code>admin</code> + </p> + --> + <p class="field"> + <label for="password">Administrator password:</label> + <input type="text" id="password" name="password" class="text password" value="admin" /> + </p> + <p class="field"> + <label for="locale">Language:</label> + <select name="locale" id="locale"> + <option selected="selected" value="en">English</option> + <option value="es">Español</option> + <option value="fr">Français</option> + </select> + </p> + <p> + <input type="submit" class="submit" value="Install"/> + </p> + </fieldset> + </form> + </div> + +<?php elseif ($status =='installed'): ?> + + <p><?=_g('Congratulations! Your moonmoon is ready.')?></p> + <h3><?=_g("What's next?")?></h3> + <ol> + <li> + <?=_g('<strong>Delete</strong> <code>install.php</code> with your FTP software.')?> + </li> + <li> + <?=_g('Use your password to go to the <a href="./admin/">administration panel</a>')?> + </li> + </ol> +<?php endif; ?> +</body> +</html> |