1 {if $RestoreMode}
3 <h3>{t}Restoring object snapshots{/t}</h3>
4 <hr>
5 <br>
6 {t}This procedure will restore a snapshot of the selected object. It will replace the existing object after pressing the restore button.{/t}
7 <br>
8 <br>
9 {t}DNS configuration and some database entries cannot be restored. They need to be recreated manually.{/t}
10 <br>
11 <br>
12 {t}Don't forget to check references to other objects, for example does the selected printer still exists ?{/t}
13 <br>
14 <hr>
15 <br>
16 <table summary="" style="width:100%">
17 {if !$restore_deleted}
18 <tr>
19 <td>
20 <b>{t}Object{/t}</b>
21 {$CurrentDN}
22 </td>
23 </tr>
24 {/if}
25 <tr>
26 <td>
27 <br>
28 {if $CountSnapShots==0}
29 {t}There is no snapshot available that can be restored{/t}
30 {else}
31 {t}Choose a snapshot and click the folder image, to restore the snapshot{/t}
32 {/if}
33 </td>
34 </tr>
35 <tr>
36 <td>
37 {$SnapShotList}
38 </td>
39 </tr>
40 </table>
42 <hr>
43 <div class="plugin-actions">
44 <button type='submit' name='CancelSnapshot'>{t}Cancel{/t}</button>
46 </div>
48 {else}
50 <h2>{t}Creating object snapshots{/t}</h2>
51 <hr>
52 <br>
53 {t}This procedure will create a snapshot of the selected object. It will be stored inside a special branch of your directory system and can be restored later on.{/t}
54 <br>
55 <br>
56 {t}Remember that database entries, DNS configurations and possibly created zones in server extensions will not be stored in the snapshot.{/t}
57 <br>
58 <hr>
59 <br>
60 <table summary="" style="width:100%">
61 <tr>
62 <td>
63 <b>{t}Object{/t}</b>
64 </td>
65 <td style="width:95%">
66 {$CurrentDN}
67 </td>
68 </tr>
69 <tr>
70 <td>
71 <b>{t}Time stamp{/t}</b>
72 </td>
73 <td>
74 {$CurrentDate}
75 </td>
76 </tr>
77 <tr>
78 <td colspan="2">
79 <br>
80 {t}Reason for generating this snapshot{/t}<br>
81 <textarea name="CurrentDescription" style="width:100%;height:160px;" rows=10 cols=100>{$CurrentDescription}</textarea>
82 </td>
83 </tr>
84 </table>
86 <hr>
87 <div class="plugin-actions">
88 <button type='submit' name='CreateSnapshot'>{t}Continue{/t}</button>
90 <button type='submit' name='CancelSnapshot'>{t}Cancel{/t}</button>
92 </div>
94 <script language="JavaScript" type="text/javascript">
95 <!-- // First input field on page
96 document.mainform.CurrentDescription.focus();
97 -->
98 </script>
99 {/if}