diff options
author | Owen Winkler <a_github@midnightcircus.com> | 2013-10-05 16:13:46 -0700 |
---|---|---|
committer | Owen Winkler <a_github@midnightcircus.com> | 2013-10-05 16:13:46 -0700 |
commit | 08e1147a6b9146b2b0cc1d234f5b40c0b5e9c4e9 (patch) | |
tree | 6f8a26bd8b3bde717b2ecbe9aca5df0d7e14b5dc /core/templates | |
parent | 0501a947bc2d11b3494790db1fdef8e71ccc4e83 (diff) | |
parent | 46ca1eb91b3b653b52af408ac0d0047d02f0f798 (diff) | |
download | nextcloud-server-08e1147a6b9146b2b0cc1d234f5b40c0b5e9c4e9.tar.gz nextcloud-server-08e1147a6b9146b2b0cc1d234f5b40c0b5e9c4e9.zip |
Merge pull request #4982 from syncloud/master
Automatic config can set some of parameters or all of them
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/installation.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/core/templates/installation.php b/core/templates/installation.php index 8b3ee8f120f..5a103762269 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -61,8 +61,14 @@ </p> </fieldset> - <fieldset id="datadirField"> + <?php if(!$_['directoryIsSet'] OR !$_['dbIsSet']): ?> + <fieldset id="advancedHeader"> <legend><a id="showAdvanced"><?php p($l->t( 'Advanced' )); ?> <img class="svg" src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" /></a></legend> + </fieldset> + <?php endif; ?> + + <?php if(!$_['directoryIsSet']): ?> + <fieldset id="datadirField"> <div id="datadirContent"> <label for="directory"><?php p($l->t( 'Data folder' )); ?></label> <input type="text" name="directory" id="directory" @@ -70,7 +76,9 @@ value="<?php p(OC_Helper::init_var('directory', $_['directory'])); ?>" /> </div> </fieldset> + <?php endif; ?> + <?php if(!$_['dbIsSet']): ?> <fieldset id='databaseField'> <?php if($_['hasMySQL'] or $_['hasPostgreSQL'] or $_['hasOracle'] or $_['hasMSSQL']) $hasOtherDB = true; else $hasOtherDB =false; //other than SQLite ?> @@ -171,6 +179,7 @@ </div> <?php endif; ?> </fieldset> + <?php endif; ?> <div class="buttons"><input type="submit" class="primary" value="<?php p($l->t( 'Finish setup' )); ?>" data-finishing="<?php p($l->t( 'Finishing …' )); ?>" /></div> </form> |