{extends file="admin-layout.tpl"} {block name="page-title"}{intl l='Edit a document'}{/block} {block name="check-access"}update{/block} {block name="main-content"}
{loop type="document" name="document_edit" source="{$documentType}" id="{$documentId}" backend_context="1" lang="$edit_language_id" visible="*" with_prev_next_info="true"} {hook name="document-edit.top" document_id=$documentId}
{intl l='Edit document "%name"' name="{$TITLE}"}
{form name="$formId"}
{include file = "includes/inner-form-toolbar.html" hide_submit_buttons = false page_url = "{url path="/admin/document/type/%document/%id/update" document=$documentType id=$ID}" close_url = "{url path="{$redirectUrl}" current_tab="documents" noamp=1}" } {form_hidden_fields} {render_form_field field="success_url" value="{url path="/admin/document/type/%document/%id/update" document=$documentType id=$ID}"} {render_form_field field="locale" value="$edit_language_locale"} {if $form_error}
{$form_error_message}
{/if}

{intl l="Document informations"}

{$TITLE}

{render_form_field field="file"} {form_field field='visible'}
{/form_field} {render_form_field field="title" value=$TITLE} {render_form_field field="chapo" value=$CHAPO} {render_form_field field="postscriptum" value=$POSTSCRIPTUM}
{render_form_field field="description" value=$DESCRIPTION extra_class="wysiwyg"}
{include file = "includes/inner-form-toolbar.html" hide_submit_buttons = false hide_flags = true page_url = "{url path="/admin/document/type/%document/%id/update" document=$documentType id=$ID}" close_url = "{url path="{$redirectUrl}" current_tab="documents"}" }
{/form}
{hook name="document-edit.bottom" document_id=$documentId} {/loop} {elseloop rel="document_edit"}
{intl l="Sorry, document ID=%id was not found." id={$documentId}}
{/elseloop}
{/block} {block name="javascript-last-call"} {hook name="document.edit-js" location="document-edit-js" document_id={$documentId} } {hook name="wysiwyg.js" location="wysiwyg-document-edit-js" } {/block}