Bug 19794: (QA follow-up) Change tab to space
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / scheduler.tt
1 [% USE Asset %]
2 [% SET footerjs = 1 %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; Tools &rsaquo; Task scheduler</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 </head>
7
8 <body id="tools_scheduler" class="tools">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'circ-search.inc' %]
11
12 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <strong>Task scheduler</strong></div>
13
14 <div id="doc3" class="yui-t2">
15
16    <div id="bd">
17     <div id="yui-main">
18     <div class="yui-b">
19
20 <div id="main">
21
22 [% IF ( job_add_failed ) %]
23 <div class="dialog message">Failed to add scheduled task</div>
24 [% END %]
25
26 <form name="form1" action="scheduler.pl" method="post">
27 <input type="hidden" name="mode" value="job_add" />
28
29 <fieldset class="rows">
30 <legend>Task scheduler</legend><ol>
31 <li><span class="label">Current server time is:</span>
32 [% time %]</li>
33 <li><label for="starttime">Time:</label>
34 <input type="text" name="starttime" id="starttime" value="" maxlength="5" size="5" /></li>
35 <li><label for="startdate">Date: </label> <input type="text" size="10" id="startdate" name="startdate" value="" />
36 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
37 </li>
38 <li><label for="report">Report:</label>
39 <select name="report" id="report">
40 [% FOREACH savedreport IN savedreports %]
41     [% IF ( savedreport.selected ) %]
42         <option value="[% savedreport.id %]" selected="selected">[% savedreport.report_name %]</option>
43     [% ELSE %]
44         <option value="[% savedreport.id %]">[% savedreport.report_name %]</option>
45     [% END %]
46 [% END %]
47 </select>
48 </li>
49 <li><label for="format">Output format:</label>
50 <select name="format" id="format">
51 <option value="text">Text</option>
52 <option value="url">URL</option>
53 </select>
54 </li>
55 <li><label for="email">Email:</label>
56
57 <input type="text" name="email" id="email" size="50" />
58 </li>
59 </ol></fieldset>
60 <fieldset class="action"><input class="submit-button" type="submit" value="Save" /></fieldset>
61 </form>
62   
63 [% IF ( JOBS ) %]<h2>Jobs already entered</h2>
64 <table>
65 <tr>
66 <th>Date/Time</th>
67 <th>Action</th>
68 <th>&nbsp;</th>
69 </tr>
70 [% FOREACH JOB IN JOBS %]
71 <form action="scheduler.pl" method="post">
72 <input type="hidden" name="mode" value="job_change" />
73
74 <tr>
75 <td>[% JOB.TIME %]</td>
76 <td>[% JOB.TAG %]</td>
77 <td><input type="submit" name="delete" value="Delete" /></td>
78 </tr>
79 <input type="hidden" name="jobid" value="[% JOB.JOBID %]" />
80 </form>
81 [% END %]
82 </table>[% END %]
83
84
85 </div>
86 </div>
87 </div>
88 <div class="yui-b noprint">
89 [% INCLUDE 'tools-menu.inc' %]
90 [% INCLUDE 'guided-reports-view.inc' %]
91 </div>
92 </div>
93
94 [% MACRO jsinclude BLOCK %]
95     [% Asset.js("js/tools-menu.js") %]
96     [% INCLUDE 'calendar.inc' %]
97     <script type="text/javascript">
98         $(document).ready(function(){
99             $("#startdate").datepicker({ minDate: "+0D" });
100         });
101     </script>
102 [% END %]
103
104 [% INCLUDE 'intranet-bottom.inc' %]