## {i18n}Document Types{/i18n}

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

{i18n}To start the process of creating a new document type, please enter a name for the type below.{/i18n}

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

{i18n}Existing document types{/i18n}

{i18n}Select a document type from the list below to change its details, or use the enable/disable buttons to change its availability state.{/i18n}

{i18n}Document Type{/i18n} | {i18n}Associated Fieldsets{/i18n} | {i18n}Edit{/i18n} | {i18n}Disable/Enable{/i18n} | {i18n}Delete{/i18n}
--- | --- | --- | --- | ---

{foreach from=$document_types item=oDocumentType}

{ $oDocumentType->getName() }

{assign var="aFieldsets" value=$oDocumentType->getFieldsets()} {if $aFieldsets} {foreach from=$aFieldsets item=oFieldset name=fieldsets} {capture assign=fsid}{$oFieldset->getId()}{/capture} {$oFieldset->getName()}{if (!$smarty.foreach.fieldsets.last)}, {/if} {/foreach} {else} — {/if}

{i18n}Edit{/i18n}

{if $oDocumentType->getDisabled()} {i18n}Enable{/i18n} {else} {i18n}Disable{/i18n} {/if}

{if $oDocumentType->checkDelete($associated_types, $oDocumentType->getId())} {i18n}Delete{/i18n} {else} {/if}

{/foreach}