CRM-16189, added link on contribution edit form to record payment for pending pay...
[civicrm-core.git] / templates / CRM / Contribute / Form / AdditionalPayment.tpl
index 7f210de946fd1cca78d35b440670d07cf8b4a53d..d302860ac70aa52239e1ab58d8f7ddab7443fc51 100644 (file)
   </div>
   <table class="form-layout-compressed">
     <tr>
-      <td class="font-size12pt label"><strong>{ts}Participant{/ts}</strong></td><td class="font-size12pt"><strong>{$displayName}</strong></td>
+      <td class="font-size12pt label"><strong>{if $component eq 'event'}{ts}Participant{/ts}{else}{ts}Contact{/ts}{/if}</strong></td><td class="font-size12pt"><strong>{$displayName}</strong></td>
     </tr>
     {if $contributionMode}
       <tr class="crm-payment-form-block-payment_processor_id"><td class="label nowrap">{$form.payment_processor_id.label}<span class="crm-marker"> * </span></td><td>{$form.payment_processor_id.html}</td></tr>
     {/if}
-    <tr>
-      <td class='label'>{ts}Event{/ts}</td><td>{$eventName}</td>
-    </tr>
+    {if $eventName}
+      <tr>
+        <td class='label'>{ts}Event{/ts}</td><td>{$eventName}</td>
+      </tr>
+    {/if}
     <tr class="crm-payment-form-block-total_amount">
       <td class="label">{$form.total_amount.label}</td>
       <td>