]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_form_job.tpl
ebl Add a synthetic display_job_by_group view
[bacula/bacula] / gui / bweb / tpl / display_form_job.tpl
1 <br/>
2 <div class="otherboxtitle">
3   Filter &nbsp;
4 </div>
5 <div class="otherbox">
6 <form name='form1' action='?' method='GET'>
7 <table border='0'>
8 <tr>
9   <td valign='top'>
10     <h2>Level</h2>
11     <select name='level' class='formulaire'>
12       <option id='level_Any' value='Any'>Any</option>
13       <option id='level_F' value='F'>Full</option>
14       <option id='level_D' value='D'>Differential</option>
15       <option id='level_I' value='I'>Incremental</option>
16     </select>     
17   </td>
18 </tr>
19 <TMPL_UNLESS hide_status>
20 <tr>
21  <td valign='top'>
22     <h2>Status</h2>
23     <select name='status' class='formulaire'>
24       <option id='status_Any' value='Any'>Any</option>
25       <option id='status_T'   value='T'>Ok</option>
26       <option id='status_W'   value='W'>Warning</option>
27       <option id='status_f'   value='f'>Error</option>
28       <option id='status_A'   value='A'>Canceled</option>
29     </select>     
30   </td>
31 </tr>
32 </TMPL_UNLESS>
33 <TMPL_IF db_pools>
34 <tr>
35  <td valign='top'>
36     <h2>Pool</h2>
37     <select name='pool' class='formulaire'>
38       <option id='pool_all' value=''>All</option>
39 <TMPL_LOOP db_pools>
40       <option id='pool_<TMPL_VAR name>'><TMPL_VAR name></option>
41 </TMPL_LOOP>
42     </select>
43   </td>
44 </tr>
45 </TMPL_IF>
46 <tr>
47   <td valign='top'>
48     <h2>Age</h2>
49     <select name='age' class='formulaire'>
50       <option id='age_604800'   value='604800'>This week</option>
51       <option id='age_2678400'  value='2678400'>Last 30 days</option>
52       <option id='age_15552000' value='15552000'>Last 6 month</option>
53     </select>     
54   </td>
55  </tr>
56  <tr>
57   <td valign='bottom'> 
58     <h2>Number of items</h2>
59     <input type='text' name='limit' value='<TMPL_VAR limit>' 
60         class='formulaire' size='4'>
61   </td>
62 </tr>
63 <TMPL_UNLESS hide_type>
64 <tr>
65   <td valign='top'> 
66     <h2>Job Type</h2>
67     <select name='jobtype' class='formulaire'>
68       <option id='jobtype_any' value='all type'>Any</option>
69       <option id='jobtype_B' value='B'>Backup</option>
70       <option id='jobtype_R' value='R'>Restore</option>
71     </select>
72   </td>
73 </tr>
74 </TMPL_UNLESS>
75 <TMPL_IF db_clients>
76 <tr>
77   <td valign='top'> 
78     <h2>Clients</h2>
79     <select name='client' size='15' class='formulaire' multiple>
80 <TMPL_LOOP db_clients>
81       <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
82 </TMPL_LOOP>
83     </select>
84   </td>
85 </tr>
86 </TMPL_IF>
87 <TMPL_IF db_client_groups>
88 <tr>
89   <td valign='top'>
90     <h2>Groups</h2>
91     <select name='client_group' size='10' class='formulaire' multiple>
92 <TMPL_LOOP db_client_groups>
93         <option id= 'group_<TMPL_VAR name>'><TMPL_VAR name></option>
94 </TMPL_LOOP>
95     </select>
96   </td>
97 </tr>
98 </TMPL_IF>
99 <!--
100 <tr>
101   <td valign='top'> 
102     <h2>File Set</h2>
103     <select name='fileset' size='15' class='formulaire' multiple>
104 <TMPL_LOOP db_filesets>
105       <option id='client_<TMPL_VAR fileset>'><TMPL_VAR fileset></option>
106 </TMPL_LOOP>
107     </select>
108   </td>
109 </tr>
110 -->
111 </table>
112   <input type="image" name='action' 
113          value='<TMPL_IF action><TMPL_VAR action><TMPL_ELSE>job</TMPL_IF>'
114          src='/bweb/update.png'>
115
116 </form>
117 </div>
118 <script type="text/javascript" language="JavaScript">
119
120   <TMPL_LOOP qclients>
121      document.getElementById('client_' + <TMPL_VAR name>).selected = true;
122   </TMPL_LOOP>
123
124   <TMPL_IF status>
125      document.getElementById('status_<TMPL_VAR status>').selected=true;
126   </TMPL_IF>
127
128   <TMPL_IF level>
129      document.getElementById('level_<TMPL_VAR level>').selected=true;
130   </TMPL_IF>
131
132   <TMPL_IF age>
133      document.getElementById('age_<TMPL_VAR age>').selected=true;
134   </TMPL_IF>
135
136   <TMPL_IF jobtype>
137      document.getElementById('jobtype_<TMPL_VAR jobtype>').selected=true;
138   </TMPL_IF>
139
140   <TMPL_LOOP qfilesets>
141      document.getElementById('fileset_' + <TMPL_VAR name>).selected = true;
142   </TMPL_LOOP>
143
144   <TMPL_LOOP qpools>
145      document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
146   </TMPL_LOOP>
147
148 </script>
149