Allow descriptions for payment fields (add via paymentFieldsMetaData 'description'
[civicrm-core.git] / templates / CRM / Core / BillingBlock.tpl
index 73050a5e3737112ebe54716f6cf72fe820abe03b..3e15fce070d95c72f9456e777c72938bd7436c2a 100644 (file)
@@ -41,7 +41,9 @@
             </div>
             <div class="content">
                 {$form.$paymentField.html}
-              {if $paymentField == 'cvv2'}{* @todo move to form assignment*}
+              {if $paymentFieldsMetadata.$name.description}
+                <div class="description">{$paymentFieldsMetadata.$name.description}</div>
+              {elseif $paymentField == 'cvv2'}{* @todo move to form assignment*}
                 <span class="cvv2-icon" title="{ts}Usually the last 3-4 digits in the signature area on the back of the card.{/ts}"> </span>
               {/if}
               {if $paymentField == 'credit_card_type'}