{* +--------------------------------------------------------------------+ | Copyright CiviCRM LLC. All rights reserved. | | | | This work is published under the GNU AGPLv3 license with some | | permitted exceptions and without any warranty. For full license | | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* This template is used for adding/configuring Scheduled Jobs. *}

{if $action eq 1}{ts}New Scheduled Job{/ts}{elseif $action eq 2}{ts}Edit Scheduled Job{/ts}{elseif $action eq 128}{ts}Execute Scheduled Job{/ts}{else}{ts}Delete Scheduled Job{/ts}{/if}

{include file="CRM/common/formButtons.tpl" location="top"}
{if $action eq 8}
{ts}WARNING: Deleting this Scheduled Job will cause some important site functionality to stop working.{/ts} {ts}Do you want to continue?{/ts}
{elseif $action eq 128}
{ts}Are you sure you would like to execute this job?{/ts}
{else}
{$form.name.label}{$form.name.html}
{$form.description.label}{$form.description.html}
{$form.run_frequency.label}{$form.run_frequency.html}

{$form.api_action.html}
{ts}Put in the API method name. You need to enter pieces of full API function name as described in the documentation.{/ts}
{$form.parameters.label}
{docURL page="Managing Scheduled Jobs" resource="wiki"}
{$form.parameters.html}
{$form.scheduled_run_date.label} {$form.scheduled_run_date.html}
{ts}Do not run this job before this date / time. The run frequency selected above will apply thereafter.{/ts}
{if $action eq 1}{ts}Leave blank to run as soon as possible.{/ts}{else}{ts}Leave blank to run at next run frequency.{/ts}{/if}
{$form.is_active.html} {$form.is_active.label}
{/if}
{include file="CRM/common/formButtons.tpl" location="bottom"}