]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_form_job.tpl
ebl Tweak progress bar and add Backuped files count to job status
[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 <TMPL_UNLESS hide_level>
9 <tr>
10   <td valign='top'>
11     <h2>__Level__</h2>
12     <select name='level' class='formulaire'>
13       <option id='level_Any' value='Any'>__Any__</option>
14       <option id='level_F' value='F'>__Full__</option>
15       <option id='level_D' value='D'>__Differential__</option>
16       <option id='level_I' value='I'>__Incremental__</option>
17     </select>     
18   </td>
19 </tr>
20 </TMPL_UNLESS>
21 <TMPL_UNLESS hide_status>
22 <tr>
23  <td valign='top'>
24     <h2>__Status__</h2>
25     <select name='status' class='formulaire'>
26       <option id='status_Any' value='Any'>__Any__</option>
27       <option id='status_T'   value='T'>__Ok__</option>
28       <option id='status_W'   value='W'>__Warning__</option>
29       <option id='status_f'   value='f'>__Error__</option>
30       <option id='status_A'   value='A'>__Canceled__</option>
31     </select>     
32   </td>
33 </tr>
34 </TMPL_UNLESS>
35 <TMPL_IF db_pools>
36 <tr>
37  <td valign='top'>
38     <h2>__Pool__</h2>
39     <select name='pool' class='formulaire'>
40       <option id='pool_all' value=''>__All__</option>
41 <TMPL_LOOP db_pools>
42       <option id='pool_<TMPL_VAR name>'><TMPL_VAR name></option>
43 </TMPL_LOOP>
44     </select>
45   </td>
46 </tr>
47 </TMPL_IF>
48 <TMPL_UNLESS hide_since>
49 <tr>
50   <td valign='top'>
51     <h2>__Since__</h2>
52     <input type='text' id='since' name='since' size='22' title='YYYY-MM-DD'
53      value='<TMPL_VAR since>' class='formulaire'>
54   </td>
55  </tr>
56 <tr>
57   <td valign='top'>
58     <h2>__Age__</h2>
59     <select name='age' class='formulaire' onclick='document.getElementById("since").value="";'>
60       <option id='age_86400'   value='86400'>__1 day__</option>
61       <option id='age_172800'   value='172800'>__2 days__</option>
62       <option id='age_604800'   value='604800'>__1 week__</option>
63       <option id='age_2678400'  value='2678400'>__30 days__</option>
64       <option id='age_15552000' value='15552000'>__6 months__</option>
65     </select>     
66   </td>
67  </tr>
68 <TMPL_ELSE>
69 <tr>
70   <td valign='top'>
71     <h2>__Age__</h2>
72     <select name='age' class='formulaire'>
73       <option id='age_86400'   value='86400'>__Last 24h__</option>
74       <option id='age_172800'   value='172800'>__This weekend__</option>
75       <option id='age_604800'   value='604800'>__This week__</option>
76       <option id='age_2678400'  value='2678400'>__Last 30 days__</option>
77       <option id='age_15552000' value='15552000'>__Last 6 months__</option>
78     </select>     
79   </td>
80  </tr>
81 </TMPL_UNLESS>
82 <TMPL_IF view_time_slice>
83 <tr>
84   <td valign='top'>
85     <h2>__Time slice__</h2>
86     <select name='type' class='formulaire'>
87       <option id='slice_day'   value='day'>__Per days__</option>
88       <option id='slice_week'  value='week'>__Per weeks__</option>
89       <option id='slice_month' value='month'>__Per months__</option>
90     </select>     
91   </td>
92  </tr>
93 </TMPL_IF>
94  <tr>
95   <td valign='bottom'> 
96     <h2>__Number of items__</h2>
97     <input type='text' name='limit' value='<TMPL_VAR limit>' 
98         class='formulaire' size='4'>
99   </td>
100 </tr>
101 <TMPL_UNLESS hide_type>
102 <tr>
103   <td valign='top'> 
104     <h2>__Job Type__</h2>
105     <select name='jobtype' class='formulaire'>
106       <option id='jobtype_any' value='all type'>__Any__</option>
107       <option id='jobtype_B' value='B'>__Backup__</option>
108       <option id='jobtype_R' value='R'>__Restore__</option>
109     </select>
110   </td>
111 </tr>
112 </TMPL_UNLESS>
113 <TMPL_IF db_clients>
114 <tr>
115   <td valign='top'> 
116     <h2>__Clients__</h2>
117     <select name='client' size='15' class='formulaire' multiple>
118 <TMPL_LOOP db_clients>
119       <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
120 </TMPL_LOOP>
121     </select>
122   </td>
123 </tr>
124 </TMPL_IF>
125 <TMPL_IF db_client_groups>
126 <tr>
127   <td valign='top'>
128     <h2>__Groups__</h2>
129     <select name='client_group' size='10' class='formulaire' multiple>
130 <TMPL_LOOP db_client_groups>
131         <option id= 'group_<TMPL_VAR name>'><TMPL_VAR name></option>
132 </TMPL_LOOP>
133     </select>
134   </td>
135 </tr>
136 </TMPL_IF>
137 <!--
138 <tr>
139   <td valign='top'> 
140     <h2>__File Set__</h2>
141     <select name='fileset' size='15' class='formulaire' multiple>
142 <TMPL_LOOP db_filesets>
143       <option id='client_<TMPL_VAR fileset>'><TMPL_VAR fileset></option>
144 </TMPL_LOOP>
145     </select>
146   </td>
147 </tr>
148 -->
149 </table>
150   <button type="submit" class="bp" name='action' 
151     value='<TMPL_IF action><TMPL_VAR action><TMPL_ELSE>job</TMPL_IF>'>
152      <img src='/bweb/update.png' alt=''> </button>
153
154 </form>
155 </div>
156 <script type="text/javascript" language="JavaScript">
157
158   <TMPL_LOOP qclients>
159      document.getElementById('client_' + <TMPL_VAR name>).selected = true;
160   </TMPL_LOOP>
161
162   <TMPL_LOOP qclient_groups>
163      document.getElementById('group_' + <TMPL_VAR name>).selected = true;
164   </TMPL_LOOP>
165
166   <TMPL_IF status>
167      document.getElementById('status_<TMPL_VAR status>').selected=true;
168   </TMPL_IF>
169
170   <TMPL_IF level>
171      document.getElementById('level_<TMPL_VAR level>').selected=true;
172   </TMPL_IF>
173
174   <TMPL_IF age>
175      document.getElementById('age_<TMPL_VAR age>').selected=true;
176   </TMPL_IF>
177
178   <TMPL_IF type>
179      document.getElementById('slice_<TMPL_VAR type>').selected=true;
180   </TMPL_IF>
181
182   <TMPL_IF jobtype>
183      document.getElementById('jobtype_<TMPL_VAR jobtype>').selected=true;
184   </TMPL_IF>
185
186   <TMPL_LOOP qfilesets>
187      document.getElementById('fileset_' + <TMPL_VAR name>).selected = true;
188   </TMPL_LOOP>
189
190   <TMPL_LOOP qpools>
191      document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
192   </TMPL_LOOP>
193
194 </script>
195