$self->create_schema_info_table($form, $dbh);
my $dbupdater = SL::DBUpgrade2->new(form => $form)->parse_dbupdate_controls;
- my $update_available = $dbupdater->update2_available($dbh);
+ my @unapplied_scripts = $dbupdater->unapplied_upgrade_scripts($dbh);
$dbh->disconnect;
- if (!$update_available) {
+ if (!@unapplied_scripts) {
SL::DB::Manager::Employee->update_entries_for_authorized_users;
return LOGIN_OK();
}
$form->{dbupdate} = "db" . $::auth->client->{dbname};
if ($form->{"show_dbupdate_warning"}) {
- print $form->parse_html_template("dbupgrade/warning");
+ print $form->parse_html_template("dbupgrade/warning", { unapplied_scripts => \@unapplied_scripts });
::end_of_request();
}
'List of bank collections' => 'Bankeinzugsliste',
'List of bank transfers' => 'Überweisungsliste',
'List of custom variables' => 'Liste der benutzerdefinierten Variablen',
+ 'List of database upgrades to be applied:' => 'Liste der noch einzuspielenden Datenbankupgrades:',
'List of tax zones' => 'Liste der Steuerzonen',
'List open SEPA exports' => 'Noch nicht ausgeführte SEPA-Exporte anzeigen',
'Load draft' => 'Entwurf laden',
'To Date' => 'Bis',
'To continue please change the taxkey 0 to another value.' => 'Um fortzufahren, ändern Sie bitte den Steuerschlüssel 0 auf einen anderen Wert.',
'To user login' => 'Zum Benutzerlogin',
+ 'Toggle details' => 'Details anzeigen/verbergen',
'Toggle marker' => 'Markierung umschalten',
'Top' => 'Oben',
'Top (CSS)' => 'Oben (mit CSS)',
<input type="submit" name="dummy" value="[% 'Continue' | $T8 %]">
</form>
+
+<p id="nodetails">
+ <a href="#" onclick="$('#details,#nodetails').toggle();">[% LxERP.t8('Toggle details') %]</a>
+</p>
+
+<div id="details" style="display: none;">
+ <p>
+ <a href="#" onclick="$('#details,#nodetails').toggle();">[% LxERP.t8('Toggle details') %]</a>
+ </p>
+
+ <p>
+ [% LxERP.t8("List of database upgrades to be applied:") %]
+ </p>
+
+ <ul>
+ [% FOREACH upgrade_script = unapplied_scripts %]
+ <li>[% HTML.escape(upgrade_script.tag) %]: [% HTML.escape(upgrade_script.description) %]</li>
+ [% END %]
+ </ul>
+</div>