]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bweb/tpl/client_list.tpl
bacula-web: Replaced Get_human_file_size() function by Utils::Get_Human_Size
[bacula/bacula] / gui / bweb / tpl / client_list.tpl
index 4db687ba75526a4493fd468652790fd70feadac6..5aee981ceef89478203c9a498d747fe8a37a6121 100644 (file)
@@ -1,50 +1,52 @@
 <br/>
  <div class='titlediv'>
-  <h1 class='newstitle'> Clients</h1>
+  <h1 class='newstitle'>__Clients__</h1>
  </div>
  <div class='bodydiv'>
-<form action='?' method='GET'>
-     <table id='id<TMPL_VAR NAME=ID>'></table>
+<form name="client" action='?' method='GET'>
+     <table id='id<TMPL_VAR ID>'></table>
        <div class="otherboxtitle">
-          Actions &nbsp;
+          __Actions__ &nbsp;
         </div>
         <div class="otherbox">
-<!--        <h1>Actions</h1> -->       
-       <button class='formulaire' name='action' value='job' title='Show last job'><img src='/bweb/zoom.png'>Last jobs</button> &nbsp;
-       <button class='formulaire' name='action' value='dsp_cur_job' title='Show current job'><img src='/bweb/zoom.png'>Current jobs</button> &nbsp;
-       <button class='formulaire' name='action' value='client_status' title='Show client status'><img src='/bweb/zoom.png'>Status</button> &nbsp;
-       <button class='formulaire' name='action' value='client_stats' title='Client stats'><img src='/bweb/chart.png'>Stats</button> &nbsp;
+<!--        <h1>__Actions__</h1> -->   
+       <button type="submit" class="bp" name='action' value='job' title="__Show last job__"> <img src='/bweb/zoom.png' alt=''>__Last jobs__</button>
+       <button type="submit" class="bp" name='action' value='dsp_cur_job' title='__Show current job__'> <img src='/bweb/zoom.png' alt=''>__Current jobs__</button>
+       <button type="submit" class="bp" name='action' value='groups' title='__View client groups__'> <img src='/bweb/zoom.png' alt=''>__View groups__</button>
+       <button type="submit" class="bp" name='action' value='client_status' title='__Show client status__'> <img src='/bweb/zoom.png' alt=''>__Status__ </button>
+       <button type="submit" class="bp" name='action' value='client_stats' title='__Client stats__'> <img src='/bweb/chart.png' alt=''>__Stats__ </button>
+       <button type="submit" class="bp" name='action' value='client_edit' title='__Client groups__'> <img src='/bweb/edit.png' alt=''>__Edit groups__ </button>
         </div>
 
 </form>
  </div>
 
-<script language="JavaScript">
-var header = new Array("Name", "Select", "Desc", "Auto Prune", "File Retention", "Job Retention");
+<script type="text/javascript" language="JavaScript">
+var header = new Array("__Name__", "__Select__", "__Desc__", "__Auto Prune__", "__File Retention__", "__Job Retention__");
 
 var data = new Array();
 var chkbox ;
 
-<TMPL_LOOP NAME=Clients>
+<TMPL_LOOP Clients>
 chkbox = document.createElement('INPUT');
 chkbox.type  = 'checkbox';
 chkbox.name = 'client';
-chkbox.value = '<TMPL_VAR NAME=Name>';
+chkbox.value = '<TMPL_VAR Name>';
 
 data.push( 
-  new Array( "<TMPL_VAR NAME=Name>", 
+  new Array( "<TMPL_VAR Name>", 
              chkbox,
-            "<TMPL_VAR NAME=Uname>",
-            "<TMPL_VAR NAME=AutoPrune>",
-            "<TMPL_VAR NAME=FileRetention>",
-            "<TMPL_VAR NAME=JobRetention>"
+            "<TMPL_VAR Uname>",
+            "<TMPL_VAR AutoPrune>",
+            human_sec(<TMPL_VAR FileRetention>),
+            human_sec(<TMPL_VAR JobRetention>)
               )
 ) ; 
 </TMPL_LOOP>
 
 nrsTable.setup(
 {
- table_name:     "id<TMPL_VAR NAME=ID>",
+ table_name:     "id<TMPL_VAR ID>",
  table_header: header,
  table_data: data,
  up_icon: up_icon,