Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tmpl
Owen Leonard cd921163c0 Fixes for Bug 3089, Date entry fields should indicate required date format
- Added include, date-format.inc, which shows format, e.g. "(DD/MM/YYYY)"
- Hint shows expected date format based on system preference
- Removing calendar.inc include from templates which don't use it

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-03 15:12:18 -05:00

102 lines
3.2 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Tools &rsaquo; Task Scheduler</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="calendar.inc" -->
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="circ-search.inc" -->
<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>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<div id="main">
<!-- TMPL_IF NAME="job_add_failed" -->
<div class="dialog message">Failed to add scheduled task</div>
<!-- /TMPL_IF -->
<form name="form1" action="scheduler.pl" method="post">
<input type="hidden" name="mode" value="job_add" />
<fieldset class="rows">
<legend>Task Scheduler</legend><ol>
<li><span class="label">Current server time is:</span>
<!-- TMPL_VAR NAME="time" --></li>
<li><label for="starttime">Time:</label>
<input type="text" name="starttime" id="starttime" value="" maxlength="5" size="5" /></li>
<li><label for="startdate">Date: </label> <input type="text" size="10" id="startdate" name="startdate" value="" />
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" alt="Show Calendar" id="openCalendarStartdate" style="cursor: pointer;" />
<script type="text/javascript">
//<![CDATA[
Calendar.setup({
inputField : "startdate",
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
button : "openCalendarStartdate"
});
//]]>
</script>
<div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
</li>
<li><label for="report">Report:</label>
<select name="report" id="report">
<!-- TMPL_LOOP NAME="savedreports" -->
<!-- TMPL_IF NAME="selected" -->
<option value="<!-- TMPL_VAR NAME="id" -->" selected="selected"><!-- TMPL_VAR NAME="report_name"--></option>
<!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="report_name"--></option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</select>
</li>
<li><label for="format">Output Format:</label>
<select name="format" id="format">
<option value="text">Text</option>
<option value="url">URL</option>
</select>
</li>
<li><label for="email">Email:</label>
<input type="text" name="email" id="email" size="50" />
</li>
</ol></fieldset>
<fieldset class="action"><input class="submit-button" type="submit" value="Save" /></fieldset>
</form>
<!-- TMPL_IF NAME="JOBS" --><h2>Jobs already entered</h2>
<table>
<tr>
<th>Date/Time</th>
<th>Action</th>
<th>&nbsp;</th>
</tr>
<!-- TMPL_LOOP NAME="JOBS" -->
<form action="scheduler.pl" method="post">
<input type="hidden" name="mode" value="job_change" />
<tr>
<td><!-- TMPL_VAR NAME="TIME" --></td>
<td><!-- TMPL_VAR NAME="TAG" --></td>
<td><input type="submit" name="delete" value="Delete" /></td>
</tr>
<input type="hidden" name="jobid" value="<!-- TMPL_VAR NAME="JOBID" -->" />
</form>
<!-- /TMPL_LOOP -->
</table><!-- /TMPL_IF -->
</div>
</div>
</div>
<div class="yui-b noprint">
<!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
<!-- TMPL_INCLUDE NAME="guided-reports-view.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->