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

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

  <fieldset class="search">
    <legend>{t}Add a new currency{/t}</legend>

    <label for="curr_name">{t}Currency{/t}:</label>
    <input type="text" class="tinput" id="curr_name" name="curr_name" value="{$curr_name|wash}" size="30" maxlength="30">
    <br>

    <label for="curr_decimals">{t}Decimals{/t}:</label>
    <select id="curr_decimals" name="curr_decimals">
      {html_options options=$curr_decimals_options selected=$curr_decimals}
    </select>
    <br>

    <input type="submit" name="submit" value="{t}Add{/t}">
  </fieldset>
</form>

{if count($rows) > 0}
<table class="stdtable" cellspacing="0">
  <caption><em>{t}Currencies{/t}</em></caption>
  <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} -->
