+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2017 |
+ | Copyright CiviCRM LLC (c) 2004-2018 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
</td>
</tr>
- {if $action eq 1 or $single eq false}
+ {if $form.separation }
<tr class="crm-activity-form-block-separation crm-is-multi-activity-wrapper">
<td class="label">{$form.separation.label}</td>
<td>{$form.separation.html} {help id="separation"}</td>
{/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>
+ <span id="notify_assignee_msg" 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>
</td>
{else}
<td class="view-value">
- {$form.details.html|crmStripAlternatives}
+ {$form.details.html|crmStripAlternatives|nl2br}
</td>
{/if}
</tr>
{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"}
+ {*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}
+ var doNotNotifyAssigneeFor = {/literal}{$doNotNotifyAssigneeFor|@json_encode}{literal};
+ $('#activity_type_id').change(function() {
+ if ($.inArray($(this).val(), doNotNotifyAssigneeFor) != -1) {
+ $('#notify_assignee_msg').hide();
+ }
+ else {
+ $('#notify_assignee_msg').show();
+ }
+ });
+
+ {/literal}
+ {if $customDataSubType}
+ CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
+ {else}
+ CRM.buildCustomData( '{$customDataType}' );
+ {/if}
+ {literal}
});
</script>
{/literal}