]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_form_job.tpl
ebl Add markups to do automatique translation instead of having multiple tpl dirs
[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 <TMPL_UNLESS hide_since>
47 <tr>
48   <td valign='top'>
49     <h2>__Since__</h2>
50     <input type='text' id='since' name='since' size='17' title='YYYY-MM-DD'
51      value='<TMPL_VAR since>' class='formulaire'>
52   </td>
53  </tr>
54 <tr>
55   <td valign='top'>
56     <h2>__Age__</h2>
57     <select name='age' class='formulaire' onclick='document.getElementById("since").value="";'>
58       <option id='age_604800'   value='604800'>__1 week__</option>
59       <option id='age_2678400'  value='2678400'>__30 days__</option>
60       <option id='age_15552000' value='15552000'>__6 months__</option>
61     </select>     
62   </td>
63  </tr>
64 <TMPL_ELSE>
65 <tr>
66   <td valign='top'>
67     <h2>__Age__</h2>
68     <select name='age' class='formulaire'>
69       <option id='age_604800'   value='604800'>__This week__</option>
70       <option id='age_2678400'  value='2678400'>__Last 30 days__</option>
71       <option id='age_15552000' value='15552000'>__Last 6 months__</option>
72     </select>     
73   </td>
74  </tr>
75 </TMPL_UNLESS>
76 <TMPL_IF view_time_slice>
77 <tr>
78   <td valign='top'>
79     <h2>__Time slice__</h2>
80     <select name='type' class='formulaire'>
81       <option id='slice_day'   value='day'>__Per days__</option>
82       <option id='slice_week'  value='week'>__Per weeks__</option>
83       <option id='slice_month' value='month'>__Per months__</option>
84     </select>     
85   </td>
86  </tr>
87 </TMPL_IF>
88  <tr>
89   <td valign='bottom'> 
90     <h2>__Number of items__</h2>
91     <input type='text' name='limit' value='<TMPL_VAR limit>' 
92         class='formulaire' size='4'>
93   </td>
94 </tr>
95 <TMPL_UNLESS hide_type>
96 <tr>
97   <td valign='top'> 
98     <h2>__Job Type__</h2>
99     <select name='jobtype' class='formulaire'>
100       <option id='jobtype_any' value='all type'>__Any__</option>
101       <option id='jobtype_B' value='B'>__Backup__</option>
102       <option id='jobtype_R' value='R'>__Restore__</option>
103     </select>
104   </td>
105 </tr>
106 </TMPL_UNLESS>
107 <TMPL_IF db_clients>
108 <tr>
109   <td valign='top'> 
110     <h2>__Clients__</h2>
111     <select name='client' size='15' class='formulaire' multiple>
112 <TMPL_LOOP db_clients>
113       <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
114 </TMPL_LOOP>
115     </select>
116   </td>
117 </tr>
118 </TMPL_IF>
119 <TMPL_IF db_client_groups>
120 <tr>
121   <td valign='top'>
122     <h2>__Groups__</h2>
123     <select name='client_group' size='10' class='formulaire' multiple>
124 <TMPL_LOOP db_client_groups>
125         <option id= 'group_<TMPL_VAR name>'><TMPL_VAR name></option>
126 </TMPL_LOOP>
127     </select>
128   </td>
129 </tr>
130 </TMPL_IF>
131 <!--
132 <tr>
133   <td valign='top'> 
134     <h2>__File Set__</h2>
135     <select name='fileset' size='15' class='formulaire' multiple>
136 <TMPL_LOOP db_filesets>
137       <option id='client_<TMPL_VAR fileset>'><TMPL_VAR fileset></option>
138 </TMPL_LOOP>
139     </select>
140   </td>
141 </tr>
142 -->
143 </table>
144   <button type="submit" class="bp" name='action' 
145     value='<TMPL_IF action><TMPL_VAR action><TMPL_ELSE>job</TMPL_IF>'>
146      <img src='/bweb/update.png' alt=''> </button>
147
148 </form>
149 </div>
150 <script type="text/javascript" language="JavaScript">
151
152   <TMPL_LOOP qclients>
153      document.getElementById('client_' + <TMPL_VAR name>).selected = true;
154   </TMPL_LOOP>
155
156   <TMPL_LOOP qclient_groups>
157      document.getElementById('group_' + <TMPL_VAR name>).selected = true;
158   </TMPL_LOOP>
159
160   <TMPL_IF status>
161      document.getElementById('status_<TMPL_VAR status>').selected=true;
162   </TMPL_IF>
163
164   <TMPL_IF level>
165      document.getElementById('level_<TMPL_VAR level>').selected=true;
166   </TMPL_IF>
167
168   <TMPL_IF age>
169      document.getElementById('age_<TMPL_VAR age>').selected=true;
170   </TMPL_IF>
171
172   <TMPL_IF type>
173      document.getElementById('slice_<TMPL_VAR type>').selected=true;
174   </TMPL_IF>
175
176   <TMPL_IF jobtype>
177      document.getElementById('jobtype_<TMPL_VAR jobtype>').selected=true;
178   </TMPL_IF>
179
180   <TMPL_LOOP qfilesets>
181      document.getElementById('fileset_' + <TMPL_VAR name>).selected = true;
182   </TMPL_LOOP>
183
184   <TMPL_LOOP qpools>
185      document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
186   </TMPL_LOOP>
187
188 </script>
189