|
14 | 14 | +-------------------------------------------------------*}
|
15 | 15 |
|
16 | 16 | <div class="crm-submit-buttons">
|
17 |
| -{include file="CRM/common/formButtons.tpl" location="top"} |
| 17 | + {include file="CRM/common/formButtons.tpl" location="top"} |
18 | 18 | </div>
|
19 | 19 |
|
20 | 20 | <div class="crm-content">
|
21 | 21 | <div class="messages status no-popup">
|
22 | 22 | <i class="crm-i fa-exclamation-triangle"></i>
|
23 | 23 | {if $singleContact}
|
24 |
| - Are you sure you want to set this contact to inactive? |
| 24 | + Are you sure you want to set this contact to inactive? |
25 | 25 | </div>
|
26 | 26 | <div>All privacy options will be set
|
27 | 27 | {if !empty($activityTypeNames)}and activity types "{$activityTypeNames}" will be set to "Cancelled".{/if}</div>
|
28 |
| - {else} |
29 |
| - Are you sure you want to set the selected contact(s) to inactive? |
30 |
| - </div> |
| 28 | + {else} |
| 29 | + Are you sure you want to set the selected contact(s) to inactive? |
| 30 | +</div> |
31 | 31 | <div>All privacy options will be set
|
32 | 32 | {if !empty($activityTypeNames)}and activity types "{$activityTypeNames}" will be set to "Cancelled" {/if}for the selected contact(s).</div>
|
33 |
| - {/if} |
| 33 | +{/if} |
34 | 34 | </div>
|
35 | 35 |
|
36 | 36 | {if !$singleContact}
|
37 |
| -<table class="form-layout"> |
38 |
| - <tr><td>{include file="CRM/Contact/Form/Task.tpl"}</td></tr> |
39 |
| -</table> |
| 37 | + <table class="form-layout"> |
| 38 | + <tr><td>{include file="CRM/Contact/Form/Task.tpl"}</td></tr> |
| 39 | + </table> |
40 | 40 | {/if}
|
41 | 41 | <div class="crm-submit-buttons">
|
42 |
| -{include file="CRM/common/formButtons.tpl" location="bottom"} |
| 42 | + {include file="CRM/common/formButtons.tpl" location="bottom"} |
43 | 43 | </div>
|
| 44 | + |
| 45 | +{literal} |
| 46 | + <script type="text/javascript"> |
| 47 | + CRM.$(function($) { |
| 48 | + // Refresh the contact summary (No other method seems to work properly (eg.CRM.tabHeader.resetTab('#tab_summary') does not display correctly) |
| 49 | + $('#crm-main-content-wrapper').on('crmPopupFormSuccess', function() { |
| 50 | + window.location.reload(); |
| 51 | + }); |
| 52 | + }); |
| 53 | + </script> |
| 54 | +{/literal} |
0 commit comments