X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FContribute%2FForm%2FSoftCredit.tpl;h=91eb2b773058398a9ff26d4097c08cf5ea154283;hb=6a00ff0d395476086d4c4b4fe3ba48672280dd1a;hp=53ac6fadc47a3ae766c544d39263b3f812c4ffd7;hpb=3ad735b477e8ef80caf5b68954eb678ac474c974;p=civicrm-core.git diff --git a/templates/CRM/Contribute/Form/SoftCredit.tpl b/templates/CRM/Contribute/Form/SoftCredit.tpl index 53ac6fadc4..91eb2b7730 100644 --- a/templates/CRM/Contribute/Form/SoftCredit.tpl +++ b/templates/CRM/Contribute/Form/SoftCredit.tpl @@ -1,6 +1,6 @@ {* +--------------------------------------------------------------------+ - | CiviCRM version 4.3 | + | CiviCRM version 4.4 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2013 | +--------------------------------------------------------------------+ @@ -24,25 +24,132 @@ +--------------------------------------------------------------------+ *} {* template for adding form elements for soft credit form*} - +{if $honor_block_is_active} + {crmRegion name="contribution-soft-credit-block"} + {$honor_block_title} +
+ {$honor_block_text} +
+ {if $form.soft_credit_type_id.html} +
+
+ {$form.soft_credit_type_id.html} + ({ts}clear{/ts}) +
{ts}Select an option to reveal honoree information fields.{/ts}
+
+
+ {/if} + {/crmRegion} +{else} -{section name='i' start=1 loop=$rowCount} -{assign var='rowNumber' value=$smarty.section.i.index} - - + {section name='i' start=1 loop=$rowCount} + {assign var='rowNumber' value=$smarty.section.i.index} + + + + + + + {/section} + + - -{/section} - - - - -
{ts}Soft Credit To{/ts}
{ts}Select Contact{/ts} + {assign var='createNewStatus' value=true} + {if !$showCreateNew and $rowNumber lt $showSoftCreditRow} + {assign var='createNewStatus' value=false} + {/if} + {include file="CRM/Contact/Form/NewContact.tpl" noLabel=true skipBreak=true blockNo=$rowNumber + prefix="soft_credit_" showNewSelect=$createNewStatus focus=false} + + {$form.soft_credit_amount.$rowNumber.label} {$form.soft_credit_amount.$rowNumber.html|crmAddClass:eight} + + {$form.soft_credit_type.$rowNumber.label} {$form.soft_credit_type.$rowNumber.html|crmAddClass:eight} +  {ts}delete{/ts} +
- {include file="CRM/Contact/Form/NewContact.tpl" noLabel=true skipBreak=true blockNo=$rowNumber - prefix="soft_credit_"} + {ts}add another soft credit{/ts} - {$form.soft_credit_amount.$rowNumber.label} {$form.soft_credit_amount.$rowNumber.html|crmAddClass:eight} -
- {ts}add another soft credit{/ts} -
\ No newline at end of file + +{/if} +{literal} + +{/literal}