First commit

This commit is contained in:
Theodotos Andreou 2018-01-14 13:10:16 +00:00
commit c6e2478c40
13918 changed files with 2303184 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//CiviCRM//NONSGML CiviCRM iCal//EN
X-WR-TIMEZONE:{$timezone}
METHOD:REQUEST
BEGIN:VEVENT
UID:CIVICRMACTIVITY{$activity->id}
SUMMARY:{$activity->subject|crmICalText}
CALSCALE:GREGORIAN
DTSTAMP;VALUE=DATE-TIME:{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'|crmICalDate}
DTSTART;VALUE=DATE-TIME:{$activity->activity_date_time|crmICalDate}
DURATION:PT{$activity->duration}M
{if $activity->location}
LOCATION:{$activity->location|crmICalText}
{/if}
{if $organizer}
ORGANIZER:MAILTO:{$organizer|crmICalText}
{/if}
{foreach from=$contacts item=contact}
ATTENDEE;CN="{$contact.display_name|crmICalText}":MAILTO:{$contact.email|crmICalText}
{/foreach}
END:VEVENT
END:VCALENDAR

View file

@ -0,0 +1,46 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{htxt id="id-is_multi_activity-title"}
{ts}Create Separate Activity Records?{/ts}
{/htxt}
{htxt id="id-is_multi_activity"}
<p>{ts}By default a single activity record will be created and linked to all the contacts listed above. However, if you think you might be editing the activity later - and entering different information for different contacts - check this box to create separate activity records.{/ts}</p>
{/htxt}
{htxt id="assignee_contact_id"}
<p>
{ts}You can optionally assign this activity to someone. Assigned activities will appear in their Activities listing at CiviCRM Home.{/ts}
</p>
{/htxt}
{htxt id="sent_copy_email"}
<p>
{ts}When CiviCRM emails a copy of this activity to each assignees, that email will come from the contact listed under "Added By".{/ts}
</p>
<p>
{ts}If (in rare cases) that contact has no email address, then CiviCRM will send the email from the default "from" email address configured for this domain. And finally, if that email address has not been configured, then CiviCRM will send the email from the email address associated with the currently logged in user who creates this activity.{/ts}
</p>
{/htxt}

View file

@ -0,0 +1,295 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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}
<div class="crm-block crm-content-block crm-activity-view-block">
{else}
{if $activityTypeDescription }
<div class="help">{$activityTypeDescription}</div>
{/if}
<div class="crm-block crm-form-block crm-activity-form-block">
{/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 ) }
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{/if}
{if $action eq 8} {* Delete action. *}
<table class="form-layout">
<tr>
<td colspan="2">
<div class="status">{ts}Are you sure you want to delete {/ts}{if $delName}'{$delName}'{/if}?</div>
</td>
</tr>
{elseif $action eq 1 or $action eq 2 or $action eq 4 or $context eq 'search' or $context eq 'smog'}
<table class="{if $action eq 4}crm-info-panel{else}form-layout{/if}">
{if $action eq 4}
{if $activityTypeDescription }
<div class="help">{$activityTypeDescription}</div>
{/if}
{else}
{if $context eq 'standalone' or $context eq 'search' or $context eq 'smog'}
<tr class="crm-activity-form-block-activity_type_id">
<td class="label">{$form.activity_type_id.label}</td><td class="view-value">{$form.activity_type_id.html}</td>
</tr>
{/if}
{/if}
{if $surveyActivity}
<tr class="crm-activity-form-block-survey">
<td class="label">{ts}Survey Title{/ts}</td><td class="view-value">{$surveyTitle}</td>
</tr>
{/if}
<tr class="crm-activity-form-block-source_contact_id">
<td class="label">{$form.source_contact_id.label}</td>
<td class="view-value">
{$form.source_contact_id.html}
</td>
</tr>
<tr class="crm-activity-form-block-target_contact_id">
<td class="label">{$form.target_contact_id.label}</td>
<td class="view-value">
{$form.target_contact_id.html}
{if $action eq 1 or $single eq false}
<div class="crm-is-multi-activity-wrapper">
{$form.is_multi_activity.html}&nbsp;{$form.is_multi_activity.label} {help id="id-is_multi_activity"}
</div>
{/if}
</td>
</tr>
<tr class="crm-activity-form-block-assignee_contact_id">
<td class="label">
{$form.assignee_contact_id.label}
{edit}{help id="assignee_contact_id" title=$form.assignee_contact_id.label}{/edit}
</td>
<td>
{$form.assignee_contact_id.html}
{if $action neq 4}
{if !$form.target_contact_id.frozen}
<a href="#" class="crm-hover-button" id="swap_target_assignee" title="{ts}Swap Target and Assignee Contacts{/ts}" style="position:relative; bottom: 1em;">
<i class="crm-i fa-random"></i>
</a>
{/if}
{if $activityAssigneeNotification}
<br />
<span class="description"><i class="crm-i fa-paper-plane"></i> {ts}A copy of this activity will be emailed to each Assignee.{/ts} {help id="sent_copy_email"}</span>
{/if}
{/if}
</td>
</tr>
{if $activityTypeFile}
{include file="CRM/$crmDir/Form/Activity/$activityTypeFile.tpl"}
{/if}
<tr class="crm-activity-form-block-subject">
<td class="label">{$form.subject.label}</td><td class="view-value">{$form.subject.html|crmAddClass:huge}</td>
</tr>
{* 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}
<tr class="crm-activity-form-block-engagement_level">
<td class="label">{$form.engagement_level.label}</td>
<td class="view-value">{$form.engagement_level.html}</td>
</tr>
{/if}
<tr class="crm-activity-form-block-location">
<td class="label">{$form.location.label}</td><td class="view-value">{$form.location.html|crmAddClass:huge}</td>
</tr>
<tr class="crm-activity-form-block-activity_date_time">
<td class="label">{$form.activity_date_time.label}</td>
{if $action neq 4}
<td class="view-value">{include file="CRM/common/jcalendar.tpl" elementName=activity_date_time}</td>
{else}
<td class="view-value">{$form.activity_date_time.value|crmDate}</td>
{/if}
</tr>
<tr class="crm-activity-form-block-duration">
<td class="label">{$form.duration.label}</td>
<td class="view-value">
{$form.duration.html}
{if $action neq 4}<span class="description">{ts}minutes{/ts}{/if}
</td>
</tr>
<tr class="crm-activity-form-block-status_id">
<td class="label">{$form.status_id.label}</td><td class="view-value">{$form.status_id.html}</td>
</tr>
<tr class="crm-activity-form-block-details">
<td class="label">{$form.details.label}</td>
{if $activityTypeName eq "Print PDF Letter"}
<td class="view-value">
{$form.details.html}
</td>
{else}
<td class="view-value">
{$form.details.html|crmStripAlternatives}
</td>
{/if}
</tr>
<tr class="crm-activity-form-block-priority_id">
<td class="label">{$form.priority_id.label}</td><td class="view-value">{$form.priority_id.html}</td>
</tr>
{if $surveyActivity }
<tr class="crm-activity-form-block-result">
<td class="label">{$form.result.label}</td><td class="view-value">{$form.result.html}</td>
</tr>
{/if}
{if $form.tag.html}
<tr class="crm-activity-form-block-tag">
<td class="label">{$form.tag.label}</td>
<td class="view-value">
<div class="crm-select-container">{$form.tag.html}</div>
</td>
</tr>
{/if}
{if $tagsetInfo.activity}
<tr class="crm-activity-form-block-tag_set">{include file="CRM/common/Tagset.tpl" tagsetType='activity' tableLayout=true}</tr>
{/if}
{if $action neq 4 OR $viewCustomData}
<tr class="crm-activity-form-block-custom_data">
<td colspan="2">
{if $action eq 4}
{include file="CRM/Custom/Page/CustomDataView.tpl"}
{else}
<div id="customData"></div>
{/if}
</td>
</tr>
{/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}
<tr class="crm-activity-form-block-attachment">
<td colspan="2">
{include file="CRM/Form/attachment.tpl"}
</td>
</tr>
{/if}
{if $action eq 2 OR $action eq 1}
<tr class="crm-activity-form-block-recurring_activity">
<td colspan="2">
{include file="CRM/Core/Form/RecurringEntity.tpl" recurringFormIsEmbedded=true}
</td>
</tr>
{/if}
{if $action neq 4} {* Don't include "Schedule Follow-up" section in View mode. *}
<tr class="crm-activity-form-block-schedule_followup">
<td colspan="2">
{include file="CRM/Activity/Form/FollowUp.tpl" type=""}
{literal}
<script type="text/javascript">
CRM.$(function($) {
var $form = $('form.{/literal}{$form.formClass}{literal}');
$('.crm-accordion-body', $form).each( function() {
//open tab if form rule throws error
if ( $(this).children( ).find('span.crm-error').text( ).length > 0 ) {
$(this).parent('.collapsed').crmAccordionToggle();
}
});
function toggleMultiActivityCheckbox() {
$('.crm-is-multi-activity-wrapper').toggle(!!($(this).val() && $(this).val().indexOf(',') > 0));
}
$('[name=target_contact_id]', $form).each(toggleMultiActivityCheckbox).change(toggleMultiActivityCheckbox);
$('#swap_target_assignee').click(function(e) {
e.preventDefault();
var assignees = $('#assignee_contact_id', $form).select2("data");
var targets = $('#target_contact_id', $form).select2("data");
$('#assignee_contact_id', $form).select2("data", targets);
$('#target_contact_id', $form).select2("data", assignees).change();
});
});
</script>
{/literal}
</td>
</tr>
{/if}
{/if} {* End Delete vs. Add / Edit action *}
</table>
<div class="crm-submit-buttons">
{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}
<a href="{crmURL p='civicrm/activity/add' q=$urlParams}" class="edit button" title="{ts}Edit{/ts}"><span><i class="crm-i fa-pencil"></i> {ts}Edit{/ts}</span></a>
{/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}
<a href="{crmURL p='civicrm/contact/view/activity' q=$urlParams}" class="delete button" title="{ts}Delete{/ts}"><span><i class="crm-i fa-trash"></i> {ts}Delete{/ts}</span></a>
{/if}
{/if}
{if $action eq 4 and $context != 'case' and call_user_func(array('CRM_Case_BAO_Case','checkPermission'), $activityId, 'File On Case', $atype)}
<a href="#" onclick="fileOnCase('file', {$activityId}, null, this); return false;" class="cancel button" title="{ts}File On Case{/ts}"><span><i class="crm-i fa-clipboard"></i> {ts}File on Case{/ts}</span></a>
{include file="CRM/Case/Form/ActivityToCase.tpl"}
{/if}
{include file="CRM/common/formButtons.tpl" location="bottom"}
</div>
{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}
<script type="text/javascript">
CRM.$(function($) {
{/literal}
{if $customDataSubType}
CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
{else}
CRM.buildCustomData( '{$customDataType}' );
{/if}
{literal}
});
</script>
{/literal}
{/if}
</div>{* end of form block*}
{include file="CRM/Event/Form/ManageEvent/ConfirmRepeatMode.tpl" entityID=$activityId entityTable="civicrm_activity"}

View file

@ -0,0 +1,51 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* added onload javascript for source contact*}
{literal}
<script type="text/javascript">
/**
* Function to check activity status in relavent to activity date
*
* @param message JSON object.
*/
function activityStatus(message) {
var activityDate = cj("#activity_date_time_display").datepicker('getDate');
if (activityDate) {
var
// Ignore time, only compare dates
today = new Date().setHours(0,0,0,0),
activityStatusId = cj('#status_id').val();
if (activityStatusId == 2 && today < activityDate) {
return confirm(message.completed);
}
else if (activityStatusId == 1 && today > activityDate) {
return confirm(message.scheduled);
}
}
}
</script>
{/literal}

