]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/update_location.tpl
ebl Add volume/pool usage
[bacula/bacula] / gui / bweb / tpl / update_location.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'>Update media location</h1>
4  </div> 
5  <div class="bodydiv">
6    <form action='?' method='get'>
7     <table id='id<TMPL_VAR NAME=ID>'></table>
8     New location : <select class='formulaire' name='newlocation'>
9    <TMPL_LOOP NAME=db_locations>
10       <option id='loc_<TMPL_VAR NAME=location>' value='<TMPL_VAR NAME=location>'><TMPL_VAR NAME=location></option>
11    </TMPL_LOOP>
12   </select>
13   <button class='formulaire' type='submit' name='action' value='save_location'>
14      <img src='/bweb/apply.png'>
15     </button>
16    </form>
17  </div>
18
19 <script language="JavaScript">
20
21 var header = new Array("Volume Name", "Location", "Select");
22
23 var data = new Array();
24 var chkbox;
25
26 <TMPL_LOOP NAME=medias>
27 chkbox = document.createElement('INPUT');
28 chkbox.type  = 'checkbox';
29 chkbox.value = '<TMPL_VAR name=volumename>';
30 chkbox.name  = 'media';
31 chkbox.checked = 1;
32
33 data.push( new Array(
34 "<TMPL_VAR NAME=volumename>",
35 "<TMPL_VAR NAME=location>",
36 chkbox
37  )
38 );
39 </TMPL_LOOP>
40
41 nrsTable.setup(
42 {
43  table_name:     "id<TMPL_VAR NAME=ID>",
44  table_header: header,
45  table_data: data,
46  up_icon: up_icon,
47  down_icon: down_icon,
48  prev_icon: prev_icon,
49  next_icon: next_icon,
50  rew_icon:  rew_icon,
51  fwd_icon:  fwd_icon,
52 // natural_compare: false,
53  even_cell_color: even_cell_color,
54  odd_cell_color: odd_cell_color, 
55  header_color: header_color,
56  page_nav: true,
57  padding: 3,
58  rows_per_page: rows_per_page,
59 // disable_sorting: new Array(5,6)
60 }
61 );
62
63 <TMPL_IF qnewlocation>
64  document.getElementById('loc_' + <TMPL_VAR qnewlocation>).selected=true;
65 </TMPL_IF>
66
67 </script>