{** * templates/controllers/modals/editorDecision/form/promoteForm.tpl * * Copyright (c) 2014-2019 Simon Fraser University * Copyright (c) 2003-2019 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Form used to send reviews to author * *}
{csrf}
{if array_key_exists('help', $decisionData)}

{translate key=$decisionData.help}

{/if} {capture assign="sendEmailLabel"}{translate key="editor.submissionReview.sendEmail" authorName=$authorName}{/capture} {if $skipEmail} {assign var="skipEmailSkip" value=true} {else} {assign var="skipEmailSend" value=true} {/if} {fbvFormSection title="common.sendEmail"} {/fbvFormSection}
{* Message to author textarea *} {fbvFormSection for="personalMessage"} {fbvElement type="textarea" name="personalMessage" id="personalMessage" value=$personalMessage rich=true variables=$allowedVariables variablesType=$allowedVariablesType} {/fbvFormSection} {* Button to add reviews to the email automatically *} {if $reviewsAvailable} {fbvFormSection} {translate key="submission.comments.addReviews"} {/fbvFormSection} {/if}
{if $decisionData.paymentType} {fbvFormSection title="common.payment"} {/fbvFormSection} {/if} {** Some decisions can be made before review is initiated (i.e. no attachments). **} {if $reviewRoundId}
{capture assign=reviewAttachmentsGridUrl}{url router=$smarty.const.ROUTE_COMPONENT component="grid.files.attachment.EditorSelectableReviewAttachmentsGridHandler" op="fetchGrid" submissionId=$submissionId stageId=$stageId reviewRoundId=$reviewRoundId escape=false}{/capture} {load_url_in_div id="reviewAttachmentsGridContainer" url=$reviewAttachmentsGridUrl}
{/if}
{capture assign=libraryAttachmentsGridUrl}{url router=$smarty.const.ROUTE_COMPONENT component="grid.files.SelectableLibraryFileGridHandler" op="fetchGrid" submissionId=$submissionId escape=false}{/capture} {capture assign=libraryAttachmentsGrid}{load_url_in_div id="libraryFilesAttachmentsGridContainer" url=$libraryAttachmentsGridUrl}{/capture} {include file="controllers/extrasOnDemand.tpl" id="libraryFileAttachmentsExtras" widgetWrapper="#libraryFileAttachments" moreDetailsText="settings.libraryFiles.public.selectLibraryFiles" lessDetailsText="settings.libraryFiles.public.selectLibraryFiles" extraContent=$libraryAttachmentsGrid }
{capture assign="stageName"}{translate key=$decisionData.toStage}{/capture}

{translate key="editor.submission.decision.selectFiles" stageName=$stageName}

{* Show a different grid depending on whether we're in review or before the review stage *} {if $stageId == $smarty.const.WORKFLOW_STAGE_ID_SUBMISSION} {capture assign=filesToPromoteGridUrl}{url router=$smarty.const.ROUTE_COMPONENT component="grid.files.submission.SelectableSubmissionDetailsFilesGridHandler" op="fetchGrid" submissionId=$submissionId stageId=$stageId escape=false}{/capture} {elseif $reviewRoundId} {** a set $reviewRoundId var implies we are INTERNAL_REVIEW or EXTERNAL_REVIEW **} {capture assign=filesToPromoteGridUrl}{url router=$smarty.const.ROUTE_COMPONENT component="grid.files.review.SelectableReviewRevisionsGridHandler" op="fetchGrid" submissionId=$submissionId stageId=$stageId reviewRoundId=$reviewRoundId escape=false}{/capture} {elseif $stageId == $smarty.const.WORKFLOW_STAGE_ID_EDITING} {capture assign=filesToPromoteGridUrl}{url router=$smarty.const.ROUTE_COMPONENT component="grid.files.copyedit.SelectableCopyeditFilesGridHandler" op="fetchGrid" submissionId=$submissionId stageId=$stageId escape=false}{/capture} {capture assign=draftFilesToPromoteGridUrl}{url router=$smarty.const.ROUTE_COMPONENT component="grid.files.final.SelectableFinalDraftFilesGridHandler" op="fetchGrid" submissionId=$submissionId stageId=$stageId escape=false}{/capture} {load_url_in_div id="draftFilesToPromoteGridUrl" url=$draftFilesToPromoteGridUrl} {/if} {load_url_in_div id="filesToPromoteGrid" url=$filesToPromoteGridUrl}
{fbvFormSection class="formButtons form_buttons"} {fbvElement type="submit" class="submitFormButton pkp_button_primary" id="promoteForm-complete-btn" label="editor.submissionReview.recordDecision"} {assign var=cancelButtonId value="cancelFormButton"|concat:"-"|uniqid} {translate key="common.cancel"} {/fbvFormSection}