View file

@ -0,0 +1,84 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* Links for scheduling/logging meetings and calls and Sending Email *}
{if $contact_id }
{assign var = "contactId" value= $contact_id }
{/if}
{if $as_select} {* on 3.2, the activities can be either a drop down select (on the activity tab) or a list (on the action menu) *}
<select name="other_activity" class="crm-form-select crm-select2 crm-action-menu fa-plus">
<option value="">{ts}New Activity{/ts}</option>
{foreach from=$activityTypes item=act}
<option value="{$act.url}" data-icon="{$act.icon}">{$act.label}</option>
{/foreach}
</select>
{literal}
<script type="text/javascript">
CRM.$(function($) {
$('[name=other_activity].crm-action-menu').change(function() {
var
$el = $(this),
url = $el.val();
if (url) {
$el.select2('val', '');
CRM.loadForm(url).on('crmFormSuccess', function() {
CRM.refreshParent($el);
});
}
});
});
</script>
{/literal}
{else}
<ul>
<li class="crm-activity-tab"><a href="#" data-tab="activity">{ts}Record Activity:{/ts}</a></li>
{foreach from=$activityTypes key=k item=act}
<li class="crm-activity-type_{$k}">
<a href="{$act.url}" data-tab="activity">
<i class="crm-i {$act.icon}"></i> {$act.label}
</a>
</li>
{/foreach}
{* add hook links if any *}
{if $hookLinks}
{foreach from=$hookLinks item=link}
<li>
<a href="{$link.url}" data-tab="activity"{if !empty($link.title)} title="{$link.title|escape}"{/if}
{if !empty($link.class)} class="{$link.class}"{/if}>
{if $link.img}
<img src="{$link.img}" alt="{$link.title|escape}" />&nbsp;
{/if}
{$link.name}
</a>
</li>
{/foreach}
{/if}
</ul>
{/if}

View file

@ -0,0 +1,149 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-content-block crm-activity-view-block">
{if $activityTypeDescription}
<div class="help">{$activityTypeDescription}</div>
{/if}
<table class="crm-info-panel">
<tr>
<td class="label">{ts}Added By{/ts}</td><td class="view-value">{$values.source_contact}</td>
</tr>
{if $values.target_contact_value}
<tr>
<td class="label">{ts}With Contact{/ts}</td><td class="view-value">{$values.target_contact_value}</td>
</tr>
{/if}
{if $values.mailingId}
<tr>
<td class="label">{ts}With Contact{/ts}</td><td class="view-value"><a href="{$values.mailingId}" title="{ts}View Mailing Report{/ts}">&raquo;{ts}Mailing Report{/ts}</a></td>
</tr>
{/if}
<tr>
<td class="label">{ts}Subject{/ts}</td><td class="view-value">{$values.subject}</td>
</tr>
{if $values.campaign}
<tr>
<td class="label">{ts}Campaign{/ts}</td><td class="view-value">{$values.campaign}</td>
</tr>
{/if}
{if $values.engagement_level AND
call_user_func( array( 'CRM_Campaign_BAO_Campaign', 'isCampaignEnable' ) )}
<td class="label">{ts}Engagement Level{/ts}</td><td class="view-value">{$values.engagement_level}</td>
{/if}
<tr>
<td class="label">{ts}Date and Time{/ts}</td><td class="view-value">{$values.activity_date_time|crmDate }</td>
</tr>
{if $values.mailingId}
<tr>
<td class="label nowrap">
# of opens
</td>
<td class="view-value">{$openreport|@count}
{if $openreport|@count > 0 and $openreport|@count < 50}<br />Open times:
{foreach from=$openreport item=opens}
{$opens.date} <br />
{/foreach}
{/if}
</tr>
<tr>
<td class="label">
# of click-throughs
</td>
<td class="view-value"> {$clickreport|@count}
{if $clickreport|@count > 0 and $clickreport|@count < 50}<br />Click times:
{foreach from=$clickreport item=clicks}
{$clicks.date}: <a href ='{$clicks.url}'>{$clicks.url|truncate:40:' .... ':true:true}</a> <br />
{/foreach}
{/if}
</td>
</tr>
<tr>
<td class="label">{ts}Details{/ts}</td>
<td class="view-value report">
<fieldset>
<legend>{ts}Content / Components{/ts}</legend>
{strip}
<table class="form-layout-compressed">
{if $mailingReport.mailing.body_text}
<tr>
<td class="label nowrap">{ts}Text Message{/ts}</td>
<td>
{$mailingReport.mailing.body_text|mb_truncate:30|escape|nl2br}
<br />
{if $values.mailingId}
<strong><a class="crm-popup" href='{$textViewURL}'>&raquo; {ts}View complete message{/ts}</a></strong>
{/if}
</td>
</tr>
{/if}
{if $mailingReport.mailing.body_html}
<tr>
<td class="label nowrap">{ts}HTML Message{/ts}</td>
<td>
{$mailingReport.mailing.body_html|mb_truncate:30|escape|nl2br}
<br/>
{if $values.mailingId}
<strong><a class="crm-popup" href='{$htmlViewURL}'>&raquo; {ts}View complete message{/ts}</a></strong>
{/if}
</td>
</tr>
{/if}
{if $mailingReport.mailing.attachment}
<tr>
<td class="label nowrap">{ts}Attachments{/ts}</td>
<td>
{$mailingReport.mailing.attachment}
</td>
</tr>
{/if}
</table>
{/strip}
</fieldset>
</td>
</tr>
{else}
<tr>
<td class="label">{ts}Details{/ts}</td><td class="view-value report">{$values.details|crmStripAlternatives|nl2br}</td>
</tr>
{/if}
{if $values.attachment}
<tr>
<td class="label">{ts}Attachment(s){/ts}</td><td class="view-value report">{$values.attachment}</td>
</tr>
{/if}
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,30 @@
<div id="follow-up" class="crm-accordion-wrapper collapsed">
<div class="crm-accordion-header">
{ts}Schedule Follow-up{/ts}
</div><!-- /.crm-accordion-header -->
<div class="crm-accordion-body">
<table class="form-layout-compressed">
<tr class="crm-{$type}activity-form-block-followup_activity_type_id">
<td class="label">{ts}Schedule Follow-up Activity{/ts}</td>
<td>{$form.followup_activity_type_id.html}&nbsp;&nbsp;{ts}on{/ts}
{include file="CRM/common/jcalendar.tpl" elementName=followup_date}
</td>
</tr>
<tr class="crm-{$type}activity-form-block-followup_activity_subject">
<td class="label">{$form.followup_activity_subject.label}</td>
<td>{$form.followup_activity_subject.html|crmAddClass:huge}</td>
</tr>
<tr class="crm-{$type}activity-form-block-followup_assignee_contact_id">
<td class="label">
{$form.followup_assignee_contact_id.label}
{edit}
{/edit}
</td>
<td>
{$form.followup_assignee_contact_id.html}
</td>
</tr>
</table>
</div><!-- /.crm-accordion-body -->
</div><!-- /.crm-accordion-wrapper -->

