Code

replaced <p> seperator style by <hr >
[gosa.git] / gosa-plugins / goto / addons / goto / log_view.tpl
index 9ee5bbcea03cc0afa787b63ec9ed66814549d308..91f2e1f2d77d421fb8c7a12a17ec5d8ab008dcd7 100644 (file)
@@ -1,47 +1,29 @@
+{if !$ACL}
 
-<h2>{t}Log view{/t}</h2>
+       <h3>{msgPool type=permView}</h3>
 
-{if $logs_available}
-       <table>
-               <tr>
-                       <td>{t}Creation time{/t}:&nbsp;</td>
-                       <td>
-                               <select name="selected_date" onChange="document.mainform.submit();">
-                               {foreach from=$logs.$mac item=stuff key=date}
-                                       {if $date == $selected_date}
-                                               <option value="{$date}" selected>{$stuff.REAL_DATE|date_format:"%d.%m.%Y %H:%m:%S"}</option>
-                                       {else}
-                                               <option value="{$date}">{$stuff.REAL_DATE|date_format:"%d.%m.%Y %H:%m:%S"}</option>
-                                       {/if}
-                               {/foreach}
-                               </select>
-                       </td>
-               </tr>
-               <tr>
-                       <td>{t}Log file{/t}:&nbsp;</td>
-                       <td>
-                               <select name="selected_file" onChange="document.mainform.submit();">
-                               {foreach from=$logs.$mac.$selected_date.FILES item=filename}
-                                       {if $filename == $selected_file}
-                                               <option value="{$filename}" selected>{$filename}</option>
-                                       {else}
-                                               <option value="{$filename}">{$filename}</option>
-                                       {/if}
-                               {/foreach}
-                               </select>
-                       </td>
-               </tr>
-       </table>
-
-       <h2>{t}Log file{/t}</h2>
-       <div style="width:100%;height:350px; overflow-y: scroll; background-color:#EEEEEE; border: solid 1px;">
-               {$log_file}
-       </div>
 {else}
-       <h2>No logs for this host</h2>
+       {if $logs_available}
+       <h3>{t}Available logs{/t}</h3>
+
+               <div style="width:99%;border: solid 1px #CCCCCC;">{$divlist}</div>
+         <br>
+         <p class="seperator"></p>
+               <h3>{t}Selected log{/t}: {$selected_log}</h3>
+               <div style="width:99%;height:350px;padding:3px;background-color:white; overflow-y: scroll;border: solid 1px;">
+                       {$log_file}
+               </div>
+       {else}
+               <h3>{t}No logs for this host available!{/t}</h3>
+       {/if}
 {/if}
 
+{if $standalone}
+<br>
+<input type="hidden" name="ignore" value="1">
 <p class='seperator'></p>
-<div style='text-align:right;width:100%; padding-right:5px; padding-top:5px;'>
-       <input type='submit' name='abort_event_dialog' value='{msgPool type=okButton}'>
+<div style='text-align:right;width:99%; padding-right:5px; padding-top:5px;'>
+       <input type='submit' name='abort_event_dialog' value='{msgPool type=backButton}'>
 </div>
+<br>
+{/if}