Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 0e87a670

Von Hans P. Schlaepfer vor mehr als 3 Jahren hinzugefügt

  • ID 0e87a67025b479c5c85146e42f497b51aa59f5a5
  • Vorgänger 947ec4af
  • Nachfolger 73beeb58

Neues Design 2019 Standard-Code templates/webpages/dbupgrade/warning.html

Unterschiede anzeigen:

templates/webpages/dbupgrade/warning.html
1
<form name="Form" method="post" action="controller.pl">
2

  
3
 <input type="hidden" name="action" value="LoginScreen/login">
4
 <p><input type="button" class="submit" onclick="history.back()" value="[% 'Back' | $T8 %]"></p>
5
 <p class="message_hint">
6
  [% LxERP.t8('kivitendo is about to update the database [ #1 ].', dbname) | html %]
7
 </p>
8 1
[% USE T8 %]
9 2
[% USE HTML %]
10 3
[% USE LxERP %]
11 4
[% USE L %]
12 5

  
13
 [% IF superuser.need_privileges && !superuser.have_privileges %]
14
  <p>
15
   [% LxERP.t8("Database superuser privileges are required for the update.") %]
16
   [% LxERP.t8("Please provide corresponding credentials.") %]
17
  </p>
6
<form name="Form" method="post" action="controller.pl">
18 7

  
19
  [% IF superuser.error %]
20
   <p>[% LxERP.t8("Error: #1", superuser.error) %]</p>
8
  <input type="hidden" name="action" value="LoginScreen/login">
9

  
10
  <div class="buttons"><input type="button" onclick="history.back()" value="[% 'Back' | $T8 %]" class="neutral"></div>
11
  <p class="message message_hint"> [% LxERP.t8('kivitendo is about to update the database [ #1 ].', dbname) | html %] </p>
12

  
13
  [% IF superuser.need_privileges && !superuser.have_privileges %]
14
    <p>
15
     [% LxERP.t8("Database superuser privileges are required for the update.") %]
16
     [% LxERP.t8("Please provide corresponding credentials.") %]
17
    </p>
18

  
19
    [% IF superuser.error %]
20
      <p>[% LxERP.t8("Error: #1", superuser.error) %]</p>
21
    [% END %]
22

  
23
    <table class="tbl-horizontal">
24
      <tbody>
25
        <tr>
26
           <th>[% LxERP.t8("User name") %]:</th>
27
           <td>[% L.input_tag("database_superuser_username", superuser.username) %]</td>
28
        </tr>
29
        <tr>
30
           <th>[% LxERP.t8("Password") %]:</th>
31
           <td>[% L.input_tag("database_superuser_password", superuser.password, type="password") %]</td>
32
        </tr>
33
      </tbody>
34
    </table>
21 35
  [% END %]
22 36

  
23
  <table border="0">
24
   <tr>
25
    <td>[% LxERP.t8("User name") %]:</td>
26
    <td>[% L.input_tag("database_superuser_username", superuser.username) %]</td>
27
   </tr>
37
  <p>[% 'You should create a backup of the database before proceeding because the backup might not be reversible.' | $T8 %] </p>
38
  <div class="buttons"><input type="submit" name="dummy" value="[% 'Continue' | $T8 %]"></div>
28 39

  
29
   <tr>
30
    <td>[% LxERP.t8("Password") %]:</td>
31
    <td>[% L.input_tag("database_superuser_password", superuser.password, type="password") %]</td>
32
   </tr>
33
  </table>
34
 [% END %]
35

  
36
 <p>
37
  [% 'You should create a backup of the database before proceeding because the backup might not be reversible.' | $T8 %]
38
 </p>
39

  
40
 <input type="submit" name="dummy" value="[% 'Continue' | $T8 %]">
41 40
</form>
42 41

  
43
<p id="nodetails">
44
 <a href="#" onclick="$('#details,#nodetails').toggle();">[% LxERP.t8('Show details') %]</a>
45
</p>
46

  
47
<div id="details" style="display: none;">
48
 <p>
49
  <a href="#" onclick="$('#details,#nodetails').toggle();">[% LxERP.t8('Hide details') %]</a>
50
 </p>
51

  
52
 <p>
53
  [% LxERP.t8("List of database upgrades to be applied:") %]
54
 </p>
55

  
56
 <ul>
57
  [% FOREACH upgrade_script = unapplied_scripts %]
58
   <li>[% HTML.escape(upgrade_script.tag) %]: [% HTML.escape(upgrade_script.description) %]</li>
59
  [% END %]
60
 </ul>
42
<div id="nodetails" class="filter_toggle">
43
  <a href="#" onclick="$('#details,#nodetails').toggle();" class="button toggle off neutral">[% LxERP.t8('Show details') %]</a>
61 44
</div>
45
<div id="details" style="display: none;" class="filter_toggle">
46
  <a href="#" onclick="$('#details,#nodetails').toggle();" class="button toggle on neutral with-panel">[% LxERP.t8('Hide details') %]</a> </p>
47
  <div class="filter-toggle-panel">
48
    <p> [% LxERP.t8("List of database upgrades to be applied:") %] </p>
49
    <ul>
50
      [% FOREACH upgrade_script = unapplied_scripts %]
51
        <li>[% HTML.escape(upgrade_script.tag) %]: [% HTML.escape(upgrade_script.description) %]</li>
52
      [% END %]
53
    </ul>
54
  </div><!-- /.filter-toggle-panel -->
55
</div>
56

  

Auch abrufbar als: Unified diff