{** * templates/sectionEditor/submission/layout.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. * * Subtemplate defining the layout editing table. * *} {assign var=layoutSignoff value=$submission->getSignoff('SIGNOFF_LAYOUT')} {assign var=layoutFile value=$submission->getFileBySignoffType('SIGNOFF_LAYOUT')} {assign var=layoutEditor value=$submission->getUserBySignoffType('SIGNOFF_LAYOUT')}

{translate key="submission.layout"}

{if $useLayoutEditors}
{if $layoutSignoff->getUserId()}{/if}
{translate key="user.role.layoutEditor"}{$layoutEditor->getFullName()|escape}getId()}" class="action">{translate key="submission.layout.assignLayoutEditor"}
{/if} {foreach name=galleys from=$submission->getGalleys() item=galley} {foreachelse} {/foreach} {foreach name=suppFiles from=$submission->getSuppFiles() item=suppFile} {foreachelse} {/foreach}
  {translate key="submission.request"} {translate key="submission.underway"} {translate key="submission.complete"} {translate key="submission.acknowledge"}
{translate key="submission.layout.layoutVersion"} {if $useLayoutEditors} {if $layoutSignoff->getUserId() && $layoutFile} {url|assign:"url" op="notifyLayoutEditor" articleId=$submission->getId()} {if $layoutSignoff->getDateUnderway()} {translate|escape:"javascript"|assign:"confirmText" key="sectionEditor.layout.confirmRenotify"} {icon name="mail" onclick="return confirm('$confirmText')" url=$url} {else} {icon name="mail" url=$url} {/if} {else} {icon name="mail" disabled="disable"} {/if} {$layoutSignoff->getDateNotified()|date_format:$dateFormatShort|default:""} {else} {translate key="common.notApplicableShort"} {/if} {if $useLayoutEditors} {$layoutSignoff->getDateUnderway()|date_format:$dateFormatShort|default:"—"} {else} {translate key="common.notApplicableShort"} {/if} {if $useLayoutEditors} {$layoutSignoff->getDateCompleted()|date_format:$dateFormatShort|default:"—"} {else} {translate key="common.notApplicableShort"} {/if} {if $useLayoutEditors} {if $layoutSignoff->getUserId() && $layoutSignoff->getDateCompleted() && !$layoutSignoff->getDateAcknowledged()} {url|assign:"url" op="thankLayoutEditor" articleId=$submission->getId()} {icon name="mail" url=$url} {else} {icon name="mail" disabled="disable"} {/if} {$layoutSignoff->getDateAcknowledged()|date_format:$dateFormatShort|default:""} {else} {translate key="common.notApplicableShort"} {/if}
{translate key="common.file"}:     {if $layoutFile} getId()|to_array:$layoutFile->getFileId()}" class="file">{$layoutFile->getFileName()|escape}  {$layoutFile->getDateModified()|date_format:$dateFormatShort} {else} {translate key="submission.layout.noLayoutFile"} {/if}
 
{translate key="submission.layout.galleyFormat"} {translate key="common.file"} {translate key="common.order"} {translate key="common.action"} {translate key="submission.views"}
{$smarty.foreach.galleys.iteration}. {$galley->getGalleyLabel()|escape}{if !$galley->getRemoteURL()}   getId()|to_array:$galley->getId()}" class="action">{translate key="submission.layout.viewProof"}{/if} {if $galley->getFileId() > 0}getId()|to_array:$galley->getFileId()}" class="file">{$galley->getFileName()|escape}  {$galley->getDateModified()|date_format:$dateFormatShort}{elseif $galley->getRemoteURL() != ''}{$galley->getRemoteURL()|truncate:20:"..."|escape}{/if} getId() galleyId=$galley->getId()}" class="plain">↑ getId() galleyId=$galley->getId()}" class="plain">↓ getId()|to_array:$galley->getId()}" class="action">{translate key="common.edit"} | getId()|to_array:$galley->getId()}" onclick="return confirm('{translate|escape:"jsparam" key="submission.layout.confirmDeleteGalley"}')" class="action">{translate key="common.delete"} {$galley->getViews()|escape}
{translate key="common.none"}
 
{translate key="submission.supplementaryFiles"} {translate key="common.file"} {translate key="common.order"} {translate key="common.action"}
{$smarty.foreach.suppFiles.iteration}. {$suppFile->getSuppFileTitle()|escape} {if $suppFile->getFileId() > 0}getId()|to_array:$suppFile->getFileId()}" class="file">{$suppFile->getFileName()|escape}  {$suppFile->getDateModified()|date_format:$dateFormatShort}{elseif $suppFile->getRemoteURL() != ''}{$suppFile->getRemoteURL()|truncate:20:"..."|escape}{/if} getId() suppFileId=$suppFile->getId()}" class="plain">↑ getId() suppFileId=$suppFile->getId()}" class="plain">↓ getId()|to_array:$suppFile->getId()}" class="action">{translate key="common.edit"} | getId()|to_array:$suppFile->getId()}" onclick="return confirm('{translate|escape:"jsparam" key="submission.layout.confirmDeleteSupplementaryFile"}')" class="action">{translate key="common.delete"}
{translate key="common.none"}
 
{translate key="submission.uploadFileTo"} , ,
{translate key="submission.createRemote"} ,
{translate key="submission.layout.layoutComments"} {if $submission->getMostRecentLayoutComment()} {assign var="comment" value=$submission->getMostRecentLayoutComment()} getId() anchor=$comment->getId()}');" class="icon">{icon name="comment"} {$comment->getDatePosted()|date_format:$dateFormatShort} {else} getId()}');" class="icon">{icon name="comment"} {translate key="common.noComments"} {/if} {if $currentJournal->getLocalizedSetting('layoutInstructions')}    {translate key="submission.layout.instructions"} {/if} {if $currentJournal->getSetting('provideRefLinkInstructions')}    {translate key="submission.layout.referenceLinking"} {/if} {foreach name=templates from=$templates key=templateId item=template}     getId()|to_array:$templateId}" class="action">{$template.title|escape} {/foreach}