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

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

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

{if count($rows) > 0}
<table class="stdtable" cellspacing="0">
  <caption><em>{t}Project categories{/t}</em></caption>
  <tr>
    <th> {t}Category{/t} </th>
    <th> {t}Actions{/t} </th>
  </tr>
  {section name=prjcat loop=$rows}
  <tr class="{cycle values="odd,even"}">
    <td> {$rows[prjcat].prjcat_title|wash} </td>
    <td class="actions"> <a href="prjcats.php?id={$rows[prjcat].prjcat_id}&amp;action={$smarty.const.ACTION_DELETE}">{t}Delete{/t}</a> </td>
  </tr>
  {/section}
</table>
{/if}

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