]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/run_job_mod.tpl
ebl Add volume/pool usage
[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   <button name='action' value='run_job_now' title='Run job' class='formulaire'>
70    <img src='/bweb/R.png'>
71    </button>
72   </form>
73  </div>
74
75 <script language="JavaScript">
76   <TMPL_IF job>
77      ok=1;
78      for(var i=0; ok && i < document.form1.job.length; i++) {
79         if (document.form1.job[i].value == '<TMPL_VAR job>') {
80             document.form1.job[i].selected=true;
81             ok=0;
82         }
83      }
84   </TMPL_IF>
85   <TMPL_IF client>
86      ok=1;
87      for(var i=0; ok && i < document.form1.client.length; i++) {
88         if (document.form1.client[i].value == '<TMPL_VAR client>') {
89             document.form1.client[i].selected=true;
90             ok=0;
91         }
92      }
93   </TMPL_IF>
94   <TMPL_IF pool>
95      ok=1;
96      for(var i=0; ok && i < document.form1.pool.length; i++) {
97         if (document.form1.pool[i].value == '<TMPL_VAR pool>') {
98             document.form1.pool[i].selected=true;
99             ok=0;
100         }
101      }
102   </TMPL_IF>
103   <TMPL_IF storage>
104      ok=1;
105      for(var i=0; ok && i < document.form1.storage.length; i++) {
106         if (document.form1.storage[i].value == '<TMPL_VAR storage>') {
107             document.form1.storage[i].selected=true;
108             ok=0;
109         }
110      }
111   </TMPL_IF>
112   <TMPL_IF level>
113 <!--     document.getElementById('level_<TMPL_VAR level>').selected=true; -->
114   </TMPL_IF>
115   <TMPL_IF fileset>
116      ok=1;
117      for(var i=0; ok && i < document.form1.fileset.length; i++) {
118         if (document.form1.fileset[i].value == '<TMPL_VAR fileset>') {
119             document.form1.fileset[i].selected=true;
120             ok=0;
121         }
122      }
123   </TMPL_IF>
124 </script>