View file

@ -0,0 +1,107 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* Search form and results for Activities *}
<div class="crm-form-block crm-search-form-block">
<div class="crm-accordion-wrapper crm-advanced_search_form-accordion {if $rows}collapsed{/if}">
<div class="crm-accordion-header crm-master-accordion-header">
{ts}Edit Search Criteria{/ts}
</div>
<!-- /.crm-accordion-header -->
<div class="crm-accordion-body">
<div id="searchForm" class="form-item">
{strip}
<table class="form-layout">
<tr>
<td class="font-size12pt" colspan="2">
{$form.sort_name.label}&nbsp;&nbsp;{$form.sort_name.html|crmAddClass:'twenty'}
<div>
<div class="description font-italic">{ts}Complete OR Partial Name{/ts}
<span class="contact-name-option option-1">{ts} of the Source Contact{/ts}</span>
<span class="contact-name-option option-2">{ts} of the Assignee Contact{/ts}</span>
<span class="contact-name-option option-3">{ts} of the Target Contact{/ts}</span>
</div>
</div>
</td>
<td>{include file="CRM/common/formButtons.tpl" location="top"}</td>
</tr>
{include file="CRM/Activity/Form/Search/Common.tpl"}
<tr>
<td colspan="3">{include file="CRM/common/formButtons.tpl" location="botton"}</td>
</tr>
</table>
{/strip}
</div>
</div>
</div>
</div>
{if $rowsEmpty || $rows }
<div class="crm-content-block">
{if $rowsEmpty}
<div class="crm-results-block crm-results-block-empty">
{include file="CRM/Activity/Form/Search/EmptyResults.tpl"}
</div>
{/if}
{if $rows}
<div class="crm-results-block">
{* Search request has returned 1 or more matching rows. *}
{* This section handles form elements for action task select and submit *}
<div class="crm-search-tasks">
{include file="CRM/common/searchResultTasks.tpl"}
</div>
{* This section displays the rows along and includes the paging controls *}
<div class="crm-search-results">
{include file="CRM/Activity/Form/Selector.tpl" context="Search"}
</div>
{* END Actions/Results section *}
</div>
{/if}
</div>
{/if}
{literal}
<script type="text/javascript">
CRM.$(function($) {
var $form = $('form.{/literal}{$form.formClass}{literal}'),
roleId = $('input[name=activity_role]:checked', $form).val();
if (roleId) {
$('.description .option-' + roleId).show();
}
$('[name=activity_role]:input').change(function() {
$('.description .contact-name-option').hide();
if ($(this).is(':checked')) {
$('.description .option-' + $(this).val()).show();
}
}).change();
});
</script>
{/literal}

View file

@ -0,0 +1,245 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
<tr>
<td colspan="2">
{$form.activity_role.html}
</span>
</td>
</tr>
<tr>
{if $form.activity_type_id}
<td><label>{$form.activity_type_id.label}</label>
<br />
{$form.activity_type_id.html}
</td>
{else}
<td>&nbsp;</td>
{/if}
{if $form.activity_survey_id || $buildEngagementLevel}
<td>
{if $form.activity_survey_id}
<label>{$form.activity_survey_id.label}</label>
<br/>
{$form.activity_survey_id.html}
{/if}
{if $buildEngagementLevel}
<br
/ >
<br/>
<label>{$form.activity_engagement_level.label}</label>
<br/>
{$form.activity_engagement_level.html}
{/if}
</td>
{/if}
<td>
<table>
<tr><td>
{if $form.parent_id}
<label>{ts}Has a Followup Activity?{/ts}</label>
<br/>
{$form.parent_id.html}
{/if}
</td></tr>
<tr><td>
{if $form.followup_parent_id}
<label>{ts}Is a Followup Activity?{/ts}</label>
<br/>
{$form.followup_parent_id.html}
{/if}
</td></tr>
</table>
</td>
{if $form.activity_tags}
<td><label>{ts}Activity Tag(s){/ts}</label>
<div id="Tags" class="listing-box">
{foreach from=$form.activity_tags item="tag_val"}
<div class="{cycle values='odd-row,even-row'}">
{$tag_val.html}
</div>
{/foreach}
</td>
{else}
<td>&nbsp;</td>
{/if}
</tr>
<tr>
<td><label>{ts}Activity Dates{/ts}</label></td>
</tr>
<tr>
{include file="CRM/Core/DateRange.tpl" fieldName="activity_date" from='_low' to='_high'}
</tr>
<tr>
<td>
{$form.activity_text.label}<br/>
{$form.activity_text.html|crmAddClass:big}<br/>
{$form.activity_option.html}<br/>
</td>
<td colspan="2">
{$form.status_id.label}<br/>
{$form.status_id.html}
</td>
</tr>
<tr>
<td>
{$form.priority_id.label}<br />
{$form.priority_id.html}
</td>
<td colspan="2">
{$form.activity_test.label} {help id="is-test" file="CRM/Contact/Form/Search/Advanced"}
&nbsp; {$form.activity_test.html}
</td>
</tr>
{if $buildSurveyResult }
<tr>
<td id="activityResult">
<label>{$form.activity_result.label}</label><br />
{$form.activity_result.html}
</td>
<td colspan="2">{include file="CRM/common/Tagset.tpl" tagsetType='activity'}</td>
</tr>
{else}
<tr>
<td colspan="3">{include file="CRM/common/Tagset.tpl" tagsetType='activity'}</td>
</tr>
{/if}
{* campaign in activity search *}
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl"
campaignContext="componentSearch" campaignTrClass='' campaignTdClass=''}
{if $activityGroupTree}
<tr id="activityCustom">
<td id="activityCustomData" colspan="2">
{include file="CRM/Custom/Form/Search.tpl" groupTree=$activityGroupTree showHideLinks=false}
</td>
</tr>
{/if}
{literal}
<script type="text/javascript">
CRM.$(function($) {
//Searchable activity custom fields which extend ALL activity types are always displayed in the form
//hence hide remaining activity custom data
$('#activityCustom').children( ).each( function( ) {
$('#'+$(this).attr('id')+' div').each( function( ) {
if ($(this).children( ).attr('id')) {
var activityCustomdataGroup = $(this).attr('id'); //div id
var fieldsetId = $(this).children( ).attr('id'); // fieldset id
var splitFieldsetId = fieldsetId.split("");
var splitFieldsetLength = splitFieldsetId.length; //length of fieldset
var show = 0;
//setdefault activity custom data group if corresponding activity type is checked
$('#Activity div').each(function( ) {
var checkboxId = $(this).children().attr('id'); //activity type element name
if (document.getElementById( checkboxId ).checked ) {
var element = checkboxId.split('[');
var splitElement = element[1].split(']'); // get activity type id
for (var i=0; i<splitFieldsetLength; i++) {
var singleFieldset = splitFieldsetId[i];
if (parseInt( singleFieldset)) {
if (singleFieldset == splitElement[0]) {
show++;
}
}
}
}
});
if (show < 1) {
$('#'+activityCustomdataGroup).hide( );
}
}
});
});
});
function showCustomData(chkbox) {
if (document.getElementById(chkbox).checked) {
//inject Searchable activity custom fields according to activity type selected
var element = chkbox.split("[");
var splitElement = element[1].split("]");
cj('#activityCustom').children().each(function( ) {
cj('#'+cj(this).attr( 'id' )+' div').each(function( ) {
if (cj(this).children().attr('id')) {
if (cj('#'+cj(this).attr('id')+(' fieldset')).attr('id')) {
var fieldsetId = cj('#' + cj(this).attr('id')+(' fieldset')).attr('id').split("");
var activityTypeId = jQuery.inArray(splitElement[0], fieldsetId);
if (fieldsetId[activityTypeId] == splitElement[0]) {
cj(this).show();
}
}
}
});
});
}
else {
//hide activity custom fields if the corresponding activity type is unchecked
var setcount = 0;
var element = chkbox.split( "[" );
var splitElement = element[1].split( "]" );
cj('#activityCustom').children().each( function( ) {
cj('#'+cj(this).attr( 'id' )+' div').each(function() {
if (cj(this).children().attr('id')) {
if (cj('#'+cj(this).attr('id')+(' fieldset')).attr('id')) {
var fieldsetId = cj( '#'+cj(this).attr('id')+(' fieldset')).attr('id').split("");
var activityTypeId = jQuery.inArray( splitElement[0],fieldsetId);
if (fieldsetId[activityTypeId] == splitElement[0]) {
cj('#'+cj(this).attr('id')).each( function() {
if (cj(this).children().attr('id')) {
//if activity custom data extends more than one activity types then
//hide that only when all the extended activity types are unchecked
cj('#'+cj(this).attr('id')+(' fieldset')).each( function( ) {
var splitFieldsetId = cj( this ).attr('id').split("");
var splitFieldsetLength = splitFieldsetId.length;
for( var i=0;i<splitFieldsetLength;i++ ) {
var setActivityTypeId = splitFieldsetId[i];
if (parseInt(setActivityTypeId)) {
var activityTypeId = 'activity_type_id['+setActivityTypeId+']';
if (document.getElementById(activityTypeId).checked) {
return false;
}
else {
setcount++;
}
}
}
if (setcount > 0) {
cj('#'+cj(this).parent().attr('id')).hide();
}
});
}
});
}
}
}
});
});
}
}
{/literal}
</script>

