<!-- 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 country{/t}</legend>

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

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

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

{if count($rows) > 0}
<table cellspacing="0">
    <caption><em>{t}Countries{/t}</em></caption>
    <thead>
        <tr>
            <th> {t}Country{/t} </th>
            <th> {t}Country code{/t} </th>
            <th> {t}Actions{/t} </th>
        </tr>
    </thead>
    <tbody>
        {section name=curr loop=$rows}
        <tr>
            <td> {$rows[curr].ctr_name|wash} </td>
            <td> {$rows[curr].ctr_code|wash} </td>
            <td class="actions"> <a href="{$FORM_ACTION}?id={$rows[curr].ctr_id}&amp;action={$smarty.const.ACTION_DELETE}">{t}Delete{/t}</a> </td>
        </tr>
        {/section}
    </tbody>
</table>
{/if}

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