{** * templates/submission/layout/galleyForm.tpl * * Copyright (c) 2013-2015 Simon Fraser University Library * Copyright (c) 2003-2015 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Form to add/edit a galley. *} {strip} {assign var="pageTitle" value="submission.galley"} {include file="common/header.tpl"} {/strip}

{if $galleyId}{translate key="submission.layout.editGalley"}{else}{translate key="submission.layout.addGalley"}{/if}


{include file="common/formErrors.tpl"}

{translate key="submission.layout.galleyFileData"}

{if $enablePublicGalleyId} {/if}{* $enablePublicGalleyId *} {if $galley->getRemoteURL()} {else} {/if}
{fieldLabel name="label" required="true" key="submission.layout.galleyLabel"}
  {translate key="submission.layout.galleyLabelInstructions"}
{fieldLabel name="publicGalleyId" key="submission.layout.publicGalleyId"}
{fieldLabel name="galleyLocale" required="true" key="common.language"}
{fieldLabel name="remoteURL" required="true" key="submission.layout.galleyRemoteURL"}
{translate key="common.fileName"} getFileId()}">{$galley->getFileName()|escape}
{translate key="common.originalFileName"} {$galley->getOriginalFileName()|escape}
{translate key="common.fileType"} {$galley->getFileType()|escape}
{translate key="common.fileSize"} {$galley->getNiceFileSize()}
{translate key="common.dateUploaded"} {$galley->getDateUploaded()|date_format:$dateFormatShort}
{if $galleyId}{fieldLabel name="galleyFile" key="layoutEditor.galley.replaceGalley"}{else}{fieldLabel name="galleyFile" key="common.upload"}{/if}   {translate key="form.saveToUpload"}

{foreach from=$pubIdPlugins item=pubIdPlugin} {assign var=pubIdMetadataFile value=$pubIdPlugin->getPubIdMetadataFile()} {include file="$pubIdMetadataFile" pubObject=$galley} {/foreach} {call_hook name="Templates::Submission::Layout::GalleyForm::AdditionalMetadata"} {if $galley->isHTMLGalley()}

{translate key="submission.layout.galleyHTMLData"}

{translate key="submission.layout.galleyStylesheet"}

{assign var=styleFile value=$galley->getStyleFile()} {if $styleFile} {else} {/if}
{translate key="common.fileName"} getFileId()}">{$styleFile->getFileName()|escape}
{translate key="common.fileSize"} {$styleFile->getNiceFileSize()}
{translate key="common.dateUploaded"} {$styleFile->getDateUploaded()|date_format:$dateFormatShort}
    {translate key="submission.layout.deleteGalleyStylesheet"}
{translate key="submission.layout.noStyleFile"}
{fieldLabel name="styleFile" key="common.upload"}   {translate key="form.saveToUpload"}

{translate key="submission.layout.galleyImages"}

{foreach name=images from=$galley->getImageFiles() item=imageFile} {foreachelse} {/foreach}
 
{translate key="common.fileName"} {translate key="common.originalFileName"} {translate key="common.fileSize"} {translate key="common.dateUploaded"} {translate key="common.action"}
 
getFileId()}">{$imageFile->getFileName()|escape} {$imageFile->getOriginalFileName()|escape} {$imageFile->getNiceFileSize()} {$imageFile->getDateUploaded()|date_format:$dateFormatShort} getArticleId()|to_array:$galley->getId():$imageFile->getFileId():$imageFile->getRevision()}', '{translate|escape:"jsparam" key="submission.layout.confirmDeleteGalleyImage"}')" />
 
{translate key="submission.layout.galleyNoImages"}
 
 
{/if}

{translate key="common.requiredField"}

{include file="common/footer.tpl"}