(merge) window.onload nicht direkt setzen
[kivitendo-erp.git] / templates / webpages / admin / restore_dataset.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 <body class="admin">
4
5   <script type='text/javascript'>
6     $(function(){ document.getElementsByName('dbname')[0].focus();});
7   </script>
8
9  <h2>[% title %]</h2>
10
11  <form name="Form" method="post" action="admin.pl" enctype="multipart/form-data">
12
13   <input type="hidden" name="dbdriver" value="Pg">
14   <input type="hidden" name="dbhost" value="[% HTML.escape(dbhost) %]">
15   <input type="hidden" name="dbport" value="[% HTML.escape(dbport) %]">
16   <input type="hidden" name="dbuser" value="[% HTML.escape(dbuser) %]">
17   <input type="hidden" name="dbpasswd" value="[% HTML.escape(dbpasswd) %]">
18
19   <p>
20    [% 'Please enter the name of the dataset you want to restore the backup in.' | $T8 %]
21    [% 'The dataset has to exist before a restoration can be started.' | $T8 %]
22    [% 'You can create a missing dataset by going back and chosing &quot;Create Dataset&quot;.' | $T8 %]
23   </p>
24
25   <p>
26    [%- 'The backup you upload here has to be a file created with &quot;pg_dump -o -Ft&quot;.' | $T8 %]
27    [%- 'It may optionally be compressed with &quot;gzip&quot;.' | $T8 %]
28    [%- 'Files created by kivitendo\'s &quot;Backup Dataset&quot; function are such files.' | $T8 %]
29   </p>
30
31   <table>
32    <tr>
33     <td valign="top">[% 'Dataset name' | $T8 %]</td>
34     <td valign="top"><input name="new_dbname"></td>
35    </tr>
36
37    <tr>
38     <th valign="top">[% 'Multibyte Encoding' | $T8 %]</th>
39     <td>
40      <select name="dbencoding">
41       [% FOREACH row = DBENCODINGS %]<option value="[% HTML.escape(row.dbencoding) %]" [% IF row.selected %]selected[% END %]>[% HTML.escape(row.label) %]</option>[% END %]
42      </select>
43     </td>
44    </tr>
45
46    <tr>
47     <td valign="top">[% 'Backup file' | $T8 %]</td>
48     <td valign="top"><input type="file" accept="*" name="content"></td>
49    </tr>
50   </table>
51
52   <input type="hidden" name="nextsub" value="restore_dataset_start">
53
54   <hr size="3" noshade>
55
56   <br>
57
58   <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
59
60  </form>
61