com.megaphonetech.ftoverride/templates/CRM/Contribute/Form/ContributionMain/common.tpl
2018-11-01 22:51:40 +05:30

28 lines
895 B
Smarty

<div class="crm-public-form-item crm-section ft_override_designation-section">
<div class="label">{$form.designation.label}</div>
<div class="content">{$form.designation.html}</div>
<div class="clear"></div>
<div class="content designation_note-div">{$form.designation_note.html}</div>
<div class="clear"></div>
</div>
{literal}
<script type="text/javascript">
CRM.$(function($) {
$('div#priceset:first').after($('div.ft_override_designation-section'));
hideShowDesignation();
$('#designation').change(hideShowDesignation);
function hideShowDesignation() {
var fT = $('#designation').val();
if (fT == 'other_financial_type') {
$('div.ft_override_designation-section div.designation_note-div').show();
}
else {
$('div.ft_override_designation-section div.designation_note-div').hide();
}
}
});
</script>
{/literal}