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