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