]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_pool.tpl
ebl dont display running job in display_job
[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 ID>'></table>
8     <input type="image" type='submit' name='action' value='media' title='Show content' src='/bweb/zoom.png'>
9    </form>
10    <br/>
11    Tips: To modify pool properties, you have to edit your bacula configuration
12    and reload it. After, you have to run "update pool=mypool" on bconsole.
13  </div>
14
15 <script type="text/javascript" language="JavaScript">
16
17 var header = new Array("Name","Recycle","Retention","Use Duration",
18                        "Max job per volume","Max file per volume", 
19                        "Max volume size","Nb volumes", "Vol Status", "Usage", "Select");
20
21 var data = new Array();
22 var chkbox;
23 var img;
24 var img2;
25
26 <TMPL_LOOP Pools>
27
28 img = percent_display([
29 <TMPL_IF nb_recycle>{ name: "Recycle", nb: <TMPL_VAR nb_recycle> },</TMPL_IF>
30 <TMPL_IF nb_purged> { name: "Purged", nb: <TMPL_VAR nb_purged> },</TMPL_IF>
31 <TMPL_IF nb_append> { name: "Append", nb: <TMPL_VAR nb_append> },</TMPL_IF>
32 <TMPL_IF nb_full>   { name: "Full", nb: <TMPL_VAR nb_full> },    </TMPL_IF>
33 <TMPL_IF nb_disabled>   { name: "Disabled", nb: <TMPL_VAR nb_disabled> },    </TMPL_IF>
34 <TMPL_IF nb_error>  { name: "Error", nb: <TMPL_VAR nb_error> },  </TMPL_IF>
35 <TMPL_IF nb_archive>{ name: "Archive", nb: <TMPL_VAR nb_archive> },</TMPL_IF>
36 <TMPL_IF nb_used>   { name: "Used", nb: <TMPL_VAR nb_used> },    </TMPL_IF>
37 <TMPL_IF NAME='nb_read-only'> { name: "Read-Only", nb: <TMPL_VAR NAME='nb_read-only'> }, </TMPL_IF>
38 {}
39 ]);
40
41 chkbox = document.createElement('INPUT');
42 chkbox.type  = 'radio';
43 chkbox.value = '<TMPL_VAR Name>';
44 chkbox.name  = 'pool';
45
46 img2 = percent_usage(<TMPL_VAR poolusage>);
47
48 data.push( new Array(
49 "<TMPL_VAR Name>",
50 "<TMPL_VAR Recycle>",
51 "<TMPL_VAR VolRetention>",
52 "<TMPL_VAR VolUseDuration>",
53 "<TMPL_VAR MaxVolJobs>",
54 "<TMPL_VAR MaxVolFiles>",
55 "<TMPL_VAR MaxVolBytes>",
56 "<TMPL_VAR VolNum>",
57 img,
58 img2,
59 chkbox
60  )
61 );
62 </TMPL_LOOP>
63
64 nrsTable.setup(
65 {
66  table_name:     "id<TMPL_VAR ID>",
67  table_header: header,
68  table_data: data,
69  up_icon: up_icon,
70  down_icon: down_icon,
71  prev_icon: prev_icon,
72  next_icon: next_icon,
73  rew_icon:  rew_icon,
74  fwd_icon:  fwd_icon,
75 // natural_compare: false,
76  even_cell_color: even_cell_color,
77  odd_cell_color: odd_cell_color, 
78  header_color: header_color,
79  page_nav: true,
80  padding: 3,
81 // disable_sorting: new Array(5,6),
82  rows_per_page: rows_per_page
83 }
84 );
85 </script>