Bug 31203: Add End action to cronjobs and log viewer
[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>Task scheduler &rsaquo; Tools &rsaquo; Koha</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 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
14     <ol>
15         <li>
16             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
17         </li>
18         <li>
19             <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
20         </li>
21         <li>
22             <a href="#" aria-current="page">
23                 Task scheduler
24             </a>
25         </li>
26     </ol>
27 </nav>
28
29 <div class="main container-fluid">
30     <div class="row">
31         <div class="col-sm-10 col-sm-push-2">
32             <main>
33
34                 <h1>Task scheduler</h1>
35
36 [% IF ( job_add_failed ) %]
37 <div class="dialog message">Failed to add scheduled task</div>
38 [% END %]
39
40 <form name="form1" action="scheduler.pl" method="post">
41 <input type="hidden" name="mode" value="job_add" />
42
43 <fieldset class="rows">
44 <legend>Task scheduler</legend><ol>
45 <li><span class="label">Current server time is:</span>
46 [% time | html %]</li>
47 <li><label for="starttime">Time:</label>
48 <input type="text" name="starttime" id="starttime" value="" maxlength="5" size="5" /></li>
49     <li>
50         <label for="startdate">Date: </label>
51         <input type="text" size="10" id="startdate" name="startdate" class="flatpickr" data-flatpickr-futuredate="true" value="" />
52         <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
53     </li>
54 <li><label for="report">Report:</label>
55 <select name="report" id="report">
56 [% FOREACH savedreport IN savedreports %]
57     [% IF ( savedreport.selected ) %]
58         <option value="[% savedreport.id | html %]" selected="selected">[% savedreport.report_name | html %]</option>
59     [% ELSE %]
60         <option value="[% savedreport.id | html %]">[% savedreport.report_name | html %]</option>
61     [% END %]
62 [% END %]
63 </select>
64 </li>
65 <li>
66     <label for="format">Output format:</label>
67     <select name="format" id="format">
68         <option value="text">Text (TSV)</option>
69         <option value="csv">CSV</option>
70         <option value="html">HTML</option>
71     </select>
72 </li>
73 <li><label for="email">Email:</label>
74
75 <input type="text" name="email" id="email" size="50" />
76 </li>
77 </ol></fieldset>
78 <fieldset class="action"><input class="submit-button" type="submit" value="Save" /></fieldset>
79 </form>
80
81 [% IF ( JOBS ) %]<h2>Jobs already entered</h2>
82 <table>
83 <tr>
84 <th>Date/Time</th>
85 <th>Action</th>
86 <th>&nbsp;</th>
87 </tr>
88 [% FOREACH JOB IN JOBS %]
89 <form action="scheduler.pl" method="post">
90 <input type="hidden" name="mode" value="job_change" />
91
92 <tr>
93 <td>[% JOB.TIME | html %]</td>
94 <td>[% JOB.TAG | html %]</td>
95 <td><input type="submit" name="delete" value="Delete" /></td>
96 </tr>
97 <input type="hidden" name="jobid" value="[% JOB.JOBID | html %]" />
98 </form>
99 [% END %]
100 </table>[% END %]
101
102             </main>
103         </div> <!-- /.col-sm-10.col-sm-push-2 -->
104
105         <div class="col-sm-2 col-sm-pull-10">
106             <aside>
107                 [% INCLUDE 'tools-menu.inc' %]
108                 [% INCLUDE 'guided-reports-view.inc' %]
109             </aside>
110         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
111      </div> <!-- /.row -->
112
113 [% MACRO jsinclude BLOCK %]
114     [% Asset.js("js/tools-menu.js") | $raw %]
115     [% INCLUDE 'calendar.inc' %]
116 [% END %]
117
118 [% INCLUDE 'intranet-bottom.inc' %]