baseline
[omp.pkp.sfu.ca.git] / templates / author / submit / suppFile.tpl
blobff7bc61da33cea58be95fd09b4e31a36946989ec
1 {**
2  * suppFile.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  * Add/edit a supplementary file.
8  *
9  * $Id: suppFile.tpl,v 1.3 2009/05/15 15:58:40 tylerl Exp $
10  *}
11 {assign var="pageTitle" value="author.submit.step4a"}
12 {include file="author/submit/submitStepHeader.tpl"}
14 <p><a href="{url op="submit" path=5 monographId=$monographId}">&lt;&lt; {translate key="author.submit.backToSupplementaryFiles"}</a></p>
16 <form name="submit" method="post" action="{url op="saveSubmitSuppFile" path=$suppFileId}" enctype="multipart/form-data">
17 <input type="hidden" name="monographId" value="{$monographId|escape}" />
18 {include file="common/formErrors.tpl"}
20 {if count($formLocales) > 1}
21 <table width="100%" class="data">
22         <tr valign="top">
23                 <td width="20%" class="label">{fieldLabel name="formLocale" key="form.formLanguage"}</td>
24                 <td width="80%" class="value">
25                         {url|assign:"submitFormUrl" path=$suppFileId monographId=$monographId}
26                         {form_language_chooser form="submit" url=$submitFormUrl}
27                         <span class="instruct">{translate key="form.formLanguage.description"}</span>
28                 </td>
29         </tr>
30 </table>
31 {/if}
33 <h3>{translate key="author.submit.supplementaryFileData"}</h3>
35 <p>{translate key="author.submit.supplementaryFileDataDescription"}</p>
37 <table class="data" width="100%">
38 <tr valign="top">
39         <td width="20%" class="label">{fieldLabel required="true" name="title" key="common.title"}</td>
40         <td width="80%" class="value"><input type="text" class="textField" name="title[{$formLocale|escape}]" id="title" value="{$title[$formLocale]|escape}" size="60" maxlength="255" /></td>
41 </tr>
42 <tr valign="top">
43         <td width="20%" class="label">{fieldLabel name="creator" key="author.submit.suppFile.createrOrOwner"}</td>
44         <td width="80%" class="value"><input type="text" name="creator[{$formLocale|escape}]" class="textField" id="creator" value="{$creator[$formLocale]|escape}" size="60" maxlength="255" /></td>
45 </tr>
46 <tr valign="top">
47         <td width="20%" class="label">{fieldLabel name="subject" key="common.keywords"}</td>
48         <td width="80%" class="value"><input type="text" name="subject[{$formLocale|escape}]" class="textField" id="subject" value="{$subject[$formLocale]|escape}" size="60" maxlength="255" /></td>
49 </tr>
50 <tr valign="top">
51         <td width="20%" class="label">{fieldLabel name="type" key="common.type"}</td>
52         <td width="80%" class="value"><select name="type" class="selectMenu" id="type" size="1">{html_options_translate output=$typeOptionsOutput values=$typeOptionsValues translateValues="true" selected=$type}</select><br /><label for="typeOther">{translate key="author.submit.suppFile.specifyOtherType"}</label> <input type="text" name="typeOther[{$formLocale|escape}]" id="typeOther" class="textField" value="{$typeOther[$formLocale]|escape}" size="45" maxlength="255" /></td>
53 </tr>
54 <tr valign="top">
55         <td width="20%" class="label">{fieldLabel name="description" key="author.submit.suppFile.briefDescription"}</td>
56         <td width="80%" class="value"><textarea name="description[{$formLocale|escape}]" class="textArea" id="description" rows="5" cols="60">{$description[$formLocale]|escape}</textarea></td>
57 </tr>
58 <tr valign="top">
59         <td width="20%" class="label">{fieldLabel name="publisher" key="common.publisher"}</td>
60         <td width="80%" class="value"><input type="text" name="publisher[{$formLocale|escape}]" class="textField" id="publisher" value="{$publisher[$formLocale]|escape}" size="60" maxlength="255" />
61         </td>
62 </tr>
63 <tr valign="top">
64         <td>&nbsp;</td>
65         <td><span class="instruct">{translate key="author.submit.suppFile.publisherDescription"}</span></td>
66 </tr>
67 <tr valign="top">
68         <td width="20%" class="label">{fieldLabel name="sponsor" key="author.submit.suppFile.contributorOrSponsor"}</td>
69         <td width="80%" class="value"><input type="text" name="sponsor[{$formLocale|escape}]" class="textField" id="sponsor" value="{$sponsor[$formLocale]|escape}" size="60" maxlength="255" /></td>
70 </tr>
71 <tr valign="top">
72         <td width="20%" class="label">{fieldLabel name="dateCreated" key="common.date"}</td>
73         <td width="80%" class="value"><input type="text" name="dateCreated" class="textField" id="dateCreated" value="{$dateCreated|escape}" size="11" maxlength="10" /> YYYY-MM-DD</td>
74 </tr>
75 <tr valign="top">
76         <td>&nbsp;</td>
77         <td><span class="instruct">{translate key="author.submit.suppFile.dateDescription"}</span></td>
78 </tr>
79 <tr valign="top">
80         <td width="20%" class="label">{fieldLabel name="source" key="common.source"}</td>
81         <td width="80%" class="value"><input type="text" name="source[{$formLocale|escape}]" class="textField" id="source" value="{$source[$formLocale]|escape}" size="60" maxlength="255" /></td>
82 </tr>
83 <tr valign="top">
84         <td>&nbsp;</td>
85         <td><span class="instruct">{translate key="author.submit.suppFile.sourceDescription"}</span></td>
86 </tr>
87 <tr valign="top">
88         <td width="20%" class="label">{fieldLabel name="language" key="common.language"}</td>
89         <td width="80%" class="value"><input type="text" name="language" class="textField" id="language" value="{$language|escape}" size="5" maxlength="10" /></td>
90 </tr>
91 <tr valign="top">
92         <td>&nbsp;</td>
93         <td><span class="instruct">{translate key="author.submit.languageInstructions"}</span></td>
94 </tr>
95 </table>
97 <div class="separator"></div>
99 <h3>{translate key="author.submit.supplementaryFileUpload"}</h3>
101 <table class="data" width="100%">
102 {if $suppFile && $suppFile->getFileId()}
103 <tr valign="top">
104         <td width="20%" class="label">{translate key="common.fileName"}</td>
105         <td width="80%" class="value"><a href="{url op="download" path=$monographId|to_array:$suppFile->getFileId()}">{$suppFile->getFileName()|escape}</a></td>
106 </tr>
107 <tr valign="top">
108         <td width="20%" class="label">{translate key="common.originalFileName"}</td>
109         <td width="80%" class="value">{$suppFile->getOriginalFileName()|escape}</td>
110 </tr>
111 <tr valign="top">
112         <td width="20%" class="label">{translate key="common.fileSize"}</td>
113         <td width="80%" class="value">{$suppFile->getNiceFileSize()}</td>
114 </tr>
115 <tr valign="top">
116         <td width="20%" class="label">{translate key="common.dateUploaded"}</td>
117         <td width="80%" class="value">{$suppFile->getDateUploaded()|date_format:$datetimeFormatShort}</td>
118 </tr>
119 </table>
121 <table class="data" width="100%">
122 <tr valign="top">
123         <td>&nbsp;</td>
124         <td class="value"><input type="checkbox" name="showReviewers" id="showReviewers" value="1"{if $showReviewers==1} checked="checked"{/if} /> 
125         <label for="showReviewers">{translate key="author.submit.suppFile.availableToPeers"}</label></td>
126 </tr>
127 </table>
128 {else}
129 <tr valign="top">
130         <td colspan="2" class="nodata">{translate key="author.submit.suppFile.noFile"}</td>
131 </tr>
132 </table>
133 {/if}
135 <div class="separator"></div>
137 <table class="data" width="100%">
138 <tr valign="top">
139         <td width="20%" class="label">{fieldLabel name="uploadSuppFile" key="common.replaceFile"}</td>
140         <td width="80%" class="value"><input type="file" name="uploadSuppFile" id="uploadSuppFile" class="uploadField" />&nbsp;&nbsp;{translate key="form.saveToUpload"}</td>
141 </tr>
142 {if not $suppFile}
143 <tr valign="top">
144         <td>&nbsp;</td>
145         <td class="value"><input type="checkbox" name="showReviewers" id="showReviewers" value="1"{if $showReviewers==1} checked="checked"{/if} />&nbsp;
146         <label for="showReviewers">{translate key="author.submit.suppFile.availableToPeers"}</label></td>
147 </tr>
148 {/if}
149 </table>
151 <div class="separator"></div>
153 <p><input type="submit" value="{translate key="common.saveAndContinue"}" class="button defaultButton" /> <input type="button" value="{translate key="common.cancel"}" class="button" onclick="document.location.href='{url op="submit" path="4" monographId=$monographId escape=false}'" /></p>
155 <p><span class="formRequired">{translate key="common.requiredField"}</span></p>
157 </form>
159 {include file="common/footer.tpl"}