Bug 24484: Add explanatory text to batch patron deletion
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / scheduler.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha &rsaquo; Tools &rsaquo; Task scheduler</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 </head>
8
9 <body id="tools_scheduler" class="tools">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'circ-search.inc' %]
12
13 <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>
14
15 <div class="main container-fluid">
16     <div class="row">
17         <div class="col-sm-10 col-sm-push-2">
18             <main>
19
20 [% IF ( job_add_failed ) %]
21 <div class="dialog message">Failed to add scheduled task</div>
22 [% END %]
23
24 <form name="form1" action="scheduler.pl" method="post">
25 <input type="hidden" name="mode" value="job_add" />
26
27 <fieldset class="rows">
28 <legend>Task scheduler</legend><ol>
29 <li><span class="label">Current server time is:</span>
30 [% time | html %]</li>
31 <li><label for="starttime">Time:</label>
32 <input type="text" name="starttime" id="starttime" value="" maxlength="5" size="5" /></li>
33 <li><label for="startdate">Date: </label> <input type="text" size="10" id="startdate" name="startdate" value="" />
34 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
35 </li>
36 <li><label for="report">Report:</label>
37 <select name="report" id="report">
38 [% FOREACH savedreport IN savedreports %]
39     [% IF ( savedreport.selected ) %]
40         <option value="[% savedreport.id | html %]" selected="selected">[% savedreport.report_name | html %]</option>
41     [% ELSE %]
42         <option value="[% savedreport.id | html %]">[% savedreport.report_name | html %]</option>
43     [% END %]
44 [% END %]
45 </select>
46 </li>
47 <li>
48     <label for="format">Output format:</label>
49     <select name="format" id="format">
50         <option value="text">Text (TSV)</option>
51         <option value="csv">CSV</option>
52         <option value="html">HTML</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 | html %]</td>
76 <td>[% JOB.TAG | html %]</td>
77 <td><input type="submit" name="delete" value="Delete" /></td>
78 </tr>
79 <input type="hidden" name="jobid" value="[% JOB.JOBID | html %]" />
80 </form>
81 [% END %]
82 </table>[% END %]
83
84             </main>
85         </div> <!-- /.col-sm-10.col-sm-push-2 -->
86
87         <div class="col-sm-2 col-sm-pull-10">
88             <aside>
89                 [% INCLUDE 'tools-menu.inc' %]
90                 [% INCLUDE 'guided-reports-view.inc' %]
91             </aside>
92         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
93      </div> <!-- /.row -->
94
95 [% MACRO jsinclude BLOCK %]
96     [% Asset.js("js/tools-menu.js") | $raw %]
97     [% INCLUDE 'calendar.inc' %]
98     <script>
99         $(document).ready(function(){
100             $("#startdate").datepicker({ minDate: "+0D" });
101         });
102     </script>
103 [% END %]
104
105 [% INCLUDE 'intranet-bottom.inc' %]