/
seriesForm.tpl
110 lines (96 loc) · 4.93 KB
/
seriesForm.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{**
* templates/controllers/grid/settings/series/form/seriesForm.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Series form under press management.
*}
<script type="text/javascript">
$(function() {ldelim}
// Attach the form handler.
$('#seriesForm').pkpHandler(
'$.pkp.controllers.form.FileUploadFormHandler',
{ldelim}
publishChangeEvents: ['updateSidebar'],
$uploader: $('#plupload'),
uploaderOptions: {ldelim}
uploadUrl: {url|json_encode op="uploadImage" escape=false},
baseUrl: {$baseUrl|json_encode},
filters: {ldelim}
mime_types : [
{ldelim} title : "Image files", extensions : "jpg,jpeg,png,svg" {rdelim}
]
{rdelim}
{rdelim}
{rdelim}
);
{rdelim});
</script>
<form class="pkp_form" id="seriesForm" method="post" action="{url router=PKPApplication::ROUTE_COMPONENT component="grid.settings.series.SeriesGridHandler" op="updateSeries" seriesId=$seriesId}">
{csrf}
<input type="hidden" name="seriesId" value="{$seriesId|escape}"/>
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="seriesFormNotification"}
{fbvFormArea id="file"}
{fbvFormSection title="monograph.coverImage"}
{include file="controllers/fileUploadContainer.tpl" id="plupload"}
{/fbvFormSection}
{/fbvFormArea}
{* Container for uploaded file *}
<input type="hidden" name="temporaryFileId" id="temporaryFileId" value="" />
{if $image}
{capture assign="altTitle"}{translate key="submission.currentCoverImage"}{/capture}
<img class="pkp_helpers_container_center" height="{$image.thumbnailHeight}" width="{$image.thumbnailWidth}" src="{url router=PKPApplication::ROUTE_PAGE page="catalog" op="thumbnail" type="series" id=$seriesId}" alt="{$altTitle|escape}" />
{/if}
{fbvFormArea id="seriesInfo"}
<div class="pkp_helpers_clear">
{fbvFormSection for="title" title="common.prefix" inline="true" size=$fbvStyles.size.SMALL}
{fbvElement label="common.prefixAndTitle.tip" type="text" multilingual=true name="prefix" id="prefix" value=$prefix}
{/fbvFormSection}
{fbvFormSection for="title" for="title" title="common.title" inline="true" size=$fbvStyles.size.LARGE required=true}
{fbvElement type="text" multilingual=true name="title" id="title" value=$title required=true}
{/fbvFormSection}
</div>
{fbvFormSection for="subtitle" title="common.subtitle" for="subtitle"}
{fbvElement type="text" multilingual=true name="subtitle" id="subtitle" value=$subtitle maxlength="255"}
{/fbvFormSection}
{fbvFormSection title="common.description" for="description"}
{fbvElement type="textarea" multilingual=true id="description" value=$description rich=true}
{/fbvFormSection}
{fbvFormSection list="true"}
{fbvElement type="checkbox" id="isInactive" value=1 checked=$isInactive label="manager.sections.form.deactivateSection"}
{fbvElement type="checkbox" id="restricted" value=1 label="manager.series.restricted" checked=$restricted}
{/fbvFormSection}
{fbvFormSection label="catalog.manage.series.issn" description="manager.setup.issnDescription"}
{fbvElement type="text" id="onlineIssn" label="catalog.manage.series.onlineIssn" value=$onlineIssn maxlength="16" size=$fbvStyles.size.MEDIUM inline=true}
{fbvElement type="text" id="printIssn" label="catalog.manage.series.printIssn" value=$printIssn maxlength="16" size=$fbvStyles.size.MEDIUM inline=true}
{/fbvFormSection}
{fbvFormSection label="catalog.sortBy" description="catalog.sortBy.seriesDescription" for="sortOption"}
{fbvElement type="select" id="sortOption" from=$sortOptions selected=$sortOption translate=false}
{/fbvFormSection}
{if count($availableSubeditors)}
{fbvFormSection list=true title="submissionGroup.assignedSubEditors"}
{foreach from=$availableSubeditors item="subEditor" key="id"}
{fbvElement type="checkbox" id="subEditors[]" value=$id checked=in_array($id, $assignedToSeries) label=$subEditor|escape translate=false}
{/foreach}
{/fbvFormSection}
{/if}
{if count($allCategories)}
{fbvFormSection list=true title="grid.category.categories"}
{foreach from=$allCategories item="category" key="id"}
{fbvElement type="checkbox" id="categories[]" value=$id checked=in_array($id, $selectedCategories) label=$category|escape translate=false}
{/foreach}
{/fbvFormSection}
{/if}
{capture assign="instruct"}
{capture assign="sampleUrl"}{url router=PKPApplication::ROUTE_PAGE page="catalog" op="series" path="Path"}{/capture}
{translate key="grid.series.urlWillBe" sampleUrl=$sampleUrl}
{/capture}
{fbvFormSection title="series.path" required=true for="path"}
{fbvElement type="text" id="path" label=$instruct subLabelTranslate=false value=$path maxlength="32"}
{/fbvFormSection}
{/fbvFormArea}
<p><span class="formRequired">{translate key="common.requiredField"}</span></p>
{fbvFormButtons submitText="common.save"}
</form>