2019-02-18 12:59:46 +00:00
|
|
|
{if $form.soft_credit_name}
|
|
|
|
<div class="crm-softcredit-form-block-soft_credit_sort_name">
|
|
|
|
{$form.soft_credit_name.label}<br>
|
|
|
|
{$form.soft_credit_name.html}
|
|
|
|
</div>
|
|
|
|
{/if}
|
2018-12-26 00:52:21 +00:00
|
|
|
{if $contributionSoftGroupTree}
|
|
|
|
<div class="softcredit_custom_groups">
|
|
|
|
<br>
|
|
|
|
{include file="CRM/Custom/Form/Search.tpl" groupTree=$contributionSoftGroupTree showHideLinks=false}
|
|
|
|
</div>
|
2019-02-18 12:59:46 +00:00
|
|
|
{/if}
|
|
|
|
{if $contributionSoftGroupTree OR $form.soft_credit_name}
|
2018-12-26 00:52:21 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
{literal}
|
|
|
|
CRM.$(function($) {
|
2019-02-18 12:59:46 +00:00
|
|
|
$('div#contribution_soft_credit_type_wrapper').append($('div.crm-softcredit-form-block-soft_credit_sort_name'));
|
2018-12-26 00:52:21 +00:00
|
|
|
$('div#contribution_soft_credit_type_wrapper').append($('div.softcredit_custom_groups'));
|
2019-03-26 21:51:17 +00:00
|
|
|
|
|
|
|
hideShowInMemoryOf();
|
|
|
|
$('select#contribution_or_softcredits').change(hideShowInMemoryOf);
|
|
|
|
|
|
|
|
function hideShowInMemoryOf() {
|
|
|
|
let softOption = $('select#contribution_or_softcredits').val();
|
|
|
|
if (softOption == 'only_contribs') {
|
|
|
|
$('div#contribution_soft_credit_type_wrapper').show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-26 00:52:21 +00:00
|
|
|
});
|
|
|
|
{/literal}
|
|
|
|
</script>
|
|
|
|
{/if}
|