]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/ach_content.tpl
ebl Add volume/pool usage
[bacula/bacula] / gui / bweb / tpl / ach_content.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'> 
4 Autochanger : <TMPL_VAR NAME=Name> (<TMPL_VAR NAME=nb_drive> Drives
5 <TMPL_IF NAME=nb_io><TMPL_VAR NAME=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=name>'>
10     <TMPL_IF NAME="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' name='action' value='label_barcodes' class='formulaire'
22         title='run label barcodes'>Label<br/><img src='/bweb/label.png'>
23 </button>
24 <TMPL_IF NAME=nb_io>
25 <button type='submit' name='action' value='eject' class='formulaire'
26         title='put selected media on i/o'>Eject<br/>
27   <img src='/bweb/extern.png'>
28 </button>
29 <button type='submit' name='action' value='clear_io' class='formulaire'
30         title='Clear i/o'>Clear I/O<br/>
31   <img src='/bweb/intern.png'>
32 </button>
33 </TMPL_IF>
34 <button type='submit' name='action' value='update_slots' class='formulaire'
35         title='run update slots'>Update<br/>
36   <img src='/bweb/update.png'>
37 </button>
38 <br/><br/>
39 <button type='submit' name='action' value='ach_load' class='formulaire'
40         title='load drive'>&nbsp;Load&nbsp;<br/>
41   <img src='/bweb/load.png'>
42 </button>
43 <button type='submit' name='action' value='ach_unload' class='formulaire'
44         title='unload drive'>Unload<br/>
45   <img src='/bweb/unload.png'>
46 </button>
47
48    </div>
49     <td width='200'/>
50     <td>
51     <b> Drives: </b><br/>
52     <table id='id_drive'></table> <br/>
53     </td>
54     </tr>
55     </table>
56     <b> Content: </b><br/>
57     <table id='id_ach'></table>
58    </form>
59  </div>
60
61 <script language="JavaScript">
62
63 var header = new Array("Real Slot", "Slot", "Volume Name","Vol Bytes","Vol Status",
64                        "Media Type","Pool Name","Last Written", 
65                        "When expire ?", "Select");
66
67 var data = new Array();
68 var chkbox;
69
70 <TMPL_LOOP NAME=Slots>
71 chkbox = document.createElement('INPUT');
72 chkbox.type  = 'checkbox';
73 chkbox.name = 'slot';
74 chkbox.value = '<TMPL_VAR NAME=realslot>';
75
76 data.push( new Array(
77 "<TMPL_VAR NAME=realslot>",
78 "<TMPL_VAR NAME=slot>",
79 "<TMPL_VAR NAME=volumename>",
80 "<TMPL_VAR NAME=volbytes>",
81 "<TMPL_VAR NAME=volstatus>",
82 "<TMPL_VAR NAME=mediatype>",
83 "<TMPL_VAR NAME=name>",
84 "<TMPL_VAR NAME=lastwritten>",
85 "<TMPL_VAR NAME=expire>",
86 chkbox
87  )
88 );
89 </TMPL_LOOP>
90
91 nrsTable.setup(
92 {
93  table_name:     "id_ach",
94  table_header: header,
95  table_data: data,
96  up_icon: up_icon,
97  down_icon: down_icon,
98  prev_icon: prev_icon,
99  next_icon: next_icon,
100  rew_icon:  rew_icon,
101  fwd_icon:  fwd_icon,
102 // natural_compare: false,
103  even_cell_color: even_cell_color,
104  odd_cell_color: odd_cell_color, 
105  header_color: header_color,
106 // page_nav: true,
107  padding: 3,
108 // rows_per_page: rows_per_page,
109 // disable_sorting: new Array(5,6)
110 }
111 );
112
113 var header = new Array("Index", "Drive Name", "Volume Name", "Select");
114
115 var data = new Array();
116 var chkbox;
117
118 <TMPL_LOOP NAME=Drives>
119 chkbox = document.createElement('INPUT');
120 chkbox.type  = 'checkbox';
121 chkbox.name = 'drive';
122 chkbox.value = '<TMPL_VAR NAME=index>';
123
124 data.push( new Array(
125 "<TMPL_VAR NAME=index>",
126 "<TMPL_VAR NAME=name>",
127 "<TMPL_VAR NAME=load>",
128 chkbox
129  )
130 );
131 </TMPL_LOOP>
132
133 nrsTable.setup(
134 {
135  table_name:     "id_drive",
136  table_header: header,
137  table_data: data,
138  up_icon: up_icon,
139  down_icon: down_icon,
140  prev_icon: prev_icon,
141  next_icon: next_icon,
142  rew_icon:  rew_icon,
143  fwd_icon:  fwd_icon,
144 // natural_compare: false,
145  even_cell_color: even_cell_color,
146  odd_cell_color: odd_cell_color, 
147  header_color: header_color,
148 // page_nav: true,
149  padding: 3,
150 // rows_per_page: rows_per_page,
151 // disable_sorting: new Array(5,6)
152 }
153 );
154
155 </script>