View file

@ -0,0 +1,40 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* No matches for submitted search request. *}
<div class="messages status no-popup">
<div class="icon inform-icon"></div> &nbsp;
{if $qill}{ts}No matches found for:{/ts}
{include file="CRM/common/displaySearchCriteria.tpl"}
{else}
{ts}None found.{/ts}
{/if}
<br />{ts}Suggestions:{/ts}
<ul>
<li>{ts}If you are searching by activity name, check your spelling or use fewer letters.{/ts}</li>
<li>{ts}If you are searching within a date range, try a wider range of values.{/ts}</li>
<li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li>
</ul>
</div>

View file

@ -0,0 +1,130 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{if $context EQ 'Search'}
{include file="CRM/common/pager.tpl" location="top"}
{/if}
{strip}
<table class="selector row-highlight">
<tr class="sticky">
{if !$single and $context eq 'Search' }
<th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
{/if}
{foreach from=$columnHeaders item=header}
<th scope="col">
{if $header.sort}
{assign var='key' value=$header.sort}
{$sort->_response.$key.link}
{else}
{$header.name}
{/if}
</th>
{/foreach}
</tr>
{counter start=0 skip=1 print=false}
{foreach from=$rows item=row}
<tr id='rowid{$row.activity_id}' class="{cycle values="odd-row,even-row"} {$row.class}">
{if !$single }
{if $context eq 'Search' }
{assign var=cbName value=$row.checkbox}
<td>{$form.$cbName.html}</td>
{/if}
{/if}
<td>
{$row.activity_type}
{if $row.repeat}
<br/>
<span><b>{$row.repeat}</b></span>
{/if}
</td>
<td>{$row.activity_subject}</td>
<td>
{if !$row.source_contact_id}
<em>n/a</em>
{elseif $contactId NEQ $row.source_contact_id}
<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.source_contact_id`"}" title="{ts}View contact{/ts}">{$row.source_contact_name}</a>
{else}
{$row.source_contact_name}
{/if}
</td>
<td>
{if $row.mailingId}
<a href="{$row.mailingId}" title="{ts}View Mailing Report{/ts}">{$row.recipients}</a>
{elseif $row.recipients}
{$row.recipients}
{elseif !$row.target_contact_name}
<em>n/a</em>
{elseif $row.target_contact_name}
{assign var="showTarget" value=0}
{foreach from=$row.target_contact_name item=targetName key=targetID}
{if $showTarget < 5}
{if $showTarget};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$targetID`"}" title="{ts}View contact{/ts}">{$targetName}</a>
{assign var="showTarget" value=$showTarget+1}
{/if}
{/foreach}
{if count($row.target_contact_name) > 5}({ts}more{/ts}){/if}
{/if}
</td>
<td>
{if !$row.assignee_contact_name}
<em>n/a</em>
{elseif $row.assignee_contact_name}
{assign var="showAssignee" value=0}
{foreach from=$row.assignee_contact_name item=assigneeName key=assigneeID}
{if $showAssignee < 5}
{if $showAssignee};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$assigneeID`"}" title="{ts}View contact{/ts}">{$assigneeName}</a>
{assign var="showAssignee" value=$showAssignee+1}
{/if}
{/foreach}
{if count($row.assignee_contact_name) > 5}({ts}more{/ts}){/if}
{/if}
</td>
<td>{$row.activity_date_time|crmDate}</td>
<td>{$row.activity_status}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
</tr>
{/foreach}
</table>
{/strip}
{include file="CRM/Case/Form/ActivityToCase.tpl"}
{if $context EQ 'Search'}
{include file="CRM/common/pager.tpl" location="bottom"}
{/if}

View file

@ -0,0 +1,41 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{ts 1=$totalSelectedActivities}Number of selected Activities: %1{/ts}
{if $rows }
<div class="form-item">
<table width="30%">
<tr class="columnheader">
<th>{ts}Name{/ts}</th>
</tr>
{foreach from=$rows item=row}
<tr class="{cycle values="odd-row,even-row"}">
<td>{$row.displayName}</td>
</tr>
{/foreach}
</table>
</div>
{/if}

View file

@ -0,0 +1,52 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
<div class="crm-form-block crm-block crm-activity-task-addtotag-form-block">
<h3>
{ts}Tag Activities{/ts}
</h3>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-activity-task-addtotag-form-block-tag">
<td>
<div class="listing-box">
{foreach from=$form.tag item="tag_val"}
<div class="{cycle values="odd-row,even-row"}">
{$tag_val.html}
</div>
{/foreach}
</div>
</td>
</tr>
<tr>
<td>
{include file="CRM/common/Tagset.tpl"}
</td>
</tr>
<tr><td>{include file="CRM/Activity/Form/Task.tpl"}</td></tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,62 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-activity-task-batch-form-block">
<fieldset>
<div class="help">
{ts}Update field values for each Activities as needed. Click <strong>Update Activities</strong> below to save all your changes. To set a field to the same value for ALL rows, enter that value for the first Activity and then click the <strong>Copy icon</strong> (next to the column title).{/ts}
</div>
<div class="crm-submit-buttons">{if $fields}{$form._qf_Batch_refresh.html}{/if}{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
<table class="crm-copy-fields">
<thead class="sticky">
<tr class="columnheader">
{foreach from=$readOnlyFields item=fTitle key=fName}
<th>{$fTitle}</th>
{/foreach}
{foreach from=$fields item=field key=fieldName}
<td><img src="{$config->resourceBase}i/copy.png" alt="{ts 1=$field.title}Click to copy %1 from row one to all rows.{/ts}" fname="{$field.name}" class="action-icon" title="{ts}Click here to copy the value in row one to ALL rows.{/ts}" />{$field.title}</td>
{/foreach}
</tr>
</thead>
{foreach from=$componentIds item=activityId}
<tr class="{cycle values="odd-row,even-row"}" entity_id="{$activityId}">
{foreach from=$readOnlyFields item=fTitle key=fName}
<td>{$contactDetails.$activityId.$fName}</td>
{/foreach}
{foreach from=$fields item=field key=fieldName}
{assign var=n value=$field.name}
<td class="compressed">{$form.field.$activityId.$n.html}</td>
{/foreach}
</tr>
{/foreach}
</tr>
</table>
<div class="crm-submit-buttons">{if $fields}{$form._qf_Batch_refresh.html}{/if}{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</fieldset>
</div>
{*include batch copy js js file*}
{include file="CRM/common/batchCopy.tpl"}

View file

@ -0,0 +1,36 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* Confirmation of Activity deletes *}
<div class="crm-block crm-form-block crm-activity_delete-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
<p>{ts}Are you sure you want to delete the selected Activities?{/ts}</p>
<p>{include file="CRM/Activity/Form/Task.tpl"}</p>
</div>
<p>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,26 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{include file="CRM/Contact/Form/Task/Email.tpl"}

View file

@ -0,0 +1,45 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
<div class="crm-form crm-form-block crm-file-on-case-form-block">
<div class="help">
{ts}File on Case{/ts}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-file-on-case-form-block-unclosed_cases">
<td class="label">
{$form.unclosed_case_id.label}
</td>
<td>
{$form.unclosed_case_id.html}<br />
</td>
</tr>
<tr>
{include file="CRM/Activity/Form/Task.tpl"}
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,49 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
<div class="crm-form crm-form-block crm-pick-option-form-block">
<div class="help">
Select Group of Contacts
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-pick-option-form-block-with_contact">
<td class="label">{$form.with_contact.label}</td>
<td>{$form.with_contact.html}</td>
</tr>
<tr class="crm-pick-option-form-block-assigned_to">
<td class="label">{$form.assigned_to.label}</td>
<td>{$form.assigned_to.html}</td>
</tr>
<tr class="crm-pick-option-form-block-created_by">
<td class="label">{$form.created_by.label}</td>
<td>{$form.created_by.html}</td>
</tr>
<tr>
{include file="CRM/Activity/Form/Task.tpl"}
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,42 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-activityPickProfile-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-activityPickProfile-form-block-uf_group_id">
<td>{$form.uf_group_id.label}</td>
<td>{$form.uf_group_id.html}</td>
</tr>
<tr>
<td class="label"></td>
<td>
{include file="CRM/Activity/Form/Task.tpl"}
</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,90 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-activity_task_print-form-block">
<p>
{if $rows }
<div class="crm-submit-buttons element-right">
{include file="CRM/common/formButtons.tpl" location="top"}
</div>
<div class="spacer"></div>
<br />
<p>
<table>
<tr class="columnheader">
<td>{ts}Type{/ts}</td>
<td>{ts}Subject{/ts}</td>
<td>{ts}Added By{/ts}</td>
<td>{ts}With{/ts}</td>
<td>{ts}Assigned to{/ts}</td>
<td>{ts}Date{/ts}</td>
<td>{ts}Status{/ts}</td>
</tr>
{foreach from=$rows item=row}
<tr class="{cycle values="odd-row,even-row"}">
<td>{$row.activity_type}</td>
<td>{$row.activity_subject}</td>
<td>{$row.source_contact_name}</td>
<td>
{if !$row.target_contact_name}
<em>n/a</em>
{elseif $row.target_contact_name}
{assign var="showTarget" value=0}
{foreach from=$row.target_contact_name item=targetName key=targetID}
{if $showTarget < 5}
{if $showTarget};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$targetID`"}" title="{ts}View contact{/ts}">{$targetName}</a>
{assign var="showTarget" value=$showTarget+1}
{/if}
{/foreach}
{/if}
</td>
<td>
{if !$row.assignee_contact_name}
<em>n/a</em>
{elseif $row.assignee_contact_name}
{assign var="showAssignee" value=0}
{foreach from=$row.assignee_contact_name item=assigneeName key=assigneeID}
{if $showAssignee < 5}
{if $showAssignee};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$assigneeID`"}" title="{ts}View contact{/ts}">{$assigneeName}</a>
{assign var="showAssignee" value=$showAssignee+1}
{/if}
{/foreach}
{/if}
</td>
<td>{$row.activity_date_time}</td>
<td>{$row.activity_status}</td>
</tr>
{/foreach}
</table>
<div class="crm-submit-buttons element-right">
{include file="CRM/common/formButtons.tpl" location="bottom"}
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}There are no records selected for Print.{/ts}
</div>
{/if}
</div>

View file

@ -0,0 +1,52 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* template to remove tags from activity *}
<div class="crm-form-block crm-block crm-activity-task-removefromtag-form-block">
<h3>
{ts}Tag Activities (Remove){/ts}
</h3>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-activity-task-removefromtag-form-block-tag">
<td>
<div class="listing-box">
{foreach from=$form.tag item="tag_val"}
<div class="{cycle values="odd-row,even-row"}">
{$tag_val.html}
{/foreach}
</div>
</td>
</tr>
<tr>
<td>
{include file="CRM/common/Tagset.tpl"}
</td>
</tr>
<tr><td>{include file="CRM/Activity/Form/Task.tpl"}</td></tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,26 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{include file="CRM/Contact/Form/Task/SMS.tpl"}

View file

@ -0,0 +1,59 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{if $rows}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<div class="spacer"></div>
<div>
<br />
<table>
<tr class="columnheader">
<td>{ts}Display Name{/ts}</td>
<td>{ts}Subject{/ts}</th>
<td>{ts}Activity Type{/ts}</td>
<td>{ts}Activity Date{/ts}</td>
</tr>
{foreach from=$rows item=row}
<tr class="{cycle values="odd-row,even-row"}">
<td>{$row.display_name}</td>
<td>{$row.subject}</td>
<td>{$row.activity_type}</td>
<td>{$row.activity_date}</td>
</tr>
{/foreach}
</table>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}There are no records selected.{/ts}
</div>
{/if}

View file

@ -0,0 +1,40 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{htxt id="id-upload-title"}
{ts}Activity Import{/ts}
{/htxt}
{htxt id="id-upload"}
<p>
{ts}The Activity Import Wizard allows you to easily upload activity from other applications into CiviCRM. Contacts must already exist in your CiviCRM database prior to importing activities for them. Use Import Contacts to create contact records first, if necessary. Then you can match activities to contacts by Email Address, CiviCRM Contact ID, or an External Identifier (see the TIP below).{/ts}
</p>
<p>
{ts}Files to be imported must be in the 'comma-separated-values' format (CSV). Most applications will allow you to export records in this format. Consult the documentation for your application if you're not sure how to do this. Save this file to your local hard drive (or an accessible drive on your network) - and you are now ready for step 1 (Upload Data).{/ts}
</p>
<p>
<strong>{ts}TIP - Matching Activities to Contact Records{/ts}</strong><br />
{ts}CiviCRM allows you to indicate which contact each activity record belongs to using either the unique CiviCRM-assigned Contact ID, a unique External ID which you assign, OR your configured Unsupervised Duplicate Matching Rule set (which uses email addresses by default). You must include at least one of these values as a column in your import file. If you are synchronizing (or migrating) contacts from another application to CiviCRM, and that application has assigned a unique ID to each contact, you can import that value into CiviCRM's External ID field. Then you can use that unique key as the 'match to contact' value when importing related data such as Activities.{/ts}
<p>
{/htxt}

View file

@ -0,0 +1,72 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* Activity Import Wizard - Step 1 (upload data file) *}
{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
<div class="crm-block crm-form-block crm-activity-import-uploadfile-form-block">
{* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
{include file="CRM/common/WizardHeader.tpl"}
<div class="help">
<p>
{ts}The Activity Import Wizard allows you to easily upload activity from other applications into CiviCRM. Contacts must already exist in your CiviCRM database prior to importing activity.{/ts}
{help id="id-upload"}
</p>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<div id="upload-file">
<h3>{ts}Upload Data File{/ts}</h3>
<table class="form-layout-compressed">
<tr class="crm-activity-import-uploadfile-form-block-uploadFile">
<td class="label">{$form.uploadFile.label}</td>
<td>{$form.uploadFile.html}<br />
<span class="description">{ts}File format must be comma-separated-values (CSV).{/ts}</span><br /><span>{ts 1=$uploadSize}Maximum Upload File Size: %1 MB{/ts}</span>
</td>
</tr>
<tr class="crm-activity-import-uploadfile-form-block-skipColumnHeader">
<td class="label"></td>
<td>{$form.skipColumnHeader.html}{$form.skipColumnHeader.label}<br />
<span class="description">{ts}Check this box if the first row of your file consists of field names (Example: 'Contact ID', 'Activity Type', 'Activity Date').{/ts}</span>
</td>
</tr>
<tr class="crm-import-datasource-form-block-fieldSeparator">
<td class="label">{$form.fieldSeparator.label} {help id='id-fieldSeparator' file='CRM/Contact/Import/Form/DataSource'}</td>
<td>{$form.fieldSeparator.html}</td>
</tr>
<tr>{include file="CRM/Core/Date.tpl"}</tr>
{if $savedMapping}
<tr class="crm-activity-import-uploadfile-form-block-savedMapping">
<td>{if $loadedMapping}{ts}Select a Different Field Mapping{/ts}{else}{ts}Load Saved Field Mapping{/ts}{/if}</td>
<td>{$form.savedMapping.html}<br />
<span class="description">{ts}Select Saved Mapping or Leave blank to create a new One.{/ts}</span>
{/if}
</td>
</tr>
</table>
<div class="spacer"></div>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,55 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-activity-import-mapfield-form-block">
{* Activity Import Wizard - Step 2 (map incoming data fields) *}
{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
{* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
{include file="CRM/common/WizardHeader.tpl"}
<div class="help">
<p>{ts}Review the values shown below from the first 2 rows of your import file and select the matching CiviCRM database fields from the drop-down lists in the right-hand column. Select '- do not import -' for any columns in the import file that you want ignored.{/ts}</p>
{if $savedMapping}
<p>{ts}Click 'Load Saved Field Mapping' if data has been previously imported from the same source. You can then select the saved import mapping setup and load it automatically.{/ts}<p>
{/if}
<p>{ts}If you think you may be importing additional data from the same data source, check 'Save this field mapping' at the bottom of the page before continuing. The saved mapping can then be easily reused the next time data is imported.{/ts}</p>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{* Table for mapping data to CRM fields *}
{include file="CRM/Activity/Import/Form/MapTable.tpl}
<br />
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
{$initHideBoxes}
{literal}
<script type="text/javascript" >
if ( document.getElementsByName("saveMapping")[0].checked ) {
document.getElementsByName("updateMapping")[0].checked = true;
document.getElementsByName("saveMapping")[0].checked = false;
}
</script>
{/literal}
</div>

View file

@ -0,0 +1,121 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* Activity Import Wizard - Data Mapping table used by MapFields.tpl and Preview.tpl *}
<div class="crm-block crm-form-block crm-activity_map_table-form-block">
<div id="map-field">
{strip}
<table>
{if $loadedMapping}
<tr class="columnheader-dark"><th colspan="4">{ts 1=$savedName}Saved Field Mapping: %1{/ts}</td></tr>
{/if}
<tr class="columnheader">
{section name=rows loop=$rowDisplayCount}
{if $skipColumnHeader }
{ if $smarty.section.rows.iteration == 1 }
<th>{ts}Column Headers{/ts}</th>
{else}
<th>{ts 1=$smarty.section.rows.iteration}Import Data (row %1){/ts}</th>
{/if}
{else}
<th>{ts 1=$smarty.section.rows.iteration}Import Data (row %1){/ts}</th>
{/if}
{/section}
<th>{ts}Matching CiviCRM Field{/ts}</th>
</tr>
{*Loop on columns parsed from the import data rows*}
{section name=cols loop=$columnCount}
{assign var="i" value=$smarty.section.cols.index}
<tr style="border-bottom: 1px solid #92B6EC;">
{section name=rows loop=$rowDisplayCount}
{assign var="j" value=$smarty.section.rows.index}
<td class="{if $skipColumnHeader AND $smarty.section.rows.iteration == 1}even-row labels{else}odd-row{/if}">{$dataValues[$j][$i]}</td>
{/section}
{* Display mapper <select> field for 'Map Fields', and mapper value for 'Preview' *}
<td class="form-item even-row
{if $wizard.currentStepName == 'Preview'}labels{/if}">
{if $wizard.currentStepName == 'Preview'}
{$mapper[$i]}
{else}
{$form.mapper[$i].html}
{/if}
</td>
</tr>
{/section}
</table>
{/strip}
{if $wizard.currentStepName != 'Preview'}
<div>
{if $loadedMapping}
<span>{$form.updateMapping.html} &nbsp;&nbsp; {$form.updateMapping.label}</span>
{/if}
<span>{$form.saveMapping.html} &nbsp;&nbsp; {$form.saveMapping.label}</span>
<div id="saveDetails" class="form-item">
<table>
<tr class="crm-activity_map_table-form-block-saveMappingName">
<td>{$form.saveMappingName.label}</td>
<td>{$form.saveMappingName.html}</td>
</tr>
<tr class="crm-activity_map_table-form-block-saveMappingDesc">
<td>{$form.saveMappingDesc.label}</td>
<td>{$form.saveMappingDesc.html}</td>
</tr>
</table>
</div>
<script type="text/javascript">
{if $mappingDetailsError }
cj('#saveDetails').show();
{else}
cj('#saveDetails').hide();
{/if}
{literal}
function showSaveDetails(chkbox) {
if (chkbox.checked) {
document.getElementById("saveDetails").style.display = "block";
document.getElementById("saveMappingName").disabled = false;
document.getElementById("saveMappingDesc").disabled = false;
} else {
document.getElementById("saveDetails").style.display = "none";
document.getElementById("saveMappingName").disabled = true;
document.getElementById("saveMappingDesc").disabled = true;
}
}
{/literal}
{include file="CRM/common/highLightImport.tpl"}
</script>
</div>
{/if}
</div>
</div>

View file

@ -0,0 +1,95 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* Activity Import Wizard - Step 3 (preview import results prior to actual data loading) *}
{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
<div class="crm-block crm-form-block crm-activity-import-preview-form-block">
{* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
{include file="CRM/common/WizardHeader.tpl"}
<div class="help">
<p>
{ts}The information below previews the results of importing your data in CiviCRM. Review the totals to ensure that they represent your expected results.{/ts}
</p>
{if $invalidRowCount}
<p class="error">
{ts 1=$invalidRowCount 2=$downloadErrorRecordsUrl}CiviCRM has detected invalid data or formatting errors in %1 records. If you continue, these records will be skipped. OR, you can download a file with just these problem records - <a href='%2'>Download Errors</a>. Then correct them in the original import file, cancel this import and begin again at step 1.{/ts}
</p>
{/if}
{if $conflictRowCount}
<p class="error">
{ts 1=$conflictRowCount 2=$downloadConflictRecordsUrl}CiviCRM has detected %1 records with conflicting transaction ids within this data file. If you continue, these records will be skipped. OR, you can download a file with just these problem records - <a href='%2'>Download Conflicts</a>. Then correct them in the original import file, cancel this import and begin again at step 1.{/ts}
</p>
{/if}
<p>{ts}Click 'Import Now' if you are ready to proceed.{/ts}</p>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{* Summary Preview (record counts) *}
<table id="preview-counts" class="report">
<tr><td class="label">{ts}Total Rows{/ts}</td>
<td class="data">{$totalRowCount}</td>
<td class="explanation">{ts}Total rows (activity records) in uploaded file.{/ts}</td>
</tr>
{if $invalidRowCount}
<tr class="error"><td class="label">{ts}Rows with Errors{/ts}</td>
<td class="data">{$invalidRowCount}</td>
<td class="explanation">{ts}Rows with invalid data in one or more fields. These rows will be skipped (not imported).{/ts}
{if $invalidRowCount}
<div class="action-link"><a href="{$downloadErrorRecordsUrl}">&raquo; {ts}Download Errors{/ts}</a></div>
{/if}
</td>
</tr>
{/if}
{if $conflictRowCount}
<tr class="error"><td class="label">{ts}Conflicting Rows{/ts}</td>
<td class="data">{$conflictRowCount}</td>
<td class="explanation">{ts}Rows with conflicting transaction ids within this file. These rows will be skipped (not imported).{/ts}
{if $conflictRowCount}
<p><a href="{$downloadConflictRecordsUrl}">{ts}Download Conflicts{/ts}</a></p>
{/if}
</td>
</tr>
{/if}
<tr><td class="label">{ts}Valid Rows{/ts}</td>
<td class="data">{$validRowCount}</td>
<td class="explanation">{ts}Total rows to be imported.{/ts}</td>
</tr>
</table>
<br />
{* Table for mapping preview *}
{include file="CRM/Activity/Import/Form/MapTable.tpl}
<br />
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,134 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* Activity Import Wizard - Step 4 (summary of import results AFTER actual data loading) *}
{* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
<div class="crm-block crm-form-block crm-activity-import-summary-form-block">
{* WizardHeader.tpl provides visual display of steps thru the wizard as well as title for current step *}
{include file="CRM/common/WizardHeader.tpl"}
<div class="help">
<p>
{ts}<strong>Import has completed successfully.</strong> The information below summarizes the results.{/ts}
</p>
{if $unMatchCount }
<p class="error">
{ts count=$unMatchCount plural='CiviCRM has detected mismatched activity IDs. These records have not been Updated.'}CiviCRM has detected mismatched activity ID. This record have not been updated.{/ts}
</p>
<p class="error">
{ts 1=$downloadMismatchRecordsUrl}You can <a href='%1'>Download Mismatched Activity records</a>. You may then correct them, and import the new file with the corrected data.{/ts}
</p>
{/if}
{if $invalidRowCount }
<p class="error">
{ts count=$invalidRowCount plural='CiviCRM has detected invalid data and/or formatting errors in %count records. These records have not been imported.'}CiviCRM has detected invalid data and/or formatting errors in one record. This record have not been imported.{/ts}
</p>
<p class="error">
{ts 1=$downloadErrorRecordsUrl}You can <a href='%1'>Download Errors</a>. You may then correct them, and import the new file with the corrected data.{/ts}
</p>
{/if}
{if $conflictRowCount}
<p class="error">
{ts count=$conflictRowCount plural='CiviCRM has detected %count records with conflicting transaction IDs within this data file or relative to existing activity records. These records have not been imported.'}CiviCRM has detected one record with conflicting transaction ID within this data file or relative to existing activity records. This record have not been imported.{/ts}
</p>
<p class="error">
{ts 1=$downloadConflictRecordsUrl}You can <a href='%1'>Download Conflicts</a>. You may then review these records to determine if they are actually conflicts, and correct the transaction IDs for those that are not.{/ts}
</p>
{/if}
{if $duplicateRowCount}
<p {if $dupeError}class="error"{/if}>
{ts count=$duplicateRowCount plural='CiviCRM has detected %count records which are duplicates of existing CiviCRM activity records.'}CiviCRM has detected one record which is a duplicate of existing CiviCRM activity record.{/ts} {$dupeActionString}
</p>
<p {if $dupeError}class="error"{/if}>
{ts 1=$downloadDuplicateRecordsUrl}You can <a href='%1'>Download Duplicates</a>. You may then review these records to determine if they are actually duplicates, and correct the transaction IDs for those that are not.{/ts}
</p>
{/if}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{* Summary of Import Results (record counts) *}
<table id="summary-counts" class="report">
<tr><td class="label">{ts}Total Rows{/ts}</td>
<td class="data">{$totalRowCount}</td>
<td class="explanation">{ts}Total rows (activity records) in uploaded file.{/ts}</td>
</tr>
{if $invalidRowCount }
<tr class="error"><td class="label">{ts}Invalid Rows (skipped){/ts}</td>
<td class="data">{$invalidRowCount}</td>
<td class="explanation">{ts}Rows with invalid data in one or more fields. These rows will be skipped (not imported).{/ts}
{if $invalidRowCount}
<p><a href="{$downloadErrorRecordsUrl}">{ts}Download Errors{/ts}</a></p>
{/if}
</td>
</tr>
{/if}
{if $unMatchCount }
<tr class="error"><td class="label">{ts}Mismatched Rows (skipped){/ts}</td>
<td class="data">{$unMatchCount}</td>
<td class="explanation">{ts}Rows with mismatched activity IDs (NOT updated).{/ts}
{if $unMatchCount}
<p><a href="{$downloadMismatchRecordsUrl}">{ts}Download Mismatched Activity records{/ts}</a></p>
{/if}
</td>
</tr>
{/if}
{if $conflictRowCount}
<tr class="error"><td class="label">{ts}Conflicting Rows (skipped){/ts}</td>
<td class="data">{$conflictRowCount}</td>
<td class="explanation">{ts}Rows with conflicting transaction IDs (NOT imported).{/ts}
{if $conflictRowCount}
<p><a href="{$downloadConflictRecordsUrl}">{ts}Download Conflicts{/ts}</a></p>
{/if}
</td>
</tr>
{/if}
{if $duplicateRowCount}
<tr class="error"><td class="label">{ts}Duplicate Rows{/ts}</td>
<td class="data">{$duplicateRowCount}</td>
<td class="explanation">{ts}Rows which are duplicates of existing CiviCRM activity records.{/ts} {$dupeActionString}
{if $duplicateRowCount}
<p><a href="{$downloadDuplicateRecordsUrl}">{ts}Download Duplicates{/ts}</a></p>
{/if}
</td>
</tr>
{/if}
<tr><td class="label">{ts}Records Imported{/ts}</td>
<td class="data">{$validRowCount}</td>
<td class="explanation">{ts}Rows imported successfully.{/ts}</td>
</tr>
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>

View file

@ -0,0 +1,38 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* Include links to enter Activities if session has 'edit' permission *}
{if $action EQ 16 and $permission EQ 'edit' and !$addAssigneeContact and !$addTargetContact}
<div class="action-link crm-activityLinks" style="text-align: left">{include file="CRM/Activity/Form/ActivityLinks.tpl" as_select=true}</div>
{/if}
{if $action eq 1 or $action eq 2 or $action eq 8 or $action eq 4 or $action eq 32768} {* add, edit, delete or view or detach*}
{include file="CRM/Activity/Form/Activity.tpl"}
{else}
{*include file="CRM/Activity/Selector/Activity.tpl"*}
{include file="CRM/Activity/Selector/Selector.tpl"}
{/if}

View file

@ -0,0 +1,69 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
<div class="view-content">
{if $activity_rows}
{strip}
<div class="description">
{ts}Click on the activity subject for more information.{/ts}
</div>
<table class="selector">
<tr class="columnheader">
<th>{ts}Type{/ts}</th>
<th>{ts}Subject{/ts}</th>
<th>{ts}Added By{/ts}</th>
<th>{ts}With{/ts}</th>
<th>{ts}Date{/ts}</th>
<th>{ts}Status{/ts}</th>
</tr>
{counter start=0 skip=1 print=false}
{capture assign="no_subject"}{ts}(no subject){/ts}{/capture}
{foreach from=$activity_rows item=row}
<tr id='rowid{$row.activity_id}' class=" crm-activity-id_{$row.activity_id} {cycle values="odd-row,even-row"}">
<td class="crm-activity_type">{$row.activity_type}</td>
<td class="crm-activity_subject"><a href="{crmURL p='civicrm/activity'
q="action=view&reset=1&id=`$row.activity_id`&cid=`$row.contact_id`&context=dashboard"}">{$row.activity_subject|default:$no_subject}</a></td>
<td class="crm-source_contact_name">
<a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$row.source_contact_id`"}">{$row.source_contact_name}</a>;
</td>
<td class="crm-target_contact_name">
{foreach from=$row.target_contact_name item=name key=cid}
<a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$cid`"}">{$name}</a>;
{/foreach}
</td>
<td class="crm-activity_date_time">{$row.activity_date_time|crmDate}</td>
<td class="crm-activity_status">{$row.activity_status}</td>
</tr>
{/foreach}
</table>
{/strip}
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>&nbsp;
{ts}There are no scheduled activities assigned to you.{/ts}
</div>
{/if}
</div>

View file

@ -0,0 +1,129 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* Displays Activities. *}
<div>
{if empty($noFieldSet)}
<h3 class="crm-table-title">{ts}Activities{/ts}</h3>
{/if}
{if $rows}
<form title="activity_pager" action="{crmURL}" method="post">
{include file="CRM/common/pager.tpl" location="top"}
{strip}
<table class="selector row-highlight">
<tr class="columnheader">
{foreach from=$columnHeaders item=header}
<th scope="col">
{if $header.sort}
{assign var='key' value=$header.sort}
{$sort->_response.$key.link}
{else}
{$header.name}
{/if}
</th>
{/foreach}
</tr>
{counter start=0 skip=1 print=false}
{foreach from=$rows item=row}
<tr class="{cycle values="odd-row,even-row"} {$row.class} crm-activity crm-activity_status-{$row.activity_status_id} crm-activity-type_{$row.activity_type_id}" id="crm-activity_{$row.activity_id}">
<td class="crm-activity-type crm-activity-type_{$row.activity_type_id}">{$row.activity_type}</td>
<td class="crm-activity-subject">{$row.subject}</td>
<td class="crm-activity-source_contact_name">
{if $contactId == $row.source_contact_id}
{$row.source_contact_name}
{elseif $row.source_contact_id}
<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.source_contact_id`"}" title="{ts}View contact{/ts}">{$row.source_contact_name}</a>
{else}
<em>n/a</em>
{/if}
</td>
<td class="crm-activity-target_contact_name">
{if $row.mailingId}
<a href="{$row.mailingId}" title="{ts}View Mailing Report{/ts}">{$row.recipients}</a>
{elseif $row.recipients}
{$row.recipients}
{elseif !$row.target_contact_name}
<em>n/a</em>
{elseif $row.target_contact_name}
{assign var="showTarget" value=0}
{foreach from=$row.target_contact_name item=targetName key=targetID}
{if $showTarget < 5}
{if $showTarget};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$targetID`"}" title="{ts}View contact{/ts}">{$targetName}</a>
{assign var="showTarget" value=$showTarget+1}
{/if}
{/foreach}
{if count($row.target_contact_name) > 5} ({ts}more{/ts}){/if}
{/if}
</td>
<td class="crm-activity-assignee_contact_name">
{if !$row.assignee_contact_name}
<em>n/a</em>
{elseif $row.assignee_contact_name}
{assign var="showAssignee" value=0}
{foreach from=$row.assignee_contact_name item=assigneeName key=assigneeID}
{if $showAssignee < 5}
{if $showAssignee};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$assigneeID`"}" title="{ts}View contact{/ts}">{$assigneeName}</a>
{assign var="showAssignee" value=$showAssignee+1}
{/if}
{/foreach}
{if count($row.assignee_contact_name) > 5}({ts}more{/ts}){/if}
{/if}
</td>
<td class="crm-activity-date_time">{$row.activity_date_time|crmDate}</td>
<td class="crm-activity-status crm-activity-status_{$row.status_id}">{$row.status}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
</tr>
{/foreach}
</table>
{/strip}
{include file="CRM/common/pager.tpl" location="bottom"}
{include file="CRM/Case/Form/ActivityToCase.tpl" contactID=$contactId}
</form>
{else}
<div class="messages status no-popup">
{if isset($caseview) and $caseview}
{ts}There are no Activities attached to this case record.{/ts}{if $permission EQ 'edit'} {ts}You can go to the Activities tab to create or attach activity records.{/ts}{/if}
{elseif $context eq 'home'}
{ts}There are no Activities to display.{/ts}
{else}
{ts}There are no Activities to display.{/ts}{if $permission EQ 'edit'} {ts}You can use the links above to schedule or record an activity.{/ts}{/if}
{/if}
</div>
{/if}
{if !$noFieldSet}
{/if}
</div>

