<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Fieldset{/i18n}:<br />{$oFieldset->getName()}</h2>

<h3>{i18n}Fieldset properties{/i18n}</h3>
<form action="{$smarty.server.PHP_SELF}" method="POST">
<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}">
<input type="hidden" name="action" value="editobject">
<table class="prettysw" cellpadding="0" cellspacing="0">
  <tr>
    <th>{i18n}Name{/i18n}</th>
    <td><input type="textbox" name="name" value="{$oFieldset->getName()}"></td>
  </tr>
  <tr>
    <th>{i18n}Namespace{/i18n}</th>
    <td><input type="textbox" name="namespace" value="{$oFieldset->getNamespace()}"></td>
  </tr>
</table>
<input type="submit" name="submit" value="{i18n}Change{/i18n}" />
</form>

<h3>{i18n}Fieldset members{/i18n}</h3>

{if $oFieldset->getFields() }
<h4>{i18n}Existing members{/i18n}</h4>
<form action="{$smarty.server.PHP_SELF}" method="POST">
<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}">
<ul>
{foreach from=$oFieldset->getFields() item=oField}
  <li><label><input type="checkbox"
name="fieldsetids[]"
value="{$oField->getId()}">{$oField->getName()}</label></li>
{/foreach}
</ul>
<input type="submit" name="submit" value="{i18n}Remove fields{/i18n}" />
</form>
{/if}

<h4>{i18n}Add a new field{/i18n}</h4>

<form action="{$smarty.server.PHP_SELF}" method="POST">
<input type="hidden" name="fFieldsetId" value="{$oFieldset->getId()}">
<input type="hidden" name="action" value="newfield">
<table class="prettysw" cellpadding="0" cellspacing="0">
  <tr>
    <th>{i18n}Name{/i18n}</th>
    <td><input type="textbox" name="name" />
  </tr>
  <tr>
    <th>{i18n}Type{/i18n}</th>
    <td>
<select name="type">
<option value="normal">{i18n}Normal{/i18n}</option>
<option value="lookup">{i18n}Lookup{/i18n}</option>
<option value="tree">{i18n}Tree{/i18n}</option>
</select>
    </td>
  </tr>
</table>
<input type="submit" name="submit" value="{i18n}Add field{/i18n}" />
</form>
