summaryrefslogtreecommitdiffstats
path: root/core/templates/installation.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2014-01-31 16:43:12 +0100
committerBart Visscher <bartv@thisnet.nl>2014-01-31 16:43:12 +0100
commitbca725dc32e159d756f023d428816b8f9821b732 (patch)
treec3e1910e952728433c2572cea96fa8024c79d1d5 /core/templates/installation.php
parent09d2ba017e603fe6ac237da7830d86d74b2da61c (diff)
parent271088a7a23ffcdb2082b6dfc5b6f50833612a0f (diff)
downloadnextcloud-server-bca725dc32e159d756f023d428816b8f9821b732.tar.gz
nextcloud-server-bca725dc32e159d756f023d428816b8f9821b732.zip
Merge branch 'master' into setup
Conflicts: core/setup.php
Diffstat (limited to 'core/templates/installation.php')
-rw-r--r--core/templates/installation.php29
1 files changed, 20 insertions, 9 deletions
diff --git a/core/templates/installation.php b/core/templates/installation.php
index 8b087706801..182fc83a4d4 100644
--- a/core/templates/installation.php
+++ b/core/templates/installation.php
@@ -6,18 +6,19 @@
<form action="index.php" method="post">
<input type="hidden" name="install" value="true" />
<?php if(count($_['errors']) > 0): ?>
- <ul class="errors">
+ <fieldset class="warning">
+ <legend><strong><?php p($l->t('Error'));?></strong></legend>
<?php foreach($_['errors'] as $err): ?>
- <li>
+ <p>
<?php if(is_array($err)):?>
<?php print_unescaped($err['error']); ?>
- <p class='hint'><?php print_unescaped($err['hint']); ?></p>
+ <span class='hint'><?php print_unescaped($err['hint']); ?></span>
<?php else: ?>
<?php print_unescaped($err); ?>
<?php endif; ?>
- </li>
+ </p>
<?php endforeach; ?>
- </ul>
+ </fieldset>
<?php endif; ?>
<?php if($_['vulnerableToNullByte']): ?>
<fieldset class="warning">
@@ -39,7 +40,7 @@
<p><?php p($l->t('Your data directory and files are probably accessible from the internet because the .htaccess file does not work.'));?><br>
<?php print_unescaped($l->t(
'For information how to properly configure your server, please see the <a href="%s" target="_blank">documentation</a>.',
- $theme->getDocBaseUrl().'/server/5.0/admin_manual/installation.html'
+ link_to_docs('admin-install')
)); ?></p>
</fieldset>
<?php endif; ?>
@@ -53,16 +54,23 @@
</p>
<p class="infield groupbottom">
<input type="password" name="adminpass" data-typetoggle="#show" id="adminpass" placeholder=""
- value="<?php p(OC_Helper::init_var('adminpass')); ?>" />
+ value="<?php p(OC_Helper::init_var('adminpass')); ?>" required />
<label for="adminpass" class="infield"><?php p($l->t( 'Password' )); ?></label>
<img class="svg" id="adminpass-icon" src="<?php print_unescaped(image_path('', 'actions/password.svg')); ?>" alt="" />
<input type="checkbox" id="show" name="show" />
<label for="show"></label>
+ <div class="strengthify-wrapper"></div>
</p>
</fieldset>
- <fieldset id="datadirField">
+ <?php if(!$_['directoryIsSet'] OR !$_['dbIsSet'] OR count($_['errors']) > 0): ?>
+ <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'] OR count($_['errors']) > 0): ?>
+ <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 +78,9 @@
value="<?php p(OC_Helper::init_var('directory', $_['directory'])); ?>" />
</div>
</fieldset>
+ <?php endif; ?>
+ <?php if(!$_['dbIsSet'] OR count($_['errors']) > 0): ?>
<fieldset id='databaseField'>
<?php if($_['hasMySQL'] or $_['hasPostgreSQL'] or $_['hasOracle'] or $_['hasMSSQL'])
$hasOtherDB = true; else $hasOtherDB =false; //other than SQLite ?>
@@ -171,6 +181,7 @@
</div>
<?php endif; ?>
</fieldset>
+ <?php endif; ?>
- <div class="buttons"><input type="submit" class="primary" value="<?php p($l->t( 'Finish setup' )); ?>" /></div>
+ <div class="buttons"><input type="submit" class="primary" value="<?php p($l->t( 'Finish setup' )); ?>" data-finishing="<?php p($l->t( 'Finishing …' )); ?>" /></div>
</form>