Convert Manage Event Info form to standard customData template
authorMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Mon, 7 Jan 2019 17:55:10 +0000 (17:55 +0000)
committerMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Mon, 7 Jan 2019 22:11:51 +0000 (22:11 +0000)
templates/CRM/Event/Form/ManageEvent/EventInfo.tpl

index c414ca59cbcf88ba45cbe5e8a990effe0eff7140..212ecb31e2dbea8f889a2c4966e0a9e27285c1bd 100644 (file)
       <td>&nbsp;</td>
     </tr>
   </table>
-  <div id="customData"></div>
-  {*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}
+  {include file="CRM/common/customDataBlock.tpl"}
   <div class="crm-submit-buttons">
     {include file="CRM/common/formButtons.tpl" location="bottom"}
   </div>