]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/run_job_mod.tpl
Renamed cleanup goto target into bail_out which is the prefered name from the develop...
[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 id='more1' style="visibility:hidden"><td>__Start Time:__ </td><td>
63    <input type='text' title='YYYY-MM-DD HH:MM:SS'
64           size='17' name='when' value='<TMPL_VAR when>'>
65
66    </td></tr><tr id='more2' style="visibility:hidden"><td>__Priority:__ </td><td>
67    <input type='text' 
68           size='3' name='priority' value='<TMPL_VAR priority>'>
69
70    </td></tr>
71    </table>
72    <br/>
73
74   <label onclick='
75            document.getElementById("more1").style.visibility="visible";
76            document.getElementById("more2").style.visibility="visible";'>
77   <img title="__Display more options__" src='/bweb/add.png'>__More options__</label>
78
79   <button type="submit" class="bp" name='action' value='run_job_now' title='__Run job__'><img src='/bweb/R.png' alt=''>__Run now__</button>
80   <button type="submit" class="bp" name='action' value='fileset_view' title='__View FileSet__'><img src='/bweb/zoom.png' alt=''>__View FileSet__</button>
81   </form>
82  </div>
83
84 <script type="text/javascript" language="JavaScript">
85   <TMPL_IF job>
86      ok=1;
87      for(var i=0; ok && i < document.form1.job.length; i++) {
88         if (document.form1.job[i].value == '<TMPL_VAR job>') {
89             document.form1.job[i].selected=true;
90             ok=0;
91         }
92      }
93   </TMPL_IF>
94   <TMPL_IF client>
95      ok=1;
96      for(var i=0; ok && i < document.form1.client.length; i++) {
97         if (document.form1.client[i].value == '<TMPL_VAR client>') {
98             document.form1.client[i].selected=true;
99             ok=0;
100         }
101      }
102   </TMPL_IF>
103   <TMPL_IF pool>
104      ok=1;
105      for(var i=0; ok && i < document.form1.pool.length; i++) {
106         if (document.form1.pool[i].value == '<TMPL_VAR pool>') {
107             document.form1.pool[i].selected=true;
108             ok=0;
109         }
110      }
111   </TMPL_IF>
112   <TMPL_IF storage>
113      ok=1;
114      for(var i=0; ok && i < document.form1.storage.length; i++) {
115         if (document.form1.storage[i].value == '<TMPL_VAR storage>') {
116             document.form1.storage[i].selected=true;
117             ok=0;
118         }
119      }
120   </TMPL_IF>
121   <TMPL_IF level>
122      document.getElementById('level_<TMPL_VAR level>').selected=true; 
123   </TMPL_IF>
124   <TMPL_IF fileset>
125      ok=1;
126      for(var i=0; ok && i < document.form1.fileset.length; i++) {
127         if (document.form1.fileset[i].value == '<TMPL_VAR fileset>') {
128             document.form1.fileset[i].selected=true;
129             ok=0;
130         }
131      }
132   </TMPL_IF>
133 </script>