--- /dev/null
+[%- USE T8 %]
+[% USE HTML %]<body class="admin" onload="set_subject(); document.getElementsByName('to')[0].focus(); ">
+
+ <script type="text/javascript">
+ <!--
+ function set_subject() {
+ var subject_template = "[% 'Backup of dataset' | $T8 %]";
+ var subject = document.Form.subject.value;
+
+ if ((subject == "") || (subject.substr(0, subject_template.length) == subject_template)) {
+ document.Form.subject.value = subject_template + " " + document.Form.dbname.value;
+ }
+ }
+ -->
+ </script>
+
+ <h2>[% title %]</h2>
+
+ [% IF NO_DATABSES %]
+ [% 'No databases have been found on this server.' | $T8 %]
+
+ [% ELSE %]
+
+ <form name="Form" method="post" action="admin.pl">
+
+ <input type="hidden" name="dbdriver" value="Pg">
+ <input type="hidden" name="dbhost" value="[% HTML.escape(dbhost) %]">
+ <input type="hidden" name="dbport" value="[% HTML.escape(dbport) %]">
+ <input type="hidden" name="dbuser" value="[% HTML.escape(dbuser) %]">
+ <input type="hidden" name="dbpasswd" value="[% HTML.escape(dbpasswd) %]">
+
+ <p>
+ [% 'Please select the database you want to backup' | $T8 %]:
+ <select name="dbname" onchange="set_subject()">[% FOREACH row = DATABASES %]<option>[% HTML.escape(row.dbname) %]</option>[% END %]</select>
+ </p>
+
+ <table>
+ <tr>
+ <td valign="top"><input type="radio" name="destination" id="destination_download" value="download" checked></td>
+ <td valign="top"><label for="destination_download">[% 'Download the backup' | $T8 %]</label></td>
+ </tr>
+
+ <tr>
+ <td valign="top"><input type="radio" name="destination" id="destination_email" value="email"></td>
+ <td valign="top">
+ <label for="destination_email">[% 'Send the backup via Email' | $T8 %]</label><br>
+
+ <table>
+ <tr>
+ <td valign="top" align="right">[% 'From' | $T8 %]</td>
+ <td valign="top"><input name="from" size="40" value="[% HTML.escape(from) %]"></td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="right">[% 'To' | $T8 %]</td>
+ <td valign="top"><input name="to" size="40"></td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="right">[% 'Cc' | $T8 %]</td>
+ <td valign="top"><input name="cc" size="40"></td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="right">[% 'Subject' | $T8 %]</td>
+ <td valign="top"><input name="subject" size="40"></td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="right">[% 'Message' | $T8 %]</td>
+ <td valign="top"><textarea name="message" cols="40" rows="10"></textarea></td>
+ </tr>
+
+ </table>
+
+ </td>
+ </tr>
+
+ </table>
+
+ <input name="callback" type="hidden" value="admin.pl?action=list_users">
+ <input type="hidden" name="nextsub" value="backup_dataset_start">
+ <input type="hidden" name="back_nextsub" value="list_users">
+
+ <hr size="3" noshade>
+
+ <br>
+
+ <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
+ <input type="submit" class="submit" name="action" value="[% 'Back' | $T8 %]">
+
+ </form>
+
+ [% END %]
+
+</body>
+</html>