<!-- BEGIN {$smarty.template} -->

<form action="{$FORM_ACTION}" method="POST">
<input type="hidden" name="action" value="{$smarty.const.ACTION_ADD}">

<table class="searchtable" cellspacing="0">
  <tr>
    <th colspan="2"> {t}Add a new currency{/t} </th>
  </tr>
  <tr>
    <td>{t}Currency{/t}: </td>
    <td>
      <input type="text" class="tinput" name="curr_name" value="{$curr_name|wash}" size="30" maxlength="30">
      {t}Decimals{/t}:
      <select name="curr_decimals">
	{html_options options=$curr_decimals_options selected=$curr_decimals}
      </select>
      <input type="submit" name="submit" value="{t}Add{/t}">
    </td>
  </tr>
</table>

</form>

{if count($rows) > 0}

<table class="stdtable" cellspacing="0">
  <tr>
    <td class="header" colspan="3"> {t}Currencies{/t} </td>
  </tr>
  <tr>
    <th> {t}Currency{/t} </th>
    <th class="number"> {t}Decimals{/t} </th>
    <th> {t}Actions{/t} </th>
  </tr>

  {section name=curr loop=$rows}
  <tr class="{cycle values="odd,even"}">
    <td> {$rows[curr].curr_name|wash} </td>
    <td class="number"> {$rows[curr].curr_decimals|wash} </td>
    <td class="actions"> <a href="{$FORM_ACTION}?id={$rows[curr].curr_id}&amp;action={$smarty.const.ACTION_DELETE}">{t}Delete{/t}</a> </td>
  </tr>
  {/section}

</table>

{/if}

<!-- END {$smarty.template} -->
