first commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
{**
|
||||
* templates/authorDashboard/reviewRoundInfo.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* Display submission review details in author dashboard page.
|
||||
*}
|
||||
|
||||
<!-- Display round status -->
|
||||
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="reviewRoundNotification_"|concat:$reviewRoundId requestOptions=$reviewRoundNotificationRequestOptions}
|
||||
|
||||
<!-- Display editor's message to the author -->
|
||||
{include file="authorDashboard/submissionEmails.tpl" submissionEmails=$submissionEmails}
|
||||
|
||||
{* Reviewer grid *}
|
||||
{if $showReviewerGrid}
|
||||
{capture assign="reviewersGridUrl"}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.users.reviewer.AuthorReviewerGridHandler" op="fetchGrid" submissionId=$submission->getId() stageId=$stageId reviewRoundId=$reviewRoundId escape=false}{/capture}
|
||||
{load_url_in_div id="reviewersGrid-round_"|concat:$reviewRoundId url=$reviewersGridUrl}
|
||||
{/if}
|
||||
|
||||
<!-- Display review attachments grid -->
|
||||
{if $showReviewAttachments}
|
||||
{** need to use the stage id in the div because two of these grids can appear in the dashboard at the same time (one for each stage). *}
|
||||
{capture assign=reviewAttachmentsGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.files.attachment.AuthorReviewAttachmentsGridHandler" op="fetchGrid" submissionId=$submission->getId() stageId=$stageId reviewRoundId=$reviewRoundId escape=false}{/capture}
|
||||
{load_url_in_div id="reviewAttachmentsGridContainer-`$stageId`-`$reviewRoundId`" url=$reviewAttachmentsGridUrl}
|
||||
|
||||
{capture assign=revisionsGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.files.review.AuthorReviewRevisionsGridHandler" op="fetchGrid" submissionId=$submission->getId() stageId=$stageId reviewRoundId=$reviewRoundId escape=false}{/capture}
|
||||
{load_url_in_div id="revisionsGrid-`$stageId`-`$reviewRoundId`" url=$revisionsGridUrl}
|
||||
{/if}
|
||||
@@ -0,0 +1,28 @@
|
||||
{**
|
||||
* templates/authorDashboard/reviewRoundTab.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* Build a review round tab markup (for any review stage).
|
||||
*}
|
||||
<script type="text/javascript">
|
||||
// Attach the JS file tab handler.
|
||||
$(function() {ldelim}
|
||||
$('#{$reviewRoundTabsId}').pkpHandler(
|
||||
'$.pkp.controllers.TabHandler',
|
||||
{ldelim}
|
||||
{assign var=roundIndex value=$lastReviewRoundNumber-1}
|
||||
selected: {$roundIndex}
|
||||
{rdelim}
|
||||
);
|
||||
{rdelim});
|
||||
</script>
|
||||
<div id="{$reviewRoundTabsId}" class="pkp_controllers_tab">
|
||||
<ul>
|
||||
{foreach from=$reviewRounds item=reviewRound}
|
||||
<li><a href="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="tab.authorDashboard.AuthorDashboardReviewRoundTabHandler" op="fetchReviewRoundInfo" submissionId=$submission->getId() stageId=$reviewRound->getStageId() reviewRoundId=$reviewRound->getId() escape=false}">{translate key="submission.round" round=$reviewRound->getRound()}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
@@ -0,0 +1,20 @@
|
||||
{**
|
||||
* templates/authorDashboard/submissionEmail.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* Render a single submission email.
|
||||
*}
|
||||
<div class="pkp_submission_email">
|
||||
<h2>
|
||||
{$submissionEmail->getSubject()|escape}
|
||||
</h2>
|
||||
<div class="date">
|
||||
{$submissionEmail->getDateSent()|date_format:$datetimeFormatShort}
|
||||
</div>
|
||||
<div class="email_entry">
|
||||
{$submissionEmail->getBody()|strip_unsafe_html}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,51 @@
|
||||
{**
|
||||
* templates/authorDashboard/submissionEmails.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* Display submission emails to authors.
|
||||
*}
|
||||
|
||||
{if $submissionEmails && $submissionEmails->getCount()}
|
||||
|
||||
<div class="pkp_submission_emails">
|
||||
<h3>{translate key="notification.notifications"}</h3>
|
||||
|
||||
<ul>
|
||||
{iterate from=submissionEmails item=submissionEmail}
|
||||
|
||||
{capture assign=submissionEmailLinkId}submissionEmail-{$submissionEmail->getId()}{/capture}
|
||||
<script type="text/javascript">
|
||||
// Initialize JS handler.
|
||||
$(function() {ldelim}
|
||||
$('#{$submissionEmailLinkId|escape:"javascript"}').pkpHandler(
|
||||
'$.pkp.pages.authorDashboard.SubmissionEmailHandler',
|
||||
{ldelim}
|
||||
{* Parameters for parent LinkActionHandler *}
|
||||
actionRequest: '$.pkp.classes.linkAction.ModalRequest',
|
||||
actionRequestOptions: {ldelim}
|
||||
titleIcon: 'modal_information',
|
||||
title: {translate|json_encode key="notification.notifications"},
|
||||
modalHandler: '$.pkp.controllers.modal.AjaxModalHandler',
|
||||
url: {url|json_encode router=\PKP\core\PKPApplication::ROUTE_PAGE page="authorDashboard" op="readSubmissionEmail" submissionId=$submission->getId() stageId=$stageId reviewRoundId=$reviewRoundId submissionEmailId=$submissionEmail->getId() escape=false}
|
||||
{rdelim}
|
||||
{rdelim}
|
||||
);
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<li>
|
||||
<span class="message">
|
||||
<a href="#" id="{$submissionEmailLinkId|escape}">{$submissionEmail->getSubject()|escape}</a>
|
||||
</span>
|
||||
<span class="date">
|
||||
{$submissionEmail->getDateSent()|date_format:$datetimeFormatShort}
|
||||
</span>
|
||||
</li>
|
||||
|
||||
{/iterate}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user