]> source.dussan.org Git - nextcloud-server.git/commitdiff
Show database only in advanced
authorMarvin Thomas Rabe <m.rabe@echtzeitraum.de>
Mon, 3 Oct 2011 11:32:16 +0000 (13:32 +0200)
committerMarvin Thomas Rabe <m.rabe@echtzeitraum.de>
Mon, 3 Oct 2011 11:32:16 +0000 (13:32 +0200)
core/css/styles.css
core/js/setup.js
core/templates/installation.php
index.php

index 44331d1998b7ec9c9d30aa3f6fcd45afaf85497c..4d9cb2037740c445f49949872f1fcbbd9ae80911 100644 (file)
@@ -67,7 +67,6 @@ input[type="submit"].highlight{ background:#ffc100; border:1px solid #db0; text-
 #body-login p.info a { font-weight:bold; color:#777; }
 
 #login { min-height:30em; margin:2em auto 0; border-bottom:1px solid #f8f8f8; background:#eee; }
-#login a#showAdvanced { color: #555; }
 #login form { width:22em; margin:2em auto 2em; padding:0; }
 #login form fieldset { background:0; border:0; margin-bottom:2em; padding:0; }
 #login form fieldset legend { font-weight:bold; }
index e16f9b6e3291576f7b90fdf900862c8fdc0de9f4..b765d41ba351a7bac15c4aeee25bd78a2d8fa9fd 100644 (file)
@@ -1,6 +1,7 @@
 $(document).ready(function() {
        $('#selectDbType').buttonset();
        $('#datadirContent').hide(250);
+       $('#databaseField').hide(250);
        if($('#hasSQLite').val()=='true'){
                $('#use_other_db').hide();
                $('#dbhost').hide();
@@ -29,6 +30,7 @@ $(document).ready(function() {
 
        $('#showAdvanced').click(function() {
                $('#datadirContent').slideToggle(250);
+               $('#databaseField').slideToggle(250);
        });
        $("form").submit(function(){
                // Save form parameters
index e15e81191a91a9d66645c192a96ed2a4b6e01b3b..c1bfbdf176303ef8c1362386e35a512b0a0e777f 100644 (file)
                <input type="text" name="adminlogin" id="adminlogin" value="<?php print OC_Helper::init_var('adminlogin'); ?>" placeholder="<?php echo $l->t( 'Username' ); ?>" autocomplete="off" autofocus required />
                <input type="password" name="adminpass" id="adminpass" value="<?php print OC_Helper::init_var('adminpass'); ?>" placeholder="<?php echo $l->t( 'Password' ); ?>" required />
        </fieldset>
-       
+
+       <fieldset id="datadirField">
+               <legend><a id="showAdvanced"><?php echo $l->t( 'Advanced' ); ?> ▾</a></legend>
+               <div id="datadirContent">
+                       <input type="text" name="directory" id="directory" value="<?php print OC_Helper::init_var('directory', $_['directory']); ?>" placeholder="<?php echo $l->t( 'Data folder' ); ?>" />
+               </div>
+       </fieldset>
+
        <fieldset id='databaseField'>
                <?php if($_['hasMySQL'] or $_['hasPostgreSQL']) $hasOtherDB = true; //other than SQLite ?>
                <legend><?php echo $l->t( 'Configure the database' ); ?></legend>
                        <input type="text" name="dbname" id="dbname" value="<?php print OC_Helper::init_var('dbname'); ?>" placeholder="<?php echo $l->t( 'Database name' ); ?>" autocomplete="off" />
                </div>
                <?php endif; ?>
-
-       </fieldset>
-
-       <fieldset id="datadirField">
-               <legend><a id="showAdvanced"><?php echo $l->t( 'Advanced' ); ?> ▾</a></legend>
-               <div id="datadirContent">
                        <input type="text" name="dbhost" id="dbhost" value="<?php print OC_Helper::init_var('dbhost', 'localhost'); ?>" placeholder="<?php echo $l->t( 'Database host' ); ?>" />
-                       <input type="text" name="directory" id="directory" value="<?php print OC_Helper::init_var('directory', $_['directory']); ?>" placeholder="<?php echo $l->t( 'Data folder' ); ?>" />
-               </div>
+
        </fieldset>
 
        <div class="buttons"><input type="submit" value="<?php echo $l->t( 'Finish setup' ); ?>" /></div>
index fb8d1922dd475cadd3bf9ebd4230324f4816a646..072f526d8f938e60a676455161dbb46a72354dfc 100644 (file)
--- a/index.php
+++ b/index.php
@@ -28,7 +28,7 @@ require_once('lib/base.php');
 // Setup required :
 $not_installed = !OC_Config::getValue('installed', false);
 $install_called = (isset($_POST['install']) AND $_POST['install']=='true');
-if($not_installed) {
+if($not_installed OR true) {
        OC_Util::addScript('setup');
        require_once('setup.php');
        exit();