+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
<td class="label">{$form.details.label}</td>
{if $activityTypeName eq "Print PDF Letter"}
<td class="view-value">
- {* If using plain textarea, assign class=huge to make input large enough. *}
- {if $defaultWysiwygEditor eq 0}{$form.details.html|crmAddClass:huge}{else}{$form.details.html}{/if}
+ {$form.details.html}
</td>
{else}
<td class="view-value">
- {* If using plain textarea, assign class=huge to make input large enough. *}
- {if $defaultWysiwygEditor eq 0}{$form.details.html|crmStripAlternatives|crmAddClass:huge}{else}{$form.details.html|crmStripAlternatives}{/if}
+ {$form.details.html|crmStripAlternatives}
</td>
{/if}
</tr>
{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"}
- {literal}
- <script type="text/javascript">
- CRM.$(function($) {
- if ($('#activity_date_time').val() !== "" && $('#activity_date_time_time').val() !== "") {
- $('#repetition_start_date, input[id^="repetition_start_date_display_"]').val($('#activity_date_time').val());
- $('#repetition_start_date_time').val($('#activity_date_time_time').val());
- }
-
- $('input[id^="activity_date_time_display_"]').change(function() {
- $('#repetition_start_date, input[id^="repetition_start_date_display_"]').val($('#activity_date_time').val());
- });
-
- $('#activity_date_time_time').change(function() {
- $('#repetition_start_date_time').val($('#activity_date_time_time').val());
- });
-
- if ($('#start_action_offset').val() == "" && $('input[id^="repeat_absolute_date_display_"]').val() == "") {
- $('#recurring-entity-block').addClass('collapsed');
- }
- });
- </script>
- {/literal}
- {if $action eq 1}
- {literal}
- <script type="text/javascript">
- CRM.$(function($) {
- $('#recurring-entity-block div.crm-submit-buttons').css('display', 'none');
- });
- </script>
- {/literal}
- {/if}
+ {include file="CRM/Core/Form/RecurringEntity.tpl" recurringFormIsEmbedded=true}
</td>
</tr>
{/if}