3 [% PROCESS 'i18n.inc' %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% FILTER collapse %]
7 [% t("Task scheduler") | html %] ›
8 [% t("Tools") | html %] ›
11 [% INCLUDE 'doc-head-close.inc' %]
14 <body id="tools_scheduler" class="tools">
15 [% WRAPPER 'header.inc' %]
16 [% INCLUDE 'circ-search.inc' %]
19 [% WRAPPER 'sub-header.inc' %]
20 [% WRAPPER breadcrumbs %]
21 [% WRAPPER breadcrumb_item %]
22 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
24 [% WRAPPER breadcrumb_item bc_active= 1 %]
25 <span>Task scheduler</span>
27 [% END #/ WRAPPER breadcrumbs %]
28 [% END #/ WRAPPER sub-header.inc %]
30 <div class="main container-fluid">
32 <div class="col-sm-10 col-sm-push-2">
35 <h1>Task scheduler</h1>
37 [% IF ( job_add_failed ) %]
38 <div class="dialog message">Failed to add scheduled task</div>
41 <form name="form1" action="scheduler.pl" method="post">
42 <input type="hidden" name="mode" value="job_add" />
44 <fieldset class="rows">
45 <legend>Task scheduler</legend><ol>
46 <li><span class="label">Current server time is:</span>
47 [% time | html %]</li>
48 <li><label for="starttime">Time:</label>
49 <input type="text" name="starttime" id="starttime" value="" maxlength="5" size="5" /></li>
51 <label for="startdate">Date: </label>
52 <input type="text" size="10" id="startdate" name="startdate" class="flatpickr" data-flatpickr-futuredate="true" value="" />
53 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
55 <li><label for="report">Report:</label>
56 <select name="report" id="report">
57 [% FOREACH savedreport IN savedreports %]
58 [% IF ( savedreport.selected ) %]
59 <option value="[% savedreport.id | html %]" selected="selected">[% savedreport.report_name | html %]</option>
61 <option value="[% savedreport.id | html %]">[% savedreport.report_name | html %]</option>
67 <label for="format">Output format:</label>
68 <select name="format" id="format">
69 <option value="text">Text (TSV)</option>
70 <option value="csv">CSV</option>
71 <option value="html">HTML</option>
74 <li><label for="email">Email:</label>
76 <input type="text" name="email" id="email" size="50" />
79 <fieldset class="action"><input class="btn btn-primary" type="submit" value="Save" /></fieldset>
82 [% IF ( JOBS ) %]<h2>Scheduled tasks</h2>
89 [% FOREACH JOB IN JOBS %]
90 <form action="scheduler.pl" method="post">
91 <input type="hidden" name="mode" value="job_change" />
94 <td>[% JOB.TIME | html %]</td>
95 <td>[% JOB.TAG | html %]</td>
96 <td><input type="submit" name="delete" class="btn btn-xs btn-default" value="Delete" /></td>
98 <input type="hidden" name="jobid" value="[% JOB.JOBID | html %]" />
104 </div> <!-- /.col-sm-10.col-sm-push-2 -->
106 <div class="col-sm-2 col-sm-pull-10">
108 [% INCLUDE 'tools-menu.inc' %]
109 [% INCLUDE 'guided-reports-view.inc' %]
111 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
112 </div> <!-- /.row -->
114 [% MACRO jsinclude BLOCK %]
115 [% Asset.js("js/tools-menu.js") | $raw %]
116 [% INCLUDE 'calendar.inc' %]
119 [% INCLUDE 'intranet-bottom.inc' %]