4 * Copyright (c) 2003-2009 John Willinsky
5 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
7 * Form to edit comments.
9 * $Id: editComment.tpl,v 1.1 2009/05/13 22:32:25 tylerl Exp $
12 {assign var="pageTitle" value="submission.comments.editComment"}
13 {include file="submission/comment/header.tpl"}
16 <form method="post" action="{url op="saveComment" path=$commentId}">
17 {if $hiddenFormParams}
18 {foreach from=$hiddenFormParams item=hiddenFormParam key=key}
19 <input type="hidden" name="{$key|escape}" value="{$hiddenFormParam|escape}" />
22 {if $isPeerReviewComment}
23 <input type="hidden" name="viewable" value="{$viewable|escape}" />
27 {include file="common/formErrors.tpl"}
31 <td width="20%" class="label">{fieldLabel name="commentTitle" key="submission.comments.subject"}</td>
32 <td width="80%" class="value"><input type="text" id="commentTitle" name="commentTitle" value="{$commentTitle|escape}" size="50" maxlength="90" class="textField" /></td>
35 <td class="label">{fieldLabel name="comments" key="submission.comments.comments" required="true"}</td>
36 <td class="value"><textarea name="comments" id="comments" rows="15" cols="50" class="textArea">{$comments}</textarea></td>
38 {if $isPeerReviewComment}
42 <input type="checkbox" name="viewable" id="viewable" value="1"{if $viewable} checked="checked"{/if} />
43 <label for="viewable">{translate key="submission.comments.viewableDescription"}</label>
49 <p><input type="submit" value="{translate key="common.save"}" class="button defaultButton" /> {if !$isPeerReviewComment}<input type="submit" name="saveAndEmail" value="{translate key="common.saveAndEmail"}" class="button" /> {/if}<input type="button" value="{translate key="common.cancel"}" class="button" onclick="history.go(-1);" /></p>
51 <p><span class="formRequired">{translate key="common.requiredField"}</span></p>
55 {include file="submission/comment/footer.tpl"}