]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_pool.tpl
ebl add to cvs
[bacula/bacula] / gui / bweb / tpl / display_pool.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'>Pools</h1>
4  </div>
5  <div class="bodydiv">
6    <form action='?' method='get'>
7     <table id='id<TMPL_VAR NAME=ID>'></table>
8     <button class='formulaire' type='submit' name='action' value='media' title='Show content'>
9      <img src='/bweb/zoom.png'>
10     </button>
11    </form>
12    <br/>
13    Tips: To modify pool properties, you have to edit your bacula configuration
14    and reload it. After, you have to run "update pool=mypool" on bconsole.
15  </div>
16
17 <script language="JavaScript">
18
19 var header = new Array("Name","Recycle","Retention","Use Duration",
20                        "Max job per volume","Max file per volume", 
21                        "Max volume size","Nb volumes", "Select");
22
23 var data = new Array();
24 var chkbox;
25
26 <TMPL_LOOP NAME=Pools>
27 chkbox = document.createElement('INPUT');
28 chkbox.type  = 'radio';
29 chkbox.value = '<TMPL_VAR NAME=Name>';
30 chkbox.name  = 'pool';
31
32 data.push( new Array(
33 "<TMPL_VAR NAME=Name>",
34 "<TMPL_VAR NAME=Recycle>",
35 "<TMPL_VAR NAME=VolRetention>",
36 "<TMPL_VAR NAME=VolUseDuration>",
37 "<TMPL_VAR NAME=MaxVolJobs>",
38 "<TMPL_VAR NAME=MaxVolFiles>",
39 "<TMPL_VAR NAME=MaxVolBytes>",
40 "<TMPL_VAR NAME=VolNum>",
41 chkbox
42  )
43 );
44 </TMPL_LOOP>
45
46 nrsTable.setup(
47 {
48  table_name:     "id<TMPL_VAR NAME=ID>",
49  table_header: header,
50  table_data: data,
51  up_icon: up_icon,
52  down_icon: down_icon,
53  prev_icon: prev_icon,
54  next_icon: next_icon,
55  rew_icon:  rew_icon,
56  fwd_icon:  fwd_icon,
57 // natural_compare: false,
58  even_cell_color: even_cell_color,
59  odd_cell_color: odd_cell_color, 
60  header_color: header_color,
61  page_nav: true,
62  padding: 3,
63  rows_per_page: rows_per_page,
64 // disable_sorting: new Array(5,6)
65 }
66 );
67 </script>