{** * templates/controllers/modals/editorDecision/form/sendReviewsForm.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. * * @brief Form used to send reviews to author * * @uses $revisionsEmail string Email body for requesting revisions that don't * require another round of review. * @uses $resubmitEmail string Email body for asking the author to resubmit for * another round of review. *}
{csrf} {* Set the decision or allow the decision to be selected *} {if $decision != $smarty.const.SUBMISSION_EDITOR_DECISION_PENDING_REVISIONS && $decision != $smarty.const.SUBMISSION_EDITOR_DECISION_RESUBMIT} {else} {if $decision == $smarty.const.SUBMISSION_EDITOR_DECISION_PENDING_REVISIONS} {assign var="checkedRevisions" value="1"} {elseif $decision == $smarty.const.SUBMISSION_EDITOR_DECISION_RESUBMIT} {assign var="checkedResubmit" value="1"} {/if} {fbvFormSection title="editor.review.newReviewRound"} {/fbvFormSection} {/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}
{** 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} {fbvFormButtons submitText="editor.submissionReview.recordDecision"}