From fd8969cccc05585015b6ee7ffaf74f6e2d096e63 Mon Sep 17 00:00:00 2001 From: Deepak Srivastava Date: Tue, 4 Mar 2014 17:56:29 +0530 Subject: [PATCH] soft credit filter form layout fixes --- .../CRM/Contribute/Form/Search/Common.tpl | 31 +++++++++++++------ 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/templates/CRM/Contribute/Form/Search/Common.tpl b/templates/CRM/Contribute/Form/Search/Common.tpl index f0f44724fb..382ff3ea0b 100644 --- a/templates/CRM/Contribute/Form/Search/Common.tpl +++ b/templates/CRM/Contribute/Form/Search/Common.tpl @@ -53,6 +53,18 @@ {$form.contribution_transaction_id.html} + + + {$form.contribution_or_softcredits.label}
+ {$form.contribution_or_softcredits.html} + + +
+ {$form.contribution_soft_credit_type_id.label}
+ {$form.contribution_soft_credit_type_id.html|crmAddClass:twenty} +
+ + @@ -127,16 +139,6 @@ {$form.contribution_pcp_display_in_roll.html} - - - -
- {$form.contribution_or_softcredits.label}
- {$form.contribution_or_softcredits.html} -
- {$form.contribution_soft_credit_type_id.label}
- {$form.contribution_soft_credit_type_id.html|crmAddClass:twenty} -
@@ -177,5 +179,14 @@ campaignTrClass='' campaignTdClass=''} cj('#contribution_check_number').val(''); } }).change(); + cj('#contribution_or_softcredits').change(function() { + if (cj(this).val() == 'only_contribs') { + cj('#contribution_soft_credit_type_wrapper').hide(); + cj('#contribution_soft_credit_type_id').val(''); + } + else { + cj('#contribution_soft_credit_type_wrapper').show(); + } + }).change(); {/literal} -- 2.25.1