]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/ach_content.tpl
ebl Add time slice selection for job overview
[bacula/bacula] / gui / bweb / tpl / ach_content.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'> 
4 Autochanger : <TMPL_VAR Name> (<TMPL_VAR nb_drive> Drives
5 <TMPL_IF nb_io><TMPL_VAR nb_io> IMPORT/EXPORT</TMPL_IF>)</h1>
6  </div>
7  <div class='bodydiv'>
8    <form action='?' method='get'>
9     <input type='hidden' name='ach' value='<TMPL_VAR name>'>
10     <TMPL_IF "Update">
11     <font color='red'> You must run update slot, Autochanger status is different from bacula slots </font>
12     <br/>
13     </TMPL_IF>
14     <table border='0'>
15     <tr>
16     <td valign='top'>
17     <div class='otherboxtitle'>
18      Tools
19     </div>
20     <div class='otherbox'>
21 <button type="submit" class="bp" name='action' value='label_barcodes'
22  title='run label barcodes'><img src='/bweb/label.png' alt=''>Label</button>
23 <TMPL_IF nb_io>
24 <button type="submit" class="bp" name='action' value='eject'
25  title='put selected media on i/o'><img src='/bweb/extern.png' alt=''>Eject</button>
26 <button type="submit" class="bp" name='action' value='clear_io'
27  title='Clear i/o'> <img src='/bweb/intern.png' alt=''>Clear I/O</button>
28 </TMPL_IF>
29 <button type="submit" class="bp" name='action' value='update_slots'
30  title='run update slots'> <img src='/bweb/update.png' alt=''>Update</button>
31 <br/><br/>
32 <button type="submit" class="bp" name='action' value='ach_load'
33  title='mount drive'> <img src='/bweb/load.png' alt=''>Mount</button>
34 <button type="submit" class="bp" name='action' value='ach_unload'
35  title='umount drive'> <img src='/bweb/unload.png' alt=''>Umount</button>
36
37    </div>
38     <td width='200'/>
39     <td>
40     <b> Drives: </b><br/>
41     <table id='id_drive'></table> <br/>
42     </td>
43     </tr>
44     </table>
45     <b> Content: </b><br/>
46     <table id='id_ach'></table>
47    </form>
48  </div>
49
50 <script type="text/javascript" language="JavaScript">
51
52 var header = new Array("Real Slot", "Slot", "Volume Name","Vol Bytes","Vol Status",
53                        "Media Type","Pool Name","Last Written", 
54                        "When expire ?", "Select");
55
56 var data = new Array();
57 var chkbox;
58
59 <TMPL_LOOP Slots>
60 chkbox = document.createElement('INPUT');
61 chkbox.type  = 'checkbox';
62 chkbox.name = 'slot';
63 chkbox.value = '<TMPL_VAR realslot>';
64
65 data.push( new Array(
66 "<TMPL_VAR realslot>",
67 "<TMPL_VAR slot>",
68 "<TMPL_VAR volumename>",
69 human_size(<TMPL_VAR volbytes>),
70 "<TMPL_VAR volstatus>",
71 "<TMPL_VAR mediatype>",
72 "<TMPL_VAR name>",
73 "<TMPL_VAR lastwritten>",
74 "<TMPL_VAR expire>",
75 chkbox
76  )
77 );
78 </TMPL_LOOP>
79
80 nrsTable.setup(
81 {
82  table_name:     "id_ach",
83  table_header: header,
84  table_data: data,
85  up_icon: up_icon,
86  down_icon: down_icon,
87  prev_icon: prev_icon,
88  next_icon: next_icon,
89  rew_icon:  rew_icon,
90  fwd_icon:  fwd_icon,
91 // natural_compare: false,
92  even_cell_color: even_cell_color,
93  odd_cell_color: odd_cell_color, 
94  header_color: header_color,
95 // page_nav: true,
96 // rows_per_page: rows_per_page,
97 // disable_sorting: new Array(5,6)
98  padding: 3
99 }
100 );
101
102 var header = new Array("Index", "Drive Name", "Volume Name", "Select");
103
104 var data = new Array();
105 var chkbox;
106
107 <TMPL_LOOP Drives>
108 chkbox = document.createElement('INPUT');
109 chkbox.type  = 'checkbox';
110 chkbox.name = 'drive';
111 chkbox.value = '<TMPL_VAR index>';
112
113 data.push( new Array(
114 "<TMPL_VAR index>",
115 "<TMPL_VAR name>",
116 "<TMPL_VAR load>",
117 chkbox
118  )
119 );
120 </TMPL_LOOP>
121
122 nrsTable.setup(
123 {
124  table_name:     "id_drive",
125  table_header: header,
126  table_data: data,
127  up_icon: up_icon,
128  down_icon: down_icon,
129  prev_icon: prev_icon,
130  next_icon: next_icon,
131  rew_icon:  rew_icon,
132  fwd_icon:  fwd_icon,
133 // natural_compare: false,
134  even_cell_color: even_cell_color,
135  odd_cell_color: odd_cell_color, 
136  header_color: header_color,
137 // page_nav: true,
138 // rows_per_page: rows_per_page,
139 // disable_sorting: new Array(5,6),
140  padding: 3
141 }
142 );
143
144 </script>