<h2>{i18n}Existing Fieldsets{/i18n}</h2>
<table class="pretty" cellspacing="0" cellpadding="0" border="0">
   <thead>
      <tr>
        <th>{i18n}Human Name{/i18n}</th>
        <th>{i18n}Namespace{/i18n}</th>
        <th colspan="2">{i18n}Manage{/i18n}</th>
      </tr>
   </thead>
   { foreach item=oFieldSet from=$fieldsets }
   <tr class="{cycle values="odd,even"}">
     <td>
     { $oFieldSet->getName() }
     </td>
     <td>
     { $oFieldSet->getNamespace() }
     </td>
     
     <td>
       <a href="{addQS}action=editFieldset&id={$oFieldSet->getId()}{/addQS}">{i18n}Edit{/i18n}</a>
     </td>
     <td>
       {if $oFieldSet->getMandatory() == false}
       <a href="{addQS}action=deleteFieldset&id={$oFieldSet->getId()}{/addQS}">{i18n}Delete{/i18n}</a>
       {else}
       {i18n}Built-in set.{/i18n}
       {/if}
     </td>
    
   </tr>
   { /foreach }
</table>

<h2>{i18n}Create a new Fieldset{/i18n}</h2>

<form action="{$smarty.server.PHP_SELF}" method="POST">
<input type="hidden" name="action" value="newFieldset">
<table>
<tr>
<td>{i18n}Name{/i18n}:</td>
<td><input type="text" name="name" value=""></td>
</tr>
<tr>
<td>{i18n}Namespace{/i18n}:</td>
<td><input type="text" name="namespace" value="http://knowledgetree.jamwarehouse.com/fieldsets/custom/"></td>
</tr>
<tr>
<td colspan="2" align="right">
<input type="submit" name="submit" value="{i18n}Create Fieldset{/i18n}">
</td>
</tr>
</table>
</form>
