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