]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_groups.tpl
ebl second cup of client groups
[bacula/bacula] / gui / bweb / tpl / display_groups.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'>Groups</h1>
4  </div>
5  <div class="bodydiv">
6    <form action='?' method='get'>
7     <table id='id<TMPL_VAR ID>'></table>
8     <input type="image" name='action' value='groups_add' title='Add' src='/bweb/add.png'>&nbsp;
9     <input type="image" name='action' value='groups_del' 
10      onclick="return confirm('Do you want to delete this group ?');" 
11      title='Supprimer' src='/bweb/remove.png'>&nbsp;
12     <input type="image" name='action' value='groups_edit' title='Modify' src='/bweb/edit.png'>&nbsp;
13
14     <input type="image" name='action' value='groups' title='View'
15      src='/bweb/zoom.png'>
16    </form>
17  </div>
18
19 <script type="text/javascript" language="JavaScript">
20
21 var header = new Array("Name","Selection");
22
23 var data = new Array();
24 var chkbox;
25
26 <TMPL_LOOP groups>
27
28 chkbox = document.createElement('INPUT');
29 chkbox.type  = 'radio';
30 chkbox.name  = 'client_group';
31 chkbox.value = '<TMPL_VAR client_group>';
32
33 data.push( new Array(
34 "<TMPL_VAR client_group>",
35 chkbox
36  )
37 );
38 </TMPL_LOOP>
39
40 nrsTable.setup(
41 {
42  table_name:     "id<TMPL_VAR ID>",
43  table_header: header,
44  table_data: data,
45  up_icon: up_icon,
46  down_icon: down_icon,
47  prev_icon: prev_icon,
48  next_icon: next_icon,
49  rew_icon:  rew_icon,
50  fwd_icon:  fwd_icon,
51 // natural_compare: false,
52  even_cell_color: even_cell_color,
53  odd_cell_color: odd_cell_color, 
54  header_color: header_color,
55  page_nav: true,
56  padding: 3,
57 // disable_sorting: new Array(5,6),
58  rows_per_page: rows_per_page
59 }
60 );
61 </script>
62
63