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

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

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

{if count($rows) > 0}
<table cellspacing="0">
    <caption><em>{t}Person categories{/t}</em></caption>
    <thead>
        <tr>
            <th> {t}Category{/t} </th>
            <th> {t}Actions{/t} </th>
        </tr>
    </thead>
    <tbody>
        {section name=pecat loop=$rows}
        <tr>
            <td> {$rows[pecat].pecat_title|wash} </td>
            <td class="actions"> <a href="pecats.php?id={$rows[pecat].pecat_id}&amp;action={$smarty.const.ACTION_DELETE}">{t}Delete{/t}</a> </td>
        </tr>
        {/section}
    </tbody>
</table>
{/if}

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