add info about sqlite on setup apge

This commit is contained in:
Morris Jobke 2014-06-02 22:56:50 +02:00
parent c88c0b9a13
commit a4dd4cbb8f
3 changed files with 10 additions and 3 deletions

View File

@ -558,7 +558,7 @@ label.infield { cursor:text !important; top:1.05em; left:.85em; }
}
#body-login p.info{
#body-login footer .info {
white-space: nowrap;
}

View File

@ -13,6 +13,8 @@ $(document).ready(function() {
if($('#hasSQLite').val()){
$('#use_other_db').hide();
$('#use_oracle_db').hide();
} else {
$('#sqliteInformation').hide();
}
$('#adminlogin').change(function(){
$('#adminlogin').val($.trim($('#adminlogin').val()));
@ -20,16 +22,19 @@ $(document).ready(function() {
$('#sqlite').click(function() {
$('#use_other_db').slideUp(250);
$('#use_oracle_db').slideUp(250);
$('#sqliteInformation').show();
});
$('#mysql,#pgsql,#mssql').click(function() {
$('#use_other_db').slideDown(250);
$('#use_oracle_db').slideUp(250);
$('#sqliteInformation').hide();
});
$('#oci').click(function() {
$('#use_other_db').slideDown(250);
$('#use_oracle_db').show(250);
$('#sqliteInformation').hide();
});
$('input[checked]').trigger('click');

View File

@ -91,7 +91,7 @@
<div id="selectDbType">
<?php foreach($_['databases'] as $type => $label): ?>
<?php if(count($_['databases']) === 1): ?>
<p class="info"><?php p($label . ' ' . $l->t( 'will be used' )); ?>.</p>
<p class="info"><?php p($l->t( 'Only %s is available.', array($label) )); ?>.</p>
<input type="hidden" id="dbtype" name="dbtype" value="<?php p($type) ?>" />
<?php else: ?>
<input type="radio" name="dbtype" value="<?php p($type) ?>" id="<?php p($type) ?>"
@ -147,5 +147,7 @@
<?php endif; ?>
<?php endif; ?>
<p id="sqliteInformation" class="info"><?php p($l->t('SQLite will be used as database. For larger installations we recommend to change this.'));?></p>
<div class="buttons"><input type="submit" class="primary" value="<?php p($l->t( 'Finish setup' )); ?>" data-finishing="<?php p($l->t( 'Finishing …' )); ?>" /></div>
</form>