]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bacula-web/templates/jobs.tpl
bacula-web: Improved Jobs page
[bacula/bacula] / gui / bacula-web / templates / jobs.tpl
index c37f94aa49b90caa2b582e955af4ce1bf92b329e..344231c1b0443fb48cf72958918126a47f69d957 100644 (file)
 
 </head>
 <body>
-{popup_init src='./js/overlib.js'}
+{popup_init src='./external_packages/js/overlib.js'}
 {include file=header.tpl}
 
 <div id="nav">
-  <a href="index.php">Dashboard</a> > Jobs list
+  <a href="index.php" title="Back to the dashboard">Dashboard</a> > Jobs list
 </div>
 
 <div id="main_center">
-  <!-- Failed jobs -->  
   <div class="box">
-       <p class="title">Last failed jobs (limited to 10)</p>
-       <table>
+       <p class="title">Running jobs</p>
+       <table class="list">
+               <tr>
+                       <td class="info">Status</td>
+                       <td class="info">Job ID</td>
+                       <td class="info">BackupJob</td>
+                       <td class="info">Start Time</td>
+                       <td class="info">Elapsed time</td>
+                       <td class="info">Level</td>
+                       <td class="info">Pool</td>
+               </tr>
+               {foreach from=$running_jobs item=job}
+               <tr>
+                       <td>{$job.JobStatusLong}</td>
+                       <td>{$job.JobId}</td>
+                       <td>{$job.Name}</td>
+                       <td>{$job.StartTime}</td>
+                       <td>{$job.elapsed_time}</td>
+                       <td>{$job.Level}</td>
+                       <td>{$job.Pool_name}</td>
+               </tr>
+               {/foreach}
+       </table>
+  </div> <!-- end div box -->
+
+  <!-- Last jobs -->  
+  <div class="box">
+       <p class="title">Last jobs</p>
+       <table class="list" border="0">
          <tr>
-               <th>Status</th>
-               <th>Job ID</th>
-               <th>BackupJob</th>
-               <th>Start Time</th>
-               <th>End Time</th>
-               <th>Elapsed time</th>
-               <th>Level</th>
-               <th>Pool</th>
+               <td width="50" class="info">Status</td>
+               <td width="50" class="info">Job ID</td>
+               <td width="70" class="info">BackupJob</td>
+               <td width="80" class="info">Start Time</td>
+               <td width="80" class="info">End Time</td>
+               <td width="70" class="info">Elapsed time</td>
+               <td width="50" class="info">Level</td>
+               <td width="80" class="info">Pool</td>
          </tr>
-         {foreach from=$failed_jobs item=job}
+       </table>
+       <div class="listbox">
+       <table class="list" border="0">
+         {foreach from=$last_jobs item=job}
          <tr>
-               <td> <img width="20" src="style/images/s_error.gif" alt=""/> </td>
-               <td>{$job.JobId}</td>
-               <td>{$job.job_name}</td>
-               <td>{$job.StartTime}</td>
-               <td>{$job.EndTime}</td>
-               <td>{$job.elapsed}</td>
-               <td align="center">{$job.Level}</td>
-               <td>{$job.pool_name}</td>
+               <td width="50" class="{$job.Job_classe}">
+                       <img width="20" src="style/images/{$job.Job_icon}" alt="" title="{$job.JobStatusLong}" />
+               </td>
+               <td width="50" class="{$job.Job_classe}">{$job.JobId}</td>
+               <td width="70" class="{$job.Job_classe}">{$job.Job_name}</td>
+               <td width="80" class="{$job.Job_classe}">{$job.StartTime}</td>
+               <td width="80" class="{$job.Job_classe}">{$job.EndTime}</td>
+               <td width="70" class="{$job.Job_classe}">{$job.elapsed}</td>
+               <td width="50" class="{$job.Job_classe}">{$job.Level}</td>
+               <td width="80" class="{$job.Job_classe}">{$job.Pool_name}</td>
          </tr>
-         {/foreach}
+       {/foreach}
        </table>
-  </div>
-  <!-- Completed jobs --> 
-  <div class="box">
-       <p class="title">Last completed jobs</p>
+       </div> <!-- end div class=listbox -->
+       <form action="jobs.php" method="post">
        <table>
          <tr>
-               <th>Status</th>
-               <th>Job ID</th>
-               <th>BackupJob</th>
-               <th>Start Time</th>
-               <th>End Time</th>
-               <th>Elapsed time</th>
-               <th>Level</th>
-               <th>Pool</th>
-         </tr>
-         {foreach from=$completed_jobs item=job}
-         <tr>
-               <td> <img width="20px" src="style/images/s_ok.gif" alt=""/> </td>
-               <td>{$job.JobId}</td>
-               <td>{$job.job_name}</td>
-               <td>{$job.StartTime}</td>
-               <td>{$job.EndTime}</td>
-               <td>{$job.elapsed}</td>
-               <td align="center">{$job.Level}</td>
-               <td>{$job.pool_name}</td>
+               <td class="info" colspan="8">
+                       Limit to
+                       <select name="limit">
+                               <option value="20">20
+                               <option value="40">40
+                               <option value="60">60
+                       </select>
+                       <input type="submit" value="Update" />
+               </td>
          </tr>
-         {/foreach}
-       </table>        
+       </table>
+       </form>
   </div>
+
 </div>
 
-{include file="footer.tpl"}
\ No newline at end of file
+{include file="footer.tpl"}