<td colspan="2" align="center">
    <h2>{$params_tpl['title']}{$params_tpl['help']}</h2>
    <div style="display: flex; flex-direction: column;">{$tpl_types['field_parse']}</div>
    <div style="display: flex; flex-direction: column;">{$tpl_types['field_result']}</div>
    <div style="display: flex; flex-direction: column;">{$tpl_types['give_value_begin']}</div>
    <div style="display: flex; flex-direction: column;">{$tpl_types['give_value_end']}</div>
</td>

<script>
    (function() {
        let begin = '{$construct_params['params'][$tpl_num]['give_value_begin']}';
        $('textarea[name="calc_params[{$tpl_num}][give_value_begin]"]').val(begin);

        let end = '{$construct_params['params'][$tpl_num]['give_value_end']}';
        $('textarea[name="calc_params[{$tpl_num}][give_value_end]"]').val(end);
    })();
</script>
