{* +--------------------------------------------------------------------+ | CiviCRM version 4.5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | 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 $cdType } {include file="CRM/Custom/Form/CustomData.tpl"} {else} {if $action eq 4}
{else} {if $activityTypeDescription }
{$activityTypeDescription}
{/if}
{/if} {* added onload javascript for source contact*} {include file="CRM/Activity/Form/ActivityJs.tpl" tokenContext="activity"} {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 1=$delName}Are you sure you want to delete '%1'?{/ts}
{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 $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} {if $activityTypeName eq "Print PDF Letter"} {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} {/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} {if $action eq 1 or $single eq false}
{$form.is_multi_activity.html} {$form.is_multi_activity.label} {help id="id-is_multi_activity"} {/if}
{$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 $activityAssigneeNotification}
{ts}A copy of this activity will be emailed to each Assignee.{/ts} {/if} {/if}
{$form.subject.label}{$form.subject.html|crmAddClass:huge}
{$form.engagement_level.label} {$form.engagement_level.html}
{$form.location.label}{$form.location.html|crmAddClass:huge}
{$form.activity_date_time.label}{include file="CRM/common/jcalendar.tpl" elementName=activity_date_time}{$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} {* If using plain textarea, assign class=huge to make input large enough. *} {if $defaultWysiwygEditor eq 0}{$form.details.html|crmAddClass:huge}{else}{$form.details.html}{/if} {* If using plain textarea, assign class=huge to make input large enough. *} {if $defaultWysiwygEditor eq 0}{$form.details.html|crmStripAlternatives|crmAddClass:huge}{else}{$form.details.html|crmStripAlternatives}{/if}
{$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}
{/if}
{include file="CRM/Form/attachment.tpl"}
{include file="CRM/Core/Form/RecurringEntity.tpl"} {literal} {/literal}
{literal} {/literal}
{if $action eq 4 && $activityTName neq 'Inbound Email'} {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 call_user_func(array('CRM_Case_BAO_Case','checkPermission'), $activityId, 'File On Case', $atype)}
{ts}File On Case{/ts}
{/if} {include file="CRM/common/formButtons.tpl" location="bottom"}
{include file="CRM/Case/Form/ActivityToCase.tpl"} {if $action eq 1 or $action eq 2 or $context eq 'search' or $context eq 'smog'} {*include custom data js file*} {include file="CRM/common/customData.tpl"} {literal} {/literal} {/if}
{* end of form block*} {/if} {* end of snippet if*} {include file="CRM/Event/Form/ManageEvent/ConfirmRepeatMode.tpl" entityID=$activityId entityTable="civicrm_activity"}