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

    <label for="prjstat_title">{t}Project status{/t}:</label>
    <input type="text" class="tinput" id="prjstat_title" name="prjstat_title" value="{$prjstat_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}Project status{/t}</em></caption>
    <thead>
        <tr>
            <th> {t}Project status{/t} </th>
            <th> {t}Actions{/t} </th>
        </tr>
    </thead>
    <tbody>
        {section name=prjstat loop=$rows}
        <tr>
            <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}
    </tbody>
</table>
{/if}

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