cd8a44a58362d615a526095999adcc6a88d426a2
[kivitendo-erp.git] / templates / webpages / dbupgrade / warning.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %][%- USE L -%]
4 <form name="Form" method="post" action="controller.pl">
5
6  <input type="hidden" name="action" value="LoginScreen/login">
7  <p><input type="button" class="submit" onclick="history.back()" value="[% 'Back' | $T8 %]"></p>
8  <p class="message_hint">
9   [% LxERP.t8('kivitendo is about to update the database [ #1 ].', dbname) | html %]
10  </p>
11
12  [% IF superuser.need_privileges && !superuser.have_privileges %]
13   <p>
14    [% LxERP.t8("Database superuser privileges are required for the update.") %]
15    [% LxERP.t8("Please provide corresponding credentials.") %]
16   </p>
17
18   [% IF superuser.error %]
19    <p>[% LxERP.t8("Error: #1", superuser.error) %]</p>
20   [% END %]
21
22   <table border="0">
23    <tr>
24     <td>[% LxERP.t8("User name") %]:</td>
25     <td>[% L.input_tag("database_superuser_username", superuser.username) %]</td>
26    </tr>
27
28    <tr>
29     <td>[% LxERP.t8("Password") %]:</td>
30     <td>[% L.input_tag("database_superuser_password", superuser.password, type="password") %]</td>
31    </tr>
32   </table>
33  [% END %]
34
35  <p>
36   [% 'You should create a backup of the database before proceeding because the backup might not be reversible.' | $T8 %]
37  </p>
38
39  <input type="submit" name="dummy" value="[% 'Continue' | $T8 %]">
40 </form>
41
42 <p id="nodetails">
43  <a href="#" onclick="$('#details,#nodetails').toggle();">[% LxERP.t8('Show details') %]</a>
44 </p>
45
46 <div id="details" style="display: none;">
47  <p>
48   <a href="#" onclick="$('#details,#nodetails').toggle();">[% LxERP.t8('Hide details') %]</a>
49  </p>
50
51  <p>
52   [% LxERP.t8("List of database upgrades to be applied:") %]
53  </p>
54
55  <ul>
56   [% FOREACH upgrade_script = unapplied_scripts %]
57    <li>[% HTML.escape(upgrade_script.tag) %]: [% HTML.escape(upgrade_script.description) %]</li>
58   [% END %]
59  </ul>
60 </div>