]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/run_job_mod.tpl
ebl add fileset link
[bacula/bacula] / gui / bweb / tpl / run_job_mod.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'> Run job : <TMPL_VAR job> on <TMPL_VAR client></h1>
4  </div>
5  <div class='bodydiv'>
6   <form name='form1' action='?' method='GET'>  
7   <table border='0'>
8
9    <tr><td>Job Name: </td><td>
10    <select name='job'>
11     <TMPL_LOOP jobs>
12      <option value='<TMPL_VAR name>'>
13        <TMPL_VAR name>
14      </option>
15     </TMPL_LOOP>
16    </select>
17    </td></tr><tr><td>Pool: </td><td>
18
19    <select name='pool'> 
20      <option value=''></option>
21     <TMPL_LOOP pools>
22      <option value='<TMPL_VAR name>'>
23        <TMPL_VAR name>
24      </option>
25     </TMPL_LOOP>
26    </select>
27    </td></tr><tr><td>Client: </td><td>
28
29    <select name='client'>
30     <TMPL_LOOP clients>
31      <option value='<TMPL_VAR name>'>
32        <TMPL_VAR name>
33      </option>
34     </TMPL_LOOP>
35    </select>
36
37    </td></tr><tr><td>FileSet: </td><td>
38    <select name='fileset'>
39     <TMPL_LOOP filesets>
40      <option value='<TMPL_VAR name>'>
41        <TMPL_VAR name>
42      </option>
43     </TMPL_LOOP>
44    </select>
45
46    </td></tr><tr><td>Storage: </td><td>
47    <select name='storage'>
48     <TMPL_LOOP storages>
49      <option value='<TMPL_VAR name>'>
50        <TMPL_VAR name>
51      </option>
52     </TMPL_LOOP>
53    </select>
54
55    </td></tr><tr><td>Level: </td><td>
56    <select name='level'>
57      <option id='level_Incremental' value='Incremental'>Incremental</option>
58      <option id='level_Full' value='Full'>Full</option>
59      <option id='level_Differential' value='Differential'>Differential</option>
60    </select>
61
62    </td></tr><tr><td>Priority: </td><td>
63    <input class='formulaire' type='text' 
64           size='3' name='priority' value='<TMPL_VAR priority>'>
65
66    </td></tr>
67    </table>
68    <br/>
69   <label>
70   <input type="image" name='action' value='run_job_now' title='Run job'
71    src='/bweb/R.png'>Run now
72   </label>
73   <label>
74   <input type="image" name='action' value='fileset_view' title='View FileSet'
75    src='/bweb/zoom.png'>View FileSet
76   </label>
77   </form>
78  </div>
79
80 <script type="text/javascript" language="JavaScript">
81   <TMPL_IF job>
82      ok=1;
83      for(var i=0; ok && i < document.form1.job.length; i++) {
84         if (document.form1.job[i].value == '<TMPL_VAR job>') {
85             document.form1.job[i].selected=true;
86             ok=0;
87         }
88      }
89   </TMPL_IF>
90   <TMPL_IF client>
91      ok=1;
92      for(var i=0; ok && i < document.form1.client.length; i++) {
93         if (document.form1.client[i].value == '<TMPL_VAR client>') {
94             document.form1.client[i].selected=true;
95             ok=0;
96         }
97      }
98   </TMPL_IF>
99   <TMPL_IF pool>
100      ok=1;
101      for(var i=0; ok && i < document.form1.pool.length; i++) {
102         if (document.form1.pool[i].value == '<TMPL_VAR pool>') {
103             document.form1.pool[i].selected=true;
104             ok=0;
105         }
106      }
107   </TMPL_IF>
108   <TMPL_IF storage>
109      ok=1;
110      for(var i=0; ok && i < document.form1.storage.length; i++) {
111         if (document.form1.storage[i].value == '<TMPL_VAR storage>') {
112             document.form1.storage[i].selected=true;
113             ok=0;
114         }
115      }
116   </TMPL_IF>
117   <TMPL_IF level>
118 <!--     document.getElementById('level_<TMPL_VAR level>').selected=true; -->
119   </TMPL_IF>
120   <TMPL_IF fileset>
121      ok=1;
122      for(var i=0; ok && i < document.form1.fileset.length; i++) {
123         if (document.form1.fileset[i].value == '<TMPL_VAR fileset>') {
124             document.form1.fileset[i].selected=true;
125             ok=0;
126         }
127      }
128   </TMPL_IF>
129 </script>