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