Revision 7f472763
Von Hans P. Schlaepfer vor mehr als 4 Jahren hinzugefügt
templates/webpages/dbupgrade/warning.html | ||
---|---|---|
<form name="Form" method="post" action="controller.pl">
|
||
|
||
<input type="hidden" name="action" value="LoginScreen/login">
|
||
<p><input type="button" class="submit" onclick="history.back()" value="[% 'Back' | $T8 %]"></p>
|
||
<p class="message_hint">
|
||
[% LxERP.t8('kivitendo is about to update the database [ #1 ].', dbname) | html %]
|
||
</p>
|
||
[% USE T8 %]
|
||
[% USE HTML %]
|
||
[% USE LxERP %]
|
||
[% USE L %]
|
||
|
||
[% IF superuser.need_privileges && !superuser.have_privileges %]
|
||
<p>
|
||
[% LxERP.t8("Database superuser privileges are required for the update.") %]
|
||
[% LxERP.t8("Please provide corresponding credentials.") %]
|
||
</p>
|
||
<form name="Form" method="post" action="controller.pl">
|
||
|
||
[% IF superuser.error %]
|
||
<p>[% LxERP.t8("Error: #1", superuser.error) %]</p>
|
||
<input type="hidden" name="action" value="LoginScreen/login">
|
||
|
||
<div class="buttons"><input type="button" onclick="history.back()" value="[% 'Back' | $T8 %]" class="neutral"></div>
|
||
<p class="message message_hint"> [% LxERP.t8('kivitendo is about to update the database [ #1 ].', dbname) | html %] </p>
|
||
|
||
[% IF superuser.need_privileges && !superuser.have_privileges %]
|
||
<p>
|
||
[% LxERP.t8("Database superuser privileges are required for the update.") %]
|
||
[% LxERP.t8("Please provide corresponding credentials.") %]
|
||
</p>
|
||
|
||
[% IF superuser.error %]
|
||
<p>[% LxERP.t8("Error: #1", superuser.error) %]</p>
|
||
[% END %]
|
||
|
||
<table class="tbl-horizontal">
|
||
<tbody>
|
||
<tr>
|
||
<th>[% LxERP.t8("User name") %]:</th>
|
||
<td>[% L.input_tag("database_superuser_username", superuser.username) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% LxERP.t8("Password") %]:</th>
|
||
<td>[% L.input_tag("database_superuser_password", superuser.password, type="password") %]</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
[% END %]
|
||
|
||
<table border="0">
|
||
<tr>
|
||
<td>[% LxERP.t8("User name") %]:</td>
|
||
<td>[% L.input_tag("database_superuser_username", superuser.username) %]</td>
|
||
</tr>
|
||
<p>[% 'You should create a backup of the database before proceeding because the backup might not be reversible.' | $T8 %] </p>
|
||
<div class="buttons"><input type="submit" name="dummy" value="[% 'Continue' | $T8 %]"></div>
|
||
|
||
<tr>
|
||
<td>[% LxERP.t8("Password") %]:</td>
|
||
<td>[% L.input_tag("database_superuser_password", superuser.password, type="password") %]</td>
|
||
</tr>
|
||
</table>
|
||
[% END %]
|
||
|
||
<p>
|
||
[% 'You should create a backup of the database before proceeding because the backup might not be reversible.' | $T8 %]
|
||
</p>
|
||
|
||
<input type="submit" name="dummy" value="[% 'Continue' | $T8 %]">
|
||
</form>
|
||
|
||
<p id="nodetails">
|
||
<a href="#" onclick="$('#details,#nodetails').toggle();">[% LxERP.t8('Show details') %]</a>
|
||
</p>
|
||
|
||
<div id="details" style="display: none;">
|
||
<p>
|
||
<a href="#" onclick="$('#details,#nodetails').toggle();">[% LxERP.t8('Hide 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 id="nodetails" class="filter_toggle">
|
||
<a href="#" onclick="$('#details,#nodetails').toggle();" class="button toggle off neutral">[% LxERP.t8('Show details') %]</a>
|
||
</div>
|
||
<div id="details" style="display: none;" class="filter_toggle">
|
||
<a href="#" onclick="$('#details,#nodetails').toggle();" class="button toggle on neutral with-panel">[% LxERP.t8('Hide details') %]</a> </p>
|
||
<div class="filter-toggle-panel">
|
||
<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><!-- /.filter-toggle-panel -->
|
||
</div>
|
||
|
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/dbupgrade/warning.html