Add hint about additional PHP database modules

* fixes #16391
This commit is contained in:
Morris Jobke 2015-05-18 22:59:35 +02:00
parent a1e60e7882
commit 176b9674d2
3 changed files with 11 additions and 1 deletions

View File

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

View File

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

View File

@ -85,7 +85,12 @@ script('core', [
<div id="selectDbType">
<?php foreach($_['databases'] as $type => $label): ?>
<?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) ?>">
<?php else: ?>
<input type="radio" name="dbtype" value="<?php p($type) ?>" id="<?php p($type) ?>"