baseline
[omp.pkp.sfu.ca.git] / templates / productionEditor / submission / components.tpl
bloba836ac34eae9aa9fab87ce8c368669661a78ae13
1 {**
2  * summary.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 summary table.
8  *
9  * $Id: components.tpl,v 1.4 2009/08/13 00:38:49 tylerl Exp $
10  *}
11 <h3>{translate key="manuscript.artwork"}</h3>
13 <form method="post" action="{url op="submitArtwork" path=$submission->getMonographId()}"  enctype="multipart/form-data">
14         <input type="hidden" name="from" value="submissionArt" />
15         <input type="hidden" name="monographId" value="{$submission->getMonographId()}" />
16 <!--<h4>Cover</h4>
19         <input type="file" name="coverFile" size="10" class="uploadField" />
20         <input type="submit" name="uploadCoverFile" value="{translate key="common.upload"}" class="button" />
21         <br />
22 -->
23 <h4>Visuals</h4>
24 <table>
25 <td></td>
26 <td></td>
28 {foreach from=$artworks item=artwork}
30 <tr valign="middle">
31 <td>
32 <a target="_blank" href="{url op="viewFile" path=$submission->getMonographId()|to_array:$artwork->getFileId():$artwork->getRevision()}">
33   <img class="thumbnail" width="50" src="{url op="viewFile" path=$submission->getMonographId()|to_array:$artwork->getFileId():$artwork->getRevision()}" />
34 </a>
35 </td>
36 <td>
37 {$artwork->getIdentifier()}<br />
38 Revision: {$artwork->getRevision()}<br />
39 <a href="{url op="removeArtworkFile" path=$submission->getMonographId()|to_array:$artwork->getFileId()}">Remove</a>
40 </td>
41 </tr>
42 {foreachelse}
43 <em>No artwork files have been uploaded yet!</em>
44 {/foreach}
45 </table>
47 <h4>Upload Artwork</h4>
48         <table>
49         <tr>
50                 <td>Identifier</td><td><input type="text" name="identifier" /></td>
51         </tr>
52         <tr>
53                 <td>Monograph Component</td><td><select name="componentId">
54         <option>--Select--</option>
55         {foreach from=$submission->getComponents() item=component}
56                 <option value="{$component->getId()}">{$component->getLocalizedTitle()}</option>
57         {/foreach}
58         </select></td>
59         </tr>
60         <tr>
61                 <td>File</td><td><input type="file" name="artworkFile" size="10" class="uploadField" /></td>
62         </tr>
63         <tr>
64                 <td></td><td><input type="submit" name="uploadNewArtwork" value="{translate key="common.upload"}" class="button" /></td>
65         </tr>
66         </table>
68 <!--    Type <select>
69         <option>--Select--</option>
70         <option>Map</option>
71         <option>Illustration</option>
72         <option>Image</option>
73         <option>Graph</option>
74         <option>Other...</option>
75         </select>
76         <br />
77         <input type="checkbox" /> Permitted Use
78         <br />
79         <br />-->
81 </form>
83 </div>