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