$SCTDefaultValue = CRM_Core_OptionGroup::getValue('soft_credit_type', 'Gift', 'name');
}
$form->addElement('hidden', 'sct_default_id', $SCTDefaultValue, array('id' => 'sct_default_id'));
+ }
+ elseif ($fieldName == 'contribution_soft_credit_pcp_id') {
CRM_Contribute_Form_SoftCredit::addPCPFields($form, "[$rowNumber]");
}
elseif ($fieldName == 'currency') {
{elseif $n eq 'soft_credit_type'}
<div class="compressed crm-grid-cell">
{$form.soft_credit_type.$rowNumber.html}
- {$form.pcp_made_through_id.$rowNumber.label} {$form.pcp_made_through_id.$rowNumber.html}{$form.pcp_made_through.$rowNumber.html}
- {$form.pcp_display_in_roll.$rowNumber.label} {$form.pcp_display_in_roll.$rowNumber.html}
- {$form.pcp_roll_nickname.$rowNumber.label} {$form.pcp_roll_nickname.$rowNumber.html}
- {$form.pcp_personal_note.$rowNumber.label} {$form.pcp_personal_note.$rowNumber.html}
</div>
+ {elseif $n eq 'contribution_soft_credit_pcp_id'}
+ <div>{$form.pcp_made_through_id.$rowNumber.html}{$form.pcp_made_through.$rowNumber.html}</div>
+ <div>{$form.pcp_display_in_roll.$rowNumber.label} {$form.pcp_display_in_roll.$rowNumber.html}</div>
+ <div>{$form.pcp_roll_nickname.$rowNumber.label} {$form.pcp_roll_nickname.$rowNumber.html}</div>
+ <div>{$form.pcp_personal_note.$rowNumber.label} {$form.pcp_personal_note.$rowNumber.html}</div>
{elseif in_array( $fields.$n.html_type, array('Radio', 'CheckBox'))}
<div class="compressed crm-grid-cell"> {$form.field.$rowNumber.$n.html}</div>
{elseif $n eq 'total_amount'}