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