com.megaphonetech.ftoverride/templates/CRM/Contribute/Form/ContributionPage/common.tpl

24 lines
853 B
Smarty
Raw Normal View History

2018-10-29 02:31:34 +00:00
{if $showElement}
2018-10-23 22:16:53 +00:00
<table class="ft_override_designation-block">
<tr class="crm-contribution-contributionpage-settings-form-block-ft_override_designation">
<td scope="row" class="label" width="20%">{$form.designation.label}</td>
<td>{$form.designation.html}</td>
</tr>
</table>
{literal}
<script type="text/javascript">
CRM.$(function($) {
$('tr.crm-contribution-contributionpage-settings-form-block-financial_type_id').after($('table.ft_override_designation-block tr'));
$('#designation').change(function(e) {
var data = $('#designation').select2('data');
var selectedDesignations = new Array();
$.each(data, function( index, value ) {
selectedDesignations.push(value.id);
});
$('input[name="hidden_designation"]').val(selectedDesignations.join(","));
});
2018-10-23 22:16:53 +00:00
});
</script>
{/literal}
2018-10-29 02:31:34 +00:00
{/if}