{** * templates/submission/comment/peerReviewComment.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 enter comments. * *} {strip} {include file="submission/comment/header.tpl"} {/strip}
{foreach from=$articleComments item=comment} {foreachelse} {/foreach}
{if $showReviewLetters and $comment->getRoleId() eq $reviewer} {assign var="start" value="A"|ord} {assign var="reviewId" value=$comment->getAssocId()} {translate key=$comment->getRoleName()} {$reviewLetters[$reviewId]+$start|chr} {else} {translate key=$comment->getRoleName()} {/if}
{$comment->getDatePosted()|date_format:$datetimeFormatShort}

{if $comment->getViewable()} {translate key="submission.comments.canShareWithAuthor"} {else} {translate key="submission.comments.cannotShareWithAuthor"} {/if}
{if $comment->getAuthorId() eq $userId and not $isLocked} {/if}
{if $comment->getCommentTitle()}
{translate key="submission.comments.subject"}: {$comment->getCommentTitle()|escape}
{/if}
{$comment->getComments()|strip_unsafe_html|nl2br}
{translate key="submission.comments.noReviews"}


{if not $isLocked}
{if $hiddenFormParams} {foreach from=$hiddenFormParams item=hiddenFormParam key=key} {/foreach} {/if}
{include file="common/formErrors.tpl"}
{fieldLabel name="commentTitle" key="submission.comments.subject"}
{fieldLabel name="authorComments"}{translate key="submission.comments.forAuthorEditor"}
{fieldLabel name="comments"}{translate key="submission.comments.forEditor"}

{translate key="common.requiredField"}

{else} {/if} {include file="submission/comment/footer.tpl"}