Convert Grant form to standard customData template
authorMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Mon, 7 Jan 2019 17:55:27 +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/Grant/Form/Grant.tpl

index 7509533fd864c4aa17c30fb5989518196e6984ef..a3385f6929edd5a93d52c82bc5d2709e77df5089 100644 (file)
       </tr>
   </table>
 
-        <div id="customData" class="crm-grant-form-block-custom_data"></div>
-        {*include custom data js file*}
-        {include file="CRM/common/customData.tpl"}
+  {include file="CRM/common/customDataBlock.tpl"}
 
-{literal}
-<script type="text/javascript">
-    CRM.$(function($) {
-        {/literal}
-        CRM.buildCustomData( '{$customDataType}' );
-        {if $customDataSubType}
-        CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
-        {/if}
-        {literal}
-    });
-
-</script>
-{/literal}
-
- <div class="crm-grant-form-block-attachment">
-     {include file="CRM/Form/attachment.tpl"}
- </div>
+  <div class="crm-grant-form-block-attachment">
+    {include file="CRM/Form/attachment.tpl"}
+  </div>
 
    {/if}
  <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>