Code

Added templates
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Apr 2010 10:36:12 +0000 (10:36 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Apr 2010 10:36:12 +0000 (10:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17608 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/ihtml/themes/modern/copyPasteDialog.tpl [new file with mode: 0644]
gosa-core/ihtml/themes/modern/snapshotdialog.tpl [new file with mode: 0644]

diff --git a/gosa-core/ihtml/themes/modern/copyPasteDialog.tpl b/gosa-core/ihtml/themes/modern/copyPasteDialog.tpl
new file mode 100644 (file)
index 0000000..049b998
--- /dev/null
@@ -0,0 +1,34 @@
+<h2>{t}Copy & paste wizard{/t}</h2>
+
+<b>{$message}</b>
+<br>
+<br>
+{if $Complete == false}
+       {t}Some values need to be unique in the complete directory while some combinations make no sense. GOsa shows the relevant attributes. Please maintain the values below to fullfill the policies.{/t}
+       <br>
+{t}Remember that some properties like taken snapshots will not be copied!{/t}&nbsp;
+{t}Or if you copy or cut an entry within GOsa and delete the source object, you may get errors while pasting this object again!{/t}
+
+       <hr>
+       <br>
+       {$AttributesToFix}
+       {if $SubDialog == false}
+       <br>
+
+       <div style='text-align:right;width:100%;'>
+               <input type='submit' name='PerformCopyPaste' value='{t}Save{/t}'>&nbsp;
+       {if $type == "modified"}
+               <input type='submit' name='abort_current_cut-copy_operation' value='{t}Cancel{/t}'>
+       {/if}
+       
+               <input type='submit' name='abort_all_cut-copy_operations' value='{t}Cancel all{/t}'>
+       </div>
+       {/if}
+{else}
+       <hr>
+       <br>
+       <h2>{t}Operation complete{/t}</h2>
+       <div style='text-align:right;width:100%;'>
+               <input type='submit' name='Back' value='{t}Finish{/t}'>&nbsp;
+       </div>
+{/if}
diff --git a/gosa-core/ihtml/themes/modern/snapshotdialog.tpl b/gosa-core/ihtml/themes/modern/snapshotdialog.tpl
new file mode 100644 (file)
index 0000000..aee26e6
--- /dev/null
@@ -0,0 +1,99 @@
+{if $RestoreMode}
+
+<h3>{t}Restoring object snapshots{/t}</h3>
+<hr>
+<br>
+{t}This procedure will restore a snapshot of the selected object. It will replace the existing object after pressing the restore button.{/t}
+<br>
+<br>
+{t}Remember that DNS configuration and database entries could not be restored. For some objects it is only nescessary to open and save them again (goFon), but some entries must be recreated manually (glpi).{/t}
+<br>
+<br>
+{t}Don't forget to check references to other objects, for example does the selected printer still exists ?{/t}
+<br>
+<hr>
+<br>
+<table summary="" style="width:100%">
+       {if !$restore_deleted}
+       <tr>
+               <td>
+               <b>{t}Object{/t}</b>&nbsp;
+               {$CurrentDN}
+               </td>
+       </tr>
+       {/if}
+       <tr>
+               <td>
+                       <br>
+                       {if $CountSnapShots==0}
+                               {t}There is no snapshot available that could be restored{/t}
+                       {else}
+                               {t}Choose a snapshot and click the folder image, to restore the snapshot{/t}
+                       {/if}
+               </td>
+       </tr>
+       <tr>
+               <td>
+                       {$SnapShotDivlist}
+               </td>
+       </tr>
+</table>
+
+<hr>
+<div class="plugin-actions">
+    <button type='submit' name='CancelSnapshot'>{t}Cancel{/t}</button>
+
+</div>
+
+{else}
+
+<h2>{t}Creating object snapshots{/t}</h2>
+<hr>
+<br>
+{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}
+<br>
+<br>
+{t}Remember that database entries, DNS configurations and possibly created zones in server extensions will not be stored in the snapshot.{/t}
+<br>
+<hr>
+<br>
+<table summary="" style="width:100%">
+       <tr>
+               <td>
+                       <b>{t}Object{/t}</b>
+               </td>
+               <td style="width:95%"> 
+                  {$CurrentDN}
+               </td>
+       </tr>
+       <tr>
+               <td>
+                       <b>{t}Timestamp{/t}</b> 
+               </td>
+               <td> 
+                  {$CurrentDate}
+               </td>
+       </tr>
+       <tr>
+               <td colspan="2">
+                       <br>
+                       {t}Reason for generating this snapshot{/t}<br> 
+                       <textarea name="CurrentDescription" style="width:100%;height:160px;" rows=10 cols=100>{$CurrentDescription}</textarea>
+               </td>
+       </tr>
+</table>
+
+<hr>
+<div class="plugin-actions">
+    <button type='submit' name='CreateSnapshot'>{t}Continue{/t}</button>
+
+    <button type='submit' name='CancelSnapshot'>{t}Cancel{/t}</button>
+
+</div>
+
+<script language="JavaScript" type="text/javascript">
+  <!-- // First input field on page
+  document.mainform.CurrentDescription.focus();
+  -->
+</script>
+{/if}