<form id="exchange_rate_{$exchange_rate_my_id}" style="" class=""
    action=""  method="POST" enctype="multipart/form-data"
    onsubmit="return false;">
    <table class="dashed">
        <thead>
            <tr>
                <th>{$i.masterdatamanagement_currency}</th>
                <th>{$i.masterdatamanagement_exchange_rate}</th>
            </tr>
        </thead>
        <tbody>
            {foreach item="item" from=$exchange_rate_currencies}
                {assign var="exchange_name" value="portlet_exchange_rate_`$item->id`"}
                <tr>
                    <td>{$item->name} [{$item->abbreviation}]</td>
                    <td>
                        {include file='r/table_input.tpl' name={$exchange_name} class="numberi18n calculator" default="{islongfloat value=$item->exchange_rate}"}
                        {if $item->online_url}
                            <a onclick="$('#exchange_rate_{$exchange_rate_my_id}').css('opacity', '0.5'); openx('portlet', 'exchange_rate', 'online_update', '{$item->id}', '{$exchange_rate_my_id}');" class="dialog_make_text_btn ui-corner-all">
                                <span class="dialog_make_btn16 update ui-corner-all"></span>
                                {$i.basic_update}
                            </a>
                        {/if}
                    </td>
                </tr>
            {/foreach}
            <tr>
                <td colspan="2">
                    <a onclick="$('#exchange_rate_{$exchange_rate_my_id}').css('opacity', '0.5'); openx('portlet', 'exchange_rate', 'save', xajax.getFormValues('exchange_rate_{$exchange_rate_my_id}'), '{$exchange_rate_my_id}');" class="dialog_make_text_btn ui-corner-all">
                        <span class="dialog_make_btn16 ok ui-corner-all"></span>
                        {$i.basic_save}
                    </a>
                </td>
            </tr>
        </tbody>
    </table>
    <p style="text-align:center;">
        <small>
            {if isset($global_currency_item)}
                {sprintf($i.masterdatamanagement_exchange_rate_in, $global_currency_item->name)}
            {else}
                {sprintf($i.masterdatamanagement_exchange_rate_in, $i.masterdatamanagement_global_currency)}
            {/if}
        </small>
    </p>
</form>