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

    <label for="jobcat_title">{t}Category{/t}:</label>
    <input type="text" class="tinput" id="jobcat_title" name="jobcat_title" value="{$jobcat_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}Job categories{/t}</em></caption>
    <thead>
        <tr>
            <th> {t}Category{/t} </th>
            <th> {t}Actions{/t} </th>
        </tr>
    </thead>
    <tbody>
        {section name=jobcat loop=$rows}
        <tr>
            <td> {$rows[jobcat].jcat_title|wash} </td>
            <td class="actions"> <a href="jobcats.php?id={$rows[jobcat].jcat_id}&amp;action={$smarty.const.ACTION_DELETE}">{t}Delete{/t}</a> </td>
        </tr>
        {/section}
    </tbody>
</table>
{/if}

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