Bug 35378: 'This authority type is used {count} times' missing dot
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / scheduler.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% PROCESS 'i18n.inc' %]
4 [% SET footerjs = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% FILTER collapse %]
7     [% t("Task scheduler") | html %] &rsaquo;
8     [% t("Tools") | html %] &rsaquo;
9     [% t("Koha") | html %]
10 [% END %]</title>
11 [% INCLUDE 'doc-head-close.inc' %]
12 </head>
13
14 <body id="tools_scheduler" class="tools">
15 [% WRAPPER 'header.inc' %]
16     [% INCLUDE 'circ-search.inc' %]
17 [% END %]
18
19 [% WRAPPER 'sub-header.inc' %]
20     [% WRAPPER breadcrumbs %]
21         [% WRAPPER breadcrumb_item %]
22             <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
23         [% END %]
24         [% WRAPPER breadcrumb_item bc_active= 1 %]
25             <span>Task scheduler</span>
26         [% END %]
27     [% END #/ WRAPPER breadcrumbs %]
28 [% END #/ WRAPPER sub-header.inc %]
29
30 <div class="main container-fluid">
31     <div class="row">
32         <div class="col-sm-10 col-sm-push-2">
33             <main>
34
35                 <h1>Task scheduler</h1>
36
37 [% IF ( job_add_failed ) %]
38 <div class="dialog message">Failed to add scheduled task</div>
39 [% END %]
40
41 <form name="form1" action="scheduler.pl" method="post">
42 <input type="hidden" name="mode" value="job_add" />
43
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>
50     <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>
54     </li>
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>
60     [% ELSE %]
61         <option value="[% savedreport.id | html %]">[% savedreport.report_name | html %]</option>
62     [% END %]
63 [% END %]
64 </select>
65 </li>
66 <li>
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>
72     </select>
73 </li>
74 <li><label for="email">Email:</label>
75
76 <input type="text" name="email" id="email" size="50" />
77 </li>
78 </ol></fieldset>
79 <fieldset class="action"><input class="btn btn-primary" type="submit" value="Save" /></fieldset>
80 </form>
81
82 [% IF ( JOBS ) %]<h2>Scheduled tasks</h2>
83 <table>
84 <tr>
85 <th>Date/Time</th>
86 <th>Action</th>
87 <th>&nbsp;</th>
88 </tr>
89 [% FOREACH JOB IN JOBS %]
90 <form action="scheduler.pl" method="post">
91 <input type="hidden" name="mode" value="job_change" />
92
93 <tr>
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>
97 </tr>
98 <input type="hidden" name="jobid" value="[% JOB.JOBID | html %]" />
99 </form>
100 [% END %]
101 </table>[% END %]
102
103             </main>
104         </div> <!-- /.col-sm-10.col-sm-push-2 -->
105
106         <div class="col-sm-2 col-sm-pull-10">
107             <aside>
108                 [% INCLUDE 'tools-menu.inc' %]
109                 [% INCLUDE 'guided-reports-view.inc' %]
110             </aside>
111         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
112      </div> <!-- /.row -->
113
114 [% MACRO jsinclude BLOCK %]
115     [% Asset.js("js/tools-menu.js") | $raw %]
116     [% INCLUDE 'calendar.inc' %]
117 [% END %]
118
119 [% INCLUDE 'intranet-bottom.inc' %]