2018-10-23 22:16:53 +00:00
|
|
|
<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>
|
2018-11-01 17:21:40 +00:00
|
|
|
<div class="clear"></div>
|
|
|
|
<div class="content designation_note-div">{$form.designation_note.html}</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
2018-10-23 22:16:53 +00:00
|
|
|
{literal}
|
|
|
|
<script type="text/javascript">
|
|
|
|
CRM.$(function($) {
|
2018-10-29 02:31:34 +00:00
|
|
|
$('div#priceset:first').after($('div.ft_override_designation-section'));
|
2018-11-01 17:21:40 +00:00
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|
2018-10-23 22:16:53 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{/literal}
|