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