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

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

<table class="searchtable" cellspacing="0">
  <tr>
    <th colspan="2"> {t}Add a new project status{/t} </th>
  </tr>
  <tr>
    <td>{t}Project status{/t}: </td>
    <td>
      <input type="text" class="tinput" name="prjstat_title" value="{$prjstat_title|wash}" size="30" maxlength="30">
      <input type="submit" name="submit" value="{t}Add{/t}">
    </td>
  </tr>
</table>

</form>

{if count($rows) > 0}

<table class="stdtable" cellspacing="0">
  <tr>
    <td class="header" colspan="2"> {t}Project status{/t} </td>
  </tr>
  <tr>
    <th> {t}Project status{/t} </th>
    <th> {t}Actions{/t} </th>
  </tr>

  {section name=prjstat loop=$rows}
  <tr class="{cycle values="odd,even"}">
    <td> {$rows[prjstat].prjstat_title|wash} </td>
    <td class="actions"> <a href="{$FORM_ACTION}?id={$rows[prjstat].prjstat_id}&amp;action={$smarty.const.ACTION_DELETE}">{t}Delete{/t}</a> </td>
  </tr>
  {/section}

</table>
{/if}

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