baseline
[omp.pkp.sfu.ca.git] / templates / acquisitionsEditor / submission / status.tpl
blob03368dff16c928ab921a52f62603373043b23255
1 {**
2  * status.tpl
3  *
4  * Copyright (c) 2003-2008 John Willinsky
5  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
6  *
7  * Subtemplate defining the submission status table.
8  *
9  * $Id: status.tpl,v 1.3 2009/06/09 23:37:16 tylerl Exp $
10  *}
11 <div id="status">
12 <h3>{translate key="common.status"}</h3>
14 <table width="100%" class="data">
15         <tr>
16                 {assign var="status" value=$submission->getSubmissionStatus()}
17                 <td width="20%" class="label">{translate key="common.status"}</td>
18                 <td width="30%" class="value">
19                         {if $status == STATUS_ARCHIVED}{translate key="submissions.archived"}
20                         {elseif $status==STATUS_QUEUED_UNASSIGNED}{translate key="submissions.queuedUnassigned"}
21                         {elseif $status==STATUS_QUEUED_EDITING}{translate key="submissions.queuedEditing"}
22                         {elseif $status==STATUS_QUEUED_REVIEW}{translate key="submissions.queuedReview"}
23                         {elseif $status==STATUS_PUBLISHED}{translate key="submissions.published"}
24                         {elseif $status==STATUS_DECLINED}{translate key="submissions.declined"}
25                         {/if}
26                 </td>
27                 <td width="50%" class="value">
28                         {if $status != STATUS_ARCHIVED}
29                                 <a href="{url op="unsuitableSubmission" monographId=$submission->getMonographId()}" class="action">{translate key="editor.monograph.archiveSubmission"}</a>
30                         {else}
31                                 <a href="{url op="restoreToQueue" path=$submission->getMonographId()}" class="action">{translate key="editor.monograph.restoreToQueue"}</a>
32                         {/if}
33                 </td>
34         </tr>
35         <tr>
36                 <td class="label">{translate key="submission.initiated"}</td>
37                 <td colspan="2" class="value">{$submission->getDateStatusModified()|date_format:$dateFormatShort}</td>
38         </tr>
39         <tr>
40                 <td class="label">{translate key="submission.lastModified"}</td>
41                 <td colspan="2" class="value">{$submission->getLastModified()|date_format:$dateFormatShort}</td>
42         </tr>
43 {if $enableComments}
44         <tr>
45                 <td class="label">{translate key="comments.readerComments"}</td>
46                 <td class="value">{translate key=$submission->getCommentsStatusString()}</td>
47                 <td class="value"><form action="{url op="updateCommentsStatus" path=$submission->getMonographId()}" method="post">{translate key="submission.changeComments"} <select name="commentsStatus" size="1" class="selectMenu">{html_options_translate options=$commentsStatusOptions selected=$submission->getCommentsStatus()}</select> <input type="submit" value="{translate key="common.record"}" class="button" /></form></td>
48         </tr>
49 {/if}
50 </table>
51 </div>