ad39d7c282d950a9cb20758149cd361d4a41546c
[mir.git] / templates / admin / producerqueue.template
1 <html>
2 <head>
3         <title>${config["Mir.Name"]} | ${lang("producerqueue.htmltitle")}</title>
4   <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
5 </head>
6
7 <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
8 <include "head.template">
9
10 <span class="spezialtext"><b>${lang("producer.jobqueue.title")}</b></span>
11 <p>
12 <table border="0">
13   <tr class="darkgrey">
14     <td colspan="2"><span class="witesmall">${lang("producer.job.name")}</span></td>
15     <td><span class="witesmall">${lang("producer.job.status")}</span></td>
16     <td><span class="witesmall">${lang("producer.job.date")}</span></td>
17 <comment>    
18     <td>&nbsp;</td>
19 </comment>    
20   </tr>
21   
22   <if queue>
23     <assign grey="1">
24     <list queue as q>
25       <tr <if grey=="1">class="list1"<else>class="list2"</if>>
26         <td><span><b>${q.factory}</b></span></td>
27         <td><span><b>${q.verb}</b></span></td>
28         <td><span>${q.status}</span></td>
29         <td><span>${q.lastchange["HH:mm:ss"]}</span></td>
30 <comment> ML: needs to be implemented       
31         <td><span><a href="${config.actionRoot}?module=Producer&do=abort">${lang("producer.job.cancel")}</a></span></td>
32 </comment>        
33       </tr>
34       <if grey=="1"><assign grey="0"><else><assign grey="1"></if>
35     </list>
36   <else>
37       <tr class="list1">
38         <td colspan="5">Queue is empty</td>
39       </tr>
40   </if>
41   
42 </table>
43 <a href="${config.actionRoot}?${thisurl}">${lang("producer.jobqueue.refresh")}</a><br><br>
44
45 <br><br>
46
47 <span class="spezialtext"><b>${lang("producer.producerlist.title")}</b></span>
48 <p>
49 <table border="0">
50   <tr class="darkgrey">
51     <td>&nbsp;</td>
52     <td><span class="witesmall">${lang("producer.verb.name")}</span></td>
53     <td><span class="witesmall">${lang("producer.verb.description")}</span></td>
54     <td><span class="witesmall">&nbsp;</span></td>
55   </tr>
56
57   <assign grey="1">
58   <list producers as p>
59     <tr <if grey=="1">class="list1"<else>class="list2"</if>>
60       <td colspan="4"><span><b>${p.name}</b></span></td>
61     </tr>
62     
63     <list p.verbs as v>
64       <tr <if grey=="1">class="list1"<else>class="list2"</if>>
65         <td width="25"></td>
66         <td><span class="small">${v.name}</span></td>
67         <td><span class="small">${v.description}</span></td>
68         <td><span class="small"><a href="${config.actionRoot}?module=Producer&do=enqueue&producer=${utility.encodeURI(p.name)}&verb=${utility.encodeURI(v.name)}">${lang("producer.verb.enqueue")}</a>&nbsp;</span></td>
69       </tr>
70     </list>
71     <if grey=="1"><assign grey="0"><else><assign grey="1"></if>
72   </list>
73 </table>
74
75 <include "foot.template">
76
77 </body>
78 </html>
79
80