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