baseline
[omp.pkp.sfu.ca.git] / templates / submission / comment / editComment.tpl
blob443e1848cac3be928dbe0735d14dce43d3260850
1 {**
2  * editComment.tpl
3  *
4  * Copyright (c) 2003-2009 John Willinsky
5  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
6  *
7  * Form to edit comments.
8  *
9  * $Id: editComment.tpl,v 1.1 2009/05/13 22:32:25 tylerl Exp $
10  *}
11 {strip}
12 {assign var="pageTitle" value="submission.comments.editComment"}
13 {include file="submission/comment/header.tpl"}
14 {/strip}
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}" />
20         {/foreach}
21 {/if}
22 {if $isPeerReviewComment}
23 <input type="hidden" name="viewable" value="{$viewable|escape}" />
24 {/if}
26 <div id="new">
27 {include file="common/formErrors.tpl"}
29 <table class="data">
30 <tr valign="top">
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>
33 </tr>
34 <tr valign="top">
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>
37 </tr>
38 {if $isPeerReviewComment}
39 <tr valign="top">
40         <td>&nbsp;</td>
41         <td class="value">
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>
44         </td>
45 </tr>
46 {/if}
47 </table>
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>
52 </div>
53 </form>
55 {include file="submission/comment/footer.tpl"}