{* +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* this template is used for adding/editing other (custom) activities. *} {if $action eq 4}
{else} {if $activityTypeDescription }
{$activityTypeDescription}
{/if}
{/if} {if !$action or ( $action eq 1 ) or ( $action eq 2 ) }
{include file="CRM/common/formButtons.tpl" location="top"}
{/if} {if $action eq 8} {* Delete action. *} {elseif $action eq 1 or $action eq 2 or $action eq 4 or $context eq 'search' or $context eq 'smog'}
{ts}Are you sure you want to delete {/ts}{if $delName}'{$delName}'{/if}?
{if $action eq 4} {if $activityTypeDescription }
{$activityTypeDescription}
{/if} {else} {if $context eq 'standalone' or $context eq 'search' or $context eq 'smog'} {/if} {/if} {if $surveyActivity} {/if} {if $form.separation } {/if} {if $activityTypeFile} {include file="CRM/$crmDir/Form/Activity/$activityTypeFile.tpl"} {/if} {* CRM-7362 --add campaign to activities *} {include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignTrClass="crm-activity-form-block-campaign_id"} {* build engagement level CRM-7775 *} {if $buildEngagementLevel} {/if} {if $action neq 4} {else} {/if} {* activityTypeName means label here not name, but it should be name (dev/core#1116-fixme) *} {if $activityTypeName eq "Print PDF Letter"} {* activityTypeName means label here not name, but it should be name (dev/core#1116-fixme) *} {elseif $activityTypeName eq "Inbound Email"} {else} {/if} {if $surveyActivity } {/if} {if $form.tag.html} {/if} {if $tagsetInfo.activity} {include file="CRM/common/Tagset.tpl" tagsetType='activity' tableLayout=true} {/if} {if $action neq 4 OR $viewCustomData} {/if} {if $action eq 4 AND $currentAttachmentInfo} {include file="CRM/Form/attachment.tpl"}{* For view action the include provides the row and cells. *} {elseif $action eq 1 OR $action eq 2} {/if} {if $action eq 2 OR $action eq 1} {/if} {if $action neq 4} {* Don't include "Schedule Follow-up" section in View mode. *} {/if} {/if} {* End Delete vs. Add / Edit action *}
{$form.activity_type_id.label}{$form.activity_type_id.html}
{ts}Survey Title{/ts}{$surveyTitle}
{$form.source_contact_id.label} {$form.source_contact_id.html}
{$form.target_contact_id.label} {$form.target_contact_id.html}
{$form.separation.label} {$form.separation.html} {help id="separation"}
{$form.assignee_contact_id.label} {edit}{help id="assignee_contact_id" title=$form.assignee_contact_id.label}{/edit} {$form.assignee_contact_id.html} {if $action neq 4} {if !$form.target_contact_id.frozen} {/if} {if $activityAssigneeNotification}
{ts}A copy of this activity will be emailed to each Assignee.{/ts} {help id="sent_copy_email"} {/if} {/if}
{$form.subject.label}{$form.subject.html}
{$form.engagement_level.label} {$form.engagement_level.html}
{$form.location.label}{$form.location.html|crmAddClass:huge}
{$form.activity_date_time.label}{$form.activity_date_time.html}{$form.activity_date_time.value|crmDate}
{$form.duration.label} {$form.duration.html} {if $action neq 4}{ts}minutes{/ts}{/if}
{$form.status_id.label}{$form.status_id.html}
{$form.details.label} {$form.details.html} {$form.details.html|crmStripAlternatives|nl2br} {$form.details.html|crmStripAlternatives}
{$form.priority_id.label}{$form.priority_id.html}
{$form.result.label}{$form.result.html}
{$form.tag.label}
{$form.tag.html}
{if $action eq 4} {include file="CRM/Custom/Page/CustomDataView.tpl"} {else}
{include file="CRM/common/customDataBlock.tpl"} {/if}
{include file="CRM/Form/attachment.tpl"}
{include file="CRM/Core/Form/RecurringEntity.tpl" recurringFormIsEmbedded=true}
{include file="CRM/Activity/Form/FollowUp.tpl" type=""} {literal} {/literal}
{if $action eq 4 && ($activityTName neq 'Inbound Email' || $allow_edit_inbound_emails == 1)} {if !$context } {assign var="context" value='activity'} {/if} {if $permission EQ 'edit'} {assign var='urlParams' value="reset=1&atype=$atype&action=update&reset=1&id=$entityID&cid=$contactId&context=$context"} {if ($context eq 'fulltext' || $context eq 'search') && $searchKey} {assign var='urlParams' value="reset=1&atype=$atype&action=update&reset=1&id=$entityID&cid=$contactId&context=$context&key=$searchKey"} {/if} {ts}Edit{/ts} {/if} {if call_user_func(array('CRM_Core_Permission','check'), 'delete activities')} {assign var='urlParams' value="reset=1&atype=$atype&action=delete&reset=1&id=$entityID&cid=$contactId&context=$context"} {if ($context eq 'fulltext' || $context eq 'search') && $searchKey} {assign var='urlParams' value="reset=1&atype=$atype&action=delete&reset=1&id=$entityID&cid=$contactId&context=$context&key=$searchKey"} {/if} {ts}Delete{/ts} {/if} {/if} {if $action eq 4 and $context != 'case' and call_user_func(array('CRM_Case_BAO_Case','checkPermission'), $activityId, 'File On Case', $atype)} {ts}File on Case{/ts} {include file="CRM/Case/Form/ActivityToCase.tpl"} {/if} {include file="CRM/common/formButtons.tpl" location="bottom"}
{if $action eq 1 or $action eq 2 or $context eq 'search' or $context eq 'smog'} {literal} {/literal} {/if}
{* end of form block*} {include file="CRM/Event/Form/ManageEvent/ConfirmRepeatMode.tpl" entityID=$activityId entityTable="civicrm_activity"}