First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
|
@ -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}
|
|
@ -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} {$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"}
|
|
@ -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}
|
|
@ -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}" />
|
||||
{/if}
|
||||
{$link.name}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
</ul>
|
||||
|
||||
{/if}
|
|
@ -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}">»{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}'>» {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}'>» {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>
|
||||
|
|
@ -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} {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 -->
|
||||
|
107
sites/all/modules/civicrm/templates/CRM/Activity/Form/Search.tpl
Normal file
107
sites/all/modules/civicrm/templates/CRM/Activity/Form/Search.tpl
Normal 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} {$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}
|
|
@ -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> </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> </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"}
|
||||
{$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>
|
|
@ -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>
|
||||
{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>
|
|
@ -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}; {/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}; {/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}
|
|
@ -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}
|
|
@ -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>
|
|
@ -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"}
|
|
@ -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>
|
|
@ -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"}
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
||||
|
|
@ -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}; {/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}; {/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>
|
|
@ -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>
|
|
@ -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"}
|
|
@ -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}
|
Loading…
Add table
Add a link
Reference in a new issue