## {i18n}Document Fieldsets{/i18n}

{i18n}Collections of fields are associated into fieldsets. These represent a set of related information which can be associated with a document and thus comprise part of the document's metadata.{/i18n}

{ if $fieldsets}

### {i18n}Existing document fieldsets{/i18n}

{i18n}Name{/i18n} | {i18n}Generic{/i18n} | {i18n}System{/i18n} | {i18n}Fields{/i18n} | {i18n}Document Types{/i18n} | {i18n}Edit{/i18n} | {i18n}Delete{/i18n}
--- | --- | --- | --- | --- | --- | ---
{foreach from=$fieldsets item=oFieldset}

{ $oFieldset->getName() }

{if ($oFieldset->getIsGeneric())} {i18n}Yes{/i18n} {else} {i18n}No{/i18n} {/if}

{if ($oFieldset->getIsSystem())} {i18n}Yes{/i18n} {else} {i18n}No{/i18n} {/if}

{assign var="aFields" value=$oFieldset->getFields()} {if $aFields} {foreach from=$aFields item=oField name=fields} {$oField->getName()}{if (!$smarty.foreach.fields.last)}
{/if} {/foreach} {else} — {/if}

{$context->getTypesForFieldset($oFieldset)}

{i18n}Edit{/i18n}

{i18n}Delete{/i18n}

{/foreach}

{/if}

{i18n}Create a new document fieldset{/i18n}

{foreach item=oWidget from=$creation_fields} {$oWidget->render()} {/foreach}