]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_form_job.tpl
ebl Add a new job overview 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 <TMPL_UNLESS hide_since>
47 <tr>
48   <td valign='top'>
49     <h2>Since</h2>
50     <input type='text' name='since' size='17' title='YYY-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'>
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 month</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 month</option>
72     </select>     
73   </td>
74  </tr>
75 </TMPL_UNLESS>
76  <tr>
77   <td valign='bottom'> 
78     <h2>Number of items</h2>
79     <input type='text' name='limit' value='<TMPL_VAR limit>' 
80         class='formulaire' size='4'>
81   </td>
82 </tr>
83 <TMPL_UNLESS hide_type>
84 <tr>
85   <td valign='top'> 
86     <h2>Job Type</h2>
87     <select name='jobtype' class='formulaire'>
88       <option id='jobtype_any' value='all type'>Any</option>
89       <option id='jobtype_B' value='B'>Backup</option>
90       <option id='jobtype_R' value='R'>Restore</option>
91     </select>
92   </td>
93 </tr>
94 </TMPL_UNLESS>
95 <TMPL_IF db_clients>
96 <tr>
97   <td valign='top'> 
98     <h2>Clients</h2>
99     <select name='client' size='15' class='formulaire' multiple>
100 <TMPL_LOOP db_clients>
101       <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
102 </TMPL_LOOP>
103     </select>
104   </td>
105 </tr>
106 </TMPL_IF>
107 <TMPL_IF db_client_groups>
108 <tr>
109   <td valign='top'>
110     <h2>Groups</h2>
111     <select name='client_group' size='10' class='formulaire' multiple>
112 <TMPL_LOOP db_client_groups>
113         <option id= 'group_<TMPL_VAR name>'><TMPL_VAR name></option>
114 </TMPL_LOOP>
115     </select>
116   </td>
117 </tr>
118 </TMPL_IF>
119 <!--
120 <tr>
121   <td valign='top'> 
122     <h2>File Set</h2>
123     <select name='fileset' size='15' class='formulaire' multiple>
124 <TMPL_LOOP db_filesets>
125       <option id='client_<TMPL_VAR fileset>'><TMPL_VAR fileset></option>
126 </TMPL_LOOP>
127     </select>
128   </td>
129 </tr>
130 -->
131 </table>
132   <button type="submit" class="bp" name='action' 
133     value='<TMPL_IF action><TMPL_VAR action><TMPL_ELSE>job</TMPL_IF>'>
134      <img src='/bweb/update.png' alt=''> </button>
135
136 </form>
137 </div>
138 <script type="text/javascript" language="JavaScript">
139
140   <TMPL_LOOP qclients>
141      document.getElementById('client_' + <TMPL_VAR name>).selected = true;
142   </TMPL_LOOP>
143
144   <TMPL_LOOP qclient_groups>
145      document.getElementById('group_' + <TMPL_VAR name>).selected = true;
146   </TMPL_LOOP>
147
148   <TMPL_IF status>
149      document.getElementById('status_<TMPL_VAR status>').selected=true;
150   </TMPL_IF>
151
152   <TMPL_IF level>
153      document.getElementById('level_<TMPL_VAR level>').selected=true;
154   </TMPL_IF>
155
156   <TMPL_IF age>
157      document.getElementById('age_<TMPL_VAR age>').selected=true;
158   </TMPL_IF>
159
160   <TMPL_IF jobtype>
161      document.getElementById('jobtype_<TMPL_VAR jobtype>').selected=true;
162   </TMPL_IF>
163
164   <TMPL_LOOP qfilesets>
165      document.getElementById('fileset_' + <TMPL_VAR name>).selected = true;
166   </TMPL_LOOP>
167
168   <TMPL_LOOP qpools>
169      document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
170   </TMPL_LOOP>
171
172 </script>
173