]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_form_job.tpl
Renamed cleanup goto target into bail_out which is the prefered name from the develop...
[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_237600'   value='237600'>__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       <option id='jobtype_m' value='m'>__Migration__</option>
110       <option id='jobtype_M' value='M'>__Migrated job__</option>
111       <option id='jobtype_C' value='C'>__Job copy__</option>
112       <option id='jobtype_c' value='c'>__Copy__</option>
113       <option id='jobtype_D' value='D'>__Admin__</option>
114     </select>
115   </td>
116 </tr>
117 </TMPL_UNLESS>
118 <TMPL_IF db_clients>
119 <tr>
120   <td valign='top'> 
121     <h2>__Clients__</h2>
122     <select name='client' size='15' class='formulaire' multiple>
123 <TMPL_LOOP db_clients>
124       <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
125 </TMPL_LOOP>
126     </select>
127   </td>
128 </tr>
129 </TMPL_IF>
130 <TMPL_IF db_client_groups>
131 <tr>
132   <td valign='top'>
133     <h2>__Groups__</h2>
134     <select name='client_group' size='10' class='formulaire' multiple>
135 <TMPL_LOOP db_client_groups>
136         <option id= 'group_<TMPL_VAR name>'><TMPL_VAR name></option>
137 </TMPL_LOOP>
138     </select>
139   </td>
140 </tr>
141 </TMPL_IF>
142 <!--
143 <tr>
144   <td valign='top'> 
145     <h2>__File Set__</h2>
146     <select name='fileset' size='15' class='formulaire' multiple>
147 <TMPL_LOOP db_filesets>
148       <option id='client_<TMPL_VAR fileset>'><TMPL_VAR fileset></option>
149 </TMPL_LOOP>
150     </select>
151   </td>
152 </tr>
153 -->
154 </table>
155   <button type="submit" class="bp" name='action' 
156     value='<TMPL_IF action><TMPL_VAR action><TMPL_ELSE>job</TMPL_IF>'>
157      <img src='/bweb/update.png' alt=''> </button>
158
159 </form>
160 </div>
161 <script type="text/javascript" language="JavaScript">
162
163   <TMPL_LOOP qclients>
164      document.getElementById('client_' + <TMPL_VAR name>).selected = true;
165   </TMPL_LOOP>
166
167   <TMPL_LOOP qclient_groups>
168      document.getElementById('group_' + <TMPL_VAR name>).selected = true;
169   </TMPL_LOOP>
170
171   <TMPL_IF status>
172      document.getElementById('status_<TMPL_VAR status>').selected=true;
173   </TMPL_IF>
174
175   <TMPL_IF level>
176      document.getElementById('level_<TMPL_VAR level>').selected=true;
177   </TMPL_IF>
178
179   <TMPL_IF age>
180      document.getElementById('age_<TMPL_VAR age>').selected=true;
181   </TMPL_IF>
182
183   <TMPL_IF type>
184      document.getElementById('slice_<TMPL_VAR type>').selected=true;
185   </TMPL_IF>
186
187   <TMPL_IF jobtype>
188      document.getElementById('jobtype_<TMPL_VAR jobtype>').selected=true;
189   </TMPL_IF>
190
191   <TMPL_LOOP qfilesets>
192      document.getElementById('fileset_' + <TMPL_VAR name>).selected = true;
193   </TMPL_LOOP>
194
195   <TMPL_LOOP qpools>
196      document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
197   </TMPL_LOOP>
198
199 </script>
200