Merge pull request #22449 from mattwire/phpnotices
[civicrm-core.git] / templates / CRM / common / TrackingFields.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 {if $trackingFields and ! empty($trackingFields)}
11 {literal}
12 <script type="text/javascript">
13 CRM.$(function($) {
14 {/literal}
15 {foreach from=$trackingFields key=trackingFieldName item=dontCare}
16 $("#{$trackingFieldName}").parent().parent().hide( );
17 {/foreach}
18 {literal}
19 }
20 );
21 </script>
22 {/literal}
23 {/if}