Merge pull request #16426 from owncloud/add-database-setup-hint

Add hint about additional PHP database modules
This commit is contained in:
Morris Jobke 2015-05-19 08:30:35 +02:00
commit f0e7ae5da8
3 changed files with 11 additions and 1 deletions

View File

@ -638,6 +638,9 @@ label.infield {
/* Database selector */ /* Database selector */
#body-login form #selectDbType { text-align:center; white-space: nowrap; } #body-login form #selectDbType { text-align:center; white-space: nowrap; }
#body-login form #selectDbType .info {
white-space: normal;
}
#body-login form #selectDbType label { #body-login form #selectDbType label {
position:static; margin:0 -3px 5px; padding:.4em; position:static; margin:0 -3px 5px; padding:.4em;
font-size:12px; background:#f8f8f8; color:#888; cursor:pointer; font-size:12px; background:#f8f8f8; color:#888; cursor:pointer;

View File

@ -9,6 +9,8 @@ $(document).ready(function() {
}; };
$('#selectDbType').buttonset(); $('#selectDbType').buttonset();
// change links inside an info box back to their default appearance
$('#selectDbType p.info a').button('destroy');
if($('#hasSQLite').val()){ if($('#hasSQLite').val()){
$('#use_other_db').hide(); $('#use_other_db').hide();

View File

@ -85,7 +85,12 @@ script('core', [
<div id="selectDbType"> <div id="selectDbType">
<?php foreach($_['databases'] as $type => $label): ?> <?php foreach($_['databases'] as $type => $label): ?>
<?php if(count($_['databases']) === 1): ?> <?php if(count($_['databases']) === 1): ?>
<p class="info"><?php p($l->t( 'Only %s is available.', array($label) )); ?>.</p> <p class="info">
<?php p($l->t( 'Only %s is available.', array($label) )); ?>
<?php p($l->t( 'Install and activate additional PHP modules to choose other database types.' )); ?><br>
<a href="<?php print_unescaped(link_to_docs('admin-source_install')); ?>" target="_blank">
<?php p($l->t( 'For more details check out the documentation.' )); ?> ↗</a>
</p>
<input type="hidden" id="dbtype" name="dbtype" value="<?php p($type) ?>"> <input type="hidden" id="dbtype" name="dbtype" value="<?php p($type) ?>">
<?php else: ?> <?php else: ?>
<input type="radio" name="dbtype" value="<?php p($type) ?>" id="<?php p($type) ?>" <input type="radio" name="dbtype" value="<?php p($type) ?>" id="<?php p($type) ?>"