]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_location.tpl
Check if volume name is valid in select_media_dbr()
[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 type="submit" class="bp" name='action' value='location_add' title='__Add a location__'> <img src='/bweb/add.png' alt=''>__Add__</button>
9     <button type="submit" class="bp" name='action' value='location_del' onclick='confirm("__Do you want to remove this location?__")' title='__Remove a location__'> <img src='/bweb/remove.png' alt=''>__Remove__</button>
10     <button type="submit" class="bp" name='action' value='location_edit' title='__Edit a location__'> <img src='/bweb/edit.png' alt=''>__Edit__</button>
11
12     <button type="submit" class="bp" name='action' value='media' title='__View content__'> <img src='/bweb/zoom.png' alt=''>__View content__</button>
13    </form>
14  </div>
15
16 <script type="text/javascript" language="JavaScript">
17
18 var header = new Array("__Name__","__Enabled__", "__Cost__", "__Nb volumes__", "__Select__");
19
20 var data = new Array();
21 var chkbox;
22
23 var img;
24
25 <TMPL_LOOP Locations>
26 img = document.createElement('IMG');
27 img.src = '/bweb/inflag<TMPL_VAR enabled>.png';
28
29 chkbox = document.createElement('INPUT');
30 chkbox.type  = 'radio';
31 chkbox.name  = 'location';
32 chkbox.value = '<TMPL_VAR Location>';
33
34 data.push( new Array(
35 "<TMPL_VAR Location>",
36 img,
37 "<TMPL_VAR Cost>",
38 "<TMPL_VAR name=volnum>",
39 chkbox
40  )
41 );
42 </TMPL_LOOP>
43
44 nrsTable.setup(
45 {
46  table_name:     "id<TMPL_VAR ID>",
47  table_header: header,
48  table_data: data,
49  up_icon: up_icon,
50  down_icon: down_icon,
51  prev_icon: prev_icon,
52  next_icon: next_icon,
53  rew_icon:  rew_icon,
54  fwd_icon:  fwd_icon,
55 // natural_compare: false,
56  even_cell_color: even_cell_color,
57  odd_cell_color: odd_cell_color, 
58  header_color: header_color,
59  page_nav: true,
60  padding: 3,
61 // disable_sorting: new Array(5,6),
62  rows_per_page: rows_per_page
63 }
64 );
65 </script>