<br/>
<div class='titlediv'>
- <h1 class='newstitle'> Next Jobs </h1>
+ <h1 class='newstitle'> <TMPL_IF title><TMPL_VAR title><TMPL_ELSE>__Next Jobs__ </TMPL_IF></h1>
</div>
<div class='bodydiv'>
- <form action='?' method='GET'>
+ <form name='form1' action='?' method='GET'>
<table id='id<TMPL_VAR ID>'></table>
- <button class='formulaire' name='action' value='run_job_mod'>
- Run now<br/>
- <img src='/bweb/R.png' title='Run now'>
- </button>
-<!-- <button class='formulaire' name='action' value='enable_job'>
- Enable<br/>
- <img src='/bweb/inflag1.png' title='Enable'>
- </button>
--->
- <button class='formulaire' name='action' value='disable_job'>
- Disable<br/>
- <img src='/bweb/inflag0.png' title='Disable'>
- </button>
+ <button type="submit" class="bp" name='action' title='__Run now__' value='run_job_mod'>
+ <img src='/bweb/R.png' alt=''> __Run now__ </button>
+ <button type="submit" class="bp" name='action' title='__Disable__' value='disable_job'>
+ <img src='/bweb/inflag0.png' alt=''> __Disable__ </button>
+ <button type="submit" onsubmit='document.form1.level.value="all"' class="bp" name='action' value='job' title='__view__ <TMPL_VAR Client> __jobs__'><img src='/bweb/zoom.png'>__View jobs__</button>
+<TMPL_IF missing_mode>
+ <button type="submit" class="bp" name='action' title='__Mark this job as canceled in job history__' value='cancel_future_job'>
+ <img src='/bweb/f.png' alt=''> __Mark it as canceled__ </button>
+</TMPL_IF>
+<TMPL_IF wiki_url>
+ <a id='wiki' href="<TMPL_VAR wiki_url>" title='__View doc__'><img src='/bweb/doc.png' alt='__View doc__'></a>__View doc__
+</TMPL_IF>
+ <input type='hidden' name='pool' value=''>
+ <input type='hidden' name='level' value=''>
+ <input type='hidden' name='media' value=''>
+ <input type='hidden' name='client' value=''>
+ <input type='hidden' name='when' value=''>
</form>
</div>
-<script language="JavaScript">
+<script type="text/javascript" language="JavaScript">
-var header = new Array("Scheduled",
- "Level",
- "Type",
- "Priority",
- "Name",
- "Volume",
- "Select");
+var header = new Array("__Scheduled__",
+ "__Level__",
+ "__Type__",
+ "__Priority__",
+ "__Name__",
+ "__Volume__",
+ "__Select__");
var data = new Array();
var chkbox;
+var wiki_url <TMPL_IF wiki_url>='<TMPL_VAR wiki_url>'</TMPL_IF>;
+
<TMPL_LOOP list>
chkbox = document.createElement('INPUT');
chkbox.type = 'radio';
chkbox.name = 'job';
chkbox.value = '<TMPL_VAR name>';
+chkbox.onclick = function() {
+ document.form1.level.value = '<TMPL_VAR level>';
+ document.form1.pool.value = '<TMPL_VAR pool>';
+ document.form1.media.value = '<TMPL_VAR volume>';
+ document.form1.client.value = '<TMPL_VAR client>';
+ document.form1.when.value = '<TMPL_VAR date>';
+ if (wiki_url) {
+ document.getElementById('wiki').href=wiki_url + '<TMPL_VAR client>';
+ }
+} ;
data.push( new Array(
"<TMPL_VAR date>",
header_color: header_color,
page_nav: true,
rows_per_page: rows_per_page,
- padding: 3,
-// disable_sorting: new Array(6)
+// disable_sorting: new Array(6),
+ padding: 3
}
);
</script>