]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_location.tpl
ebl Add volume/pool usage
[bacula/bacula] / gui / bweb / tpl / display_location.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'>Locations</h1>
4  </div>
5  <div class="bodydiv">
6    <form action='?' method='get'>
7     <table id='id<TMPL_VAR ID>'></table>
8     <button class='formulaire' type='submit' name='action' value='location_add' title='Add a location'>
9      <img src='/bweb/add.png'>
10     </button>
11     <button class='formulaire' type='submit' name='action' value='location_del' title='Remove a location'>
12      <img src='/bweb/remove.png'>
13     </button>
14     <button class='formulaire' type='submit' name='action' value='location_edit' title='Edit a location'>
15      <img src='/bweb/edit.png'>
16     </button>
17
18     <button class='formulaire' type='submit' name='action' value='media' title='Show content'>
19      <img src='/bweb/zoom.png'>
20     </button>
21    </form>
22  </div>
23
24 <script language="JavaScript">
25
26 var header = new Array("Name","Enabled", "Cost", "Nb volumes", "Select");
27
28 var data = new Array();
29 var chkbox;
30
31 var img;
32
33 <TMPL_LOOP Locations>
34 img = document.createElement('IMG');
35 img.src = '/bweb/inflag<TMPL_VAR enabled>.png';
36
37 chkbox = document.createElement('INPUT');
38 chkbox.type  = 'radio';
39 chkbox.name  = 'location';
40 chkbox.value = '<TMPL_VAR Location>';
41
42 data.push( new Array(
43 "<TMPL_VAR Location>",
44 img,
45 "<TMPL_VAR Cost>",
46 "<TMPL_VAR name=volnum>",
47 chkbox
48  )
49 );
50 </TMPL_LOOP>
51
52 nrsTable.setup(
53 {
54  table_name:     "id<TMPL_VAR ID>",
55  table_header: header,
56  table_data: data,
57  up_icon: up_icon,
58  down_icon: down_icon,
59  prev_icon: prev_icon,
60  next_icon: next_icon,
61  rew_icon:  rew_icon,
62  fwd_icon:  fwd_icon,
63 // natural_compare: false,
64  even_cell_color: even_cell_color,
65  odd_cell_color: odd_cell_color, 
66  header_color: header_color,
67  page_nav: true,
68  padding: 3,
69 // disable_sorting: new Array(5,6),
70  rows_per_page: rows_per_page
71 }
72 );
73 </script>