View file

@ -0,0 +1,100 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
<div class="crm-activity-selector-{$context}">
<div class="crm-accordion-wrapper crm-search_filters-accordion">
<div class="crm-accordion-header">
{ts}Filter by Activity{/ts}</a>
</div><!-- /.crm-accordion-header -->
<div class="crm-accordion-body">
<table class="no-border form-layout-compressed activity-search-options">
<tr>
<td class="crm-contact-form-block-activity_type_filter_id crm-inline-edit-field">
{$form.activity_type_filter_id.label}<br /> {$form.activity_type_filter_id.html|crmAddClass:medium}
</td>
<td class="crm-contact-form-block-activity_type_exclude_filter_id crm-inline-edit-field">
{$form.activity_type_exclude_filter_id.label}<br /> {$form.activity_type_exclude_filter_id.html|crmAddClass:medium}
</td>
{include file="CRM/Core/DateRange.tpl" fieldName="activity_date" from='_low' to='_high' label='Date'}
<td class="crm-contact-form-block-activity_status_filter_id crm-inline-edit-field">
{ts}Status{/ts}<br /> {$form.status_id.html|crmAddClass:medium}
</td>
</tr>
</table>
</div><!-- /.crm-accordion-body -->
</div><!-- /.crm-accordion-wrapper -->
<table class="contact-activity-selector-{$context} crm-ajax-table">
<thead>
<tr>
<th data-data="activity_type" class="crm-contact-activity-activity_type">{ts}Type{/ts}</th>
<th data-data="subject" cell-class="crmf-subject crm-editable" class="crm-contact-activity_subject">{ts}Subject{/ts}</th>
<th data-data="source_contact_name" class="crm-contact-activity-source_contact">{ts}Added By{/ts}</th>
<th data-data="target_contact_name" data-orderable="false" class="crm-contact-activity-target_contact">{ts}With{/ts}</th>
<th data-data="assignee_contact_name" data-orderable="false" class="crm-contact-activity-assignee_contact">{ts}Assigned{/ts}</th>
<th data-data="activity_date_time" class="crm-contact-activity-activity_date">{ts}Date{/ts}</th>
<th data-data="status_id" cell-class="crmf-status_id crm-editable" cell-data-type="select" cell-data-refresh="true" class="crm-contact-activity-activity_status">{ts}Status{/ts}</th>
<th data-data="links" data-orderable="false" class="crm-contact-activity-links">&nbsp;</th>
</tr>
</thead>
</table>
{literal}
<script type="text/javascript">
(function($) {
var context = {/literal}"{$context}"{literal};
CRM.$('table.contact-activity-selector-' + context).data({
"ajax": {
"url": {/literal}'{crmURL p="civicrm/ajax/contactactivity" h=0 q="snippet=4&context=$context&cid=$contactId"}'{literal},
"data": function (d) {
var status_id = $('.crm-activity-selector-' + context + ' select#status_id').val() || [];
d.activity_type_id = $('.crm-activity-selector-' + context + ' select#activity_type_filter_id').val(),
d.activity_type_exclude_id = $('.crm-activity-selector-' + context + ' select#activity_type_exclude_filter_id').val(),
d.activity_date_relative = $('select#activity_date_relative').val(),
d.activity_date_low = $('#activity_date_low').val(),
d.activity_date_high = $('#activity_date_high').val(),
d.activity_status_id = status_id.join(',')
}
}
});
$(function($) {
$('.activity-search-options :input').change(function(){
CRM.$('table.contact-activity-selector-' + context).DataTable().draw();
});
});
})(CRM.$);
</script>
{/literal}
<style type="text/css">
{crmAPI var='statuses' entity='OptionValue' action='get' return="color,value" option_limit=0 option_group_id="activity_status"}
{foreach from=$statuses.values item=status}
{if !empty($status.color)}
table.contact-activity-selector-{$context} tr.status-id-{$status.value} {ldelim}
border-left: 3px solid {$status.color};
{rdelim}
{/if}
{/foreach}
</style>
</div>
{include file="CRM/Case/Form/ActivityToCase.tpl" contactID=$contactId}