]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/lang/en/tpl/client_list.tpl
bweb: Fix #1914 about broken link in Client - Current Jobs
[bacula/bacula] / gui / bweb / lang / en / tpl / client_list.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'>Clients</h1>
4  </div>
5  <div class='bodydiv'>
6 <form name="client" action='?' method='GET'>
7      <table id='id<TMPL_VAR ID>'></table>
8         <div class="otherboxtitle">
9           Actions &nbsp;
10         </div>
11         <div class="otherbox">
12 <!--        <h1>Actions</h1> -->        
13        <button type="submit" class="bp" name='action' value='job' title="Show last job"> <img src='/bweb/zoom.png' alt=''>Last jobs</button>
14        <button type="submit" class="bp" name='action' value='running' title='Show current job'> <img src='/bweb/zoom.png' alt=''>Current jobs</button>
15        <button type="submit" class="bp" name='action' value='groups' title='View client groups'> <img src='/bweb/zoom.png' alt=''>View groups</button>
16        <button type="submit" class="bp" name='action' value='client_status' title='Show client status'> <img src='/bweb/zoom.png' alt=''>Status </button>
17        <button type="submit" class="bp" name='action' value='client_stats' title='Client stats'> <img src='/bweb/chart.png' alt=''>Stats </button>
18        <button type="submit" class="bp" name='action' value='client_edit' title='Client groups'> <img src='/bweb/edit.png' alt=''>Edit groups </button>
19         </div>
20
21 </form>
22  </div>
23
24 <script type="text/javascript" language="JavaScript">
25 var header = new Array("Name", "Select", "Desc", "Auto Prune", "File Retention", "Job Retention");
26
27 var data = new Array();
28 var chkbox ;
29
30 <TMPL_LOOP Clients>
31 chkbox = document.createElement('INPUT');
32 chkbox.type  = 'checkbox';
33 chkbox.name = 'client';
34 chkbox.value = '<TMPL_VAR Name>';
35
36 data.push( 
37   new Array( "<TMPL_VAR Name>", 
38              chkbox,
39              "<TMPL_VAR Uname>",
40              "<TMPL_VAR AutoPrune>",
41              human_sec(<TMPL_VAR FileRetention>),
42              human_sec(<TMPL_VAR JobRetention>)
43               )
44 ) ; 
45 </TMPL_LOOP>
46
47 nrsTable.setup(
48 {
49  table_name:     "id<TMPL_VAR ID>",
50  table_header: header,
51  table_data: data,
52  up_icon: up_icon,
53  down_icon: down_icon,
54  prev_icon: prev_icon,
55  next_icon: next_icon,
56  rew_icon:  rew_icon,
57  fwd_icon:  fwd_icon,
58 // natural_compare: false,
59  even_cell_color: even_cell_color,
60  odd_cell_color: odd_cell_color, 
61  header_color: header_color,
62  page_nav: true,
63  rows_per_page: rows_per_page,
64  disable_sorting: new Array(1)
65 }
66 );
67 </script>