first commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
{**
|
||||
* templates/controllers/grid/files/copyedit/manageCopyeditFiles.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.
|
||||
*
|
||||
* Allows users to manage the list of copyedit files, potentially adding more
|
||||
*}
|
||||
|
||||
<script>
|
||||
$(function() {ldelim}
|
||||
// Attach the form handler.
|
||||
$('#manageCopyeditFilesForm').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<form class="pkp_form" id="manageCopyeditFilesForm" action="{url component="grid.files.copyedit.ManageCopyeditFilesGridHandler" op="updateCopyeditFiles" submissionId=$submissionId stageId=$smarty.const.WORKFLOW_STAGE_ID_EDITING}" method="post">
|
||||
<!-- Current copyedited files -->
|
||||
<div id="existingFilesContainer">
|
||||
{csrf}
|
||||
{fbvFormArea id="manageCopyeditFiles"}
|
||||
{fbvFormSection}
|
||||
{capture assign=manageCopyeditFilesGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.files.copyedit.ManageCopyeditFilesGridHandler" op="fetchGrid" submissionId=$submissionId escape=false}{/capture}
|
||||
{load_url_in_div id="manageCopyeditFilesGrid" url=$manageCopyeditFilesGridUrl}
|
||||
{/fbvFormSection}
|
||||
|
||||
{fbvFormButtons}
|
||||
{/fbvFormArea}
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,28 @@
|
||||
{**
|
||||
* templates/controllers/grid/files/filesGridFilter.tpl
|
||||
*
|
||||
* Copyright (c) 2016-2021 Simon Fraser University
|
||||
* Copyright (c) 2000-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* Filter template for submission file lists.
|
||||
*}
|
||||
{assign var="formId" value="submissionFilesListFilter-"|concat:$filterData.gridId:"-"|uniqid}
|
||||
<script type="text/javascript">
|
||||
// Attach the form handler to the form.
|
||||
$('#{$formId}').pkpHandler('$.pkp.controllers.form.ClientFormHandler',
|
||||
{ldelim}
|
||||
trackFormChanges: false
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
<form class="pkp_form filter" id="{$formId}" action="{url op="fetchGrid"}" method="post">
|
||||
{csrf}
|
||||
{fbvFormArea id="submissionFilesSearchFormArea"|concat:$filterData.gridId}
|
||||
{fbvFormSection}
|
||||
{fbvElement type="search" name="search" id="search"|concat:$filterData.gridId value=$filterSelectionData.search size=$fbvStyles.size.MEDIUM inline="true"}
|
||||
{fbvElement type="select" name="column" id="column"|concat:$filterData.gridId from=$filterData.columns selected=$filterSelectionData.column size=$fbvStyles.size.SMALL translate=false inline="true"}
|
||||
{/fbvFormSection}
|
||||
{fbvFormButtons hideCancel=true submitText="common.search"}
|
||||
{/fbvFormArea}
|
||||
</form>
|
||||
@@ -0,0 +1,33 @@
|
||||
{**
|
||||
* templates/controllers/grid/files/final/manageFinalDraftFiles.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.
|
||||
*
|
||||
* Allows editor to add more file to the review (that weren't added when the submission was sent to review)
|
||||
*}
|
||||
|
||||
<script>
|
||||
$(function() {ldelim}
|
||||
// Attach the form handler.
|
||||
$('#manageFinalDraftFilesForm').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<form class="pkp_form" id="manageFinalDraftFilesForm" action="{url component="grid.files.final.ManageFinalDraftFilesGridHandler" op="updateFinalDraftFiles" submissionId=$submissionId}" method="post">
|
||||
<!-- Current final draft files -->
|
||||
<div id="existingFilesContainer">
|
||||
{csrf}
|
||||
{fbvFormArea id="manageFinalDraftFiles"}
|
||||
{fbvFormSection}
|
||||
<input type="hidden" name="submissionId" value="{$submissionId|escape}" />
|
||||
<input type="hidden" name="stageId" value="{$smarty.const.WORKFLOW_STAGE_ID_EDITING}" />
|
||||
{capture assign=availableReviewFilesGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.files.final.ManageFinalDraftFilesGridHandler" op="fetchGrid" submissionId=$submissionId escape=false}{/capture}
|
||||
{load_url_in_div id="availableReviewFilesGrid" url=$availableReviewFilesGridUrl}
|
||||
{/fbvFormSection}
|
||||
|
||||
{fbvFormButtons}
|
||||
{/fbvFormArea}
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,39 @@
|
||||
{**
|
||||
* templates/controllers/grid/files/proof/manageProofFiles.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.
|
||||
*
|
||||
* Allows editor to add more files to the publication format
|
||||
*}
|
||||
|
||||
<script>
|
||||
$(function() {ldelim}
|
||||
// Attach the form handler.
|
||||
$('#manageProofFilesForm').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<form class="pkp_form" id="manageProofFilesForm" action="{url component="grid.files.proof.ManageProofFilesGridHandler" op="updateProofFiles" submissionId=$submissionId}" method="post">
|
||||
<!-- Current proof files -->
|
||||
<p>{translate key="editor.submission.proof.manageProofFilesDescription"}</p>
|
||||
|
||||
<div id="existingFilesContainer">
|
||||
{csrf}
|
||||
{fbvFormArea id="manageProofFiles"}
|
||||
{fbvFormSection}
|
||||
<input type="hidden" name="submissionId" value="{$submissionId|escape}" />
|
||||
<input type="hidden" name="stageId" value="{$smarty.const.WORKFLOW_STAGE_ID_PRODUCTION}" />
|
||||
<input type="hidden" name="representationId" value="{$representationId|escape}" />
|
||||
{if $publicationId}
|
||||
<input type="hidden" name="publicationId" value="{$publicationId|escape}">
|
||||
{/if}
|
||||
{capture assign=availableReviewFilesGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.files.proof.ManageProofFilesGridHandler" op="fetchGrid" submissionId=$submissionId publicationId=$publicationId representationId=$representationId escape=false}{/capture}
|
||||
{load_url_in_div id="availableReviewFilesGrid" url=$availableReviewFilesGridUrl}
|
||||
{/fbvFormSection}
|
||||
|
||||
{fbvFormButtons}
|
||||
{/fbvFormArea}
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,33 @@
|
||||
{**
|
||||
* templates/controllers/grid/files/query/manageQueryNoteFiles.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.
|
||||
*
|
||||
* Allows users to manage the list of files available to a query.
|
||||
*}
|
||||
|
||||
<script>
|
||||
$(function() {ldelim}
|
||||
// Attach the form handler.
|
||||
$('#manageQueryNoteFilesForm').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<form class="pkp_form" id="manageQueryNoteFilesForm" action="{url component="grid.files.query.ManageQueryNoteFilesGridHandler" op="updateQueryNoteFiles" params=$actionArgs submissionId=$submissionId queryId=$queryId noteId=$noteId stageId=$smarty.const.WORKFLOW_STAGE_ID_EDITING}" method="post">
|
||||
<!-- Current query files -->
|
||||
<p>{translate key="editor.submission.query.manageQueryNoteFilesDescription"}</p>
|
||||
|
||||
<div id="existingFilesContainer">
|
||||
{csrf}
|
||||
{fbvFormArea id="manageQueryNoteFiles"}
|
||||
{fbvFormSection}
|
||||
{capture assign=manageQueryNoteFilesGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.files.query.ManageQueryNoteFilesGridHandler" op="fetchGrid" params=$actionArgs submissionId=$submissionId queryId=$queryId noteId=$noteId escape=false}{/capture}
|
||||
{load_url_in_div id="manageQueryNoteFilesGrid" url=$manageQueryNoteFilesGridUrl}
|
||||
{/fbvFormSection}
|
||||
|
||||
{fbvFormButtons}
|
||||
{/fbvFormArea}
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,26 @@
|
||||
{**
|
||||
* templates/controllers/grid/files/review/manageReviewFiles.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.
|
||||
*
|
||||
* Allows editor to add more file to the review (that weren't added when the submission was sent to review)
|
||||
*}
|
||||
|
||||
<script>
|
||||
$(function() {ldelim}
|
||||
// Attach the form handler.
|
||||
$('#manageReviewFilesForm').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
|
||||
{rdelim});
|
||||
</script>
|
||||
<form class="pkp_form" id="manageReviewFilesForm" action="{url component="grid.files.review.ManageReviewFilesGridHandler" op="updateReviewFiles" submissionId=$submissionId|escape stageId=$stageId|escape reviewRoundId=$reviewRoundId|escape}" method="post">
|
||||
<!-- Current review files -->
|
||||
<div id="existingFilesContainer">
|
||||
{csrf}
|
||||
<!-- Available submission files -->
|
||||
{capture assign=availableReviewFilesGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.files.review.ManageReviewFilesGridHandler" op="fetchGrid" submissionId=$submissionId stageId=$stageId reviewRoundId=$reviewRoundId escape=false}{/capture}
|
||||
{load_url_in_div id="availableReviewFilesGrid" url=$availableReviewFilesGridUrl}
|
||||
{fbvFormButtons}
|
||||
</div>
|
||||
</form>
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
{**
|
||||
* templates/controllers/grid/files/selectableSubmissionFileListCategoryGridFilter.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2000-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* Filter template for selectable submission file list category grid.
|
||||
*}
|
||||
<script type="text/javascript">
|
||||
// Attach the form handler to the form.
|
||||
$('#fileListFilterForm').pkpHandler('$.pkp.controllers.form.ToggleFormHandler');
|
||||
</script>
|
||||
<form class="pkp_form filter" id="fileListFilterForm" action="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="fetchGrid"}" method="post">
|
||||
{csrf}
|
||||
{fbvFormArea id="includeAllStagesArea"}
|
||||
{fbvFormSection list="true"}
|
||||
{fbvElement type="checkbox" id="allStages" checked=$filterSelectionData.allStages label="editor.submission.fileList.includeAllStages"}
|
||||
{/fbvFormSection}
|
||||
{/fbvFormArea}
|
||||
</form>
|
||||
@@ -0,0 +1,57 @@
|
||||
{**
|
||||
* templates/controllers/grid/files/submissionDocuments/form/editFileForm.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.
|
||||
*
|
||||
* Library Files form for editing an existing file
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
// Attach the file upload form handler.
|
||||
$(function() {ldelim}
|
||||
$('#uploadForm').pkpHandler(
|
||||
'$.pkp.controllers.form.AjaxFormHandler'
|
||||
);
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<form class="pkp_form" id="uploadForm" action="{url op="updateFile" fileId=$libraryFile->getId()}" method="post">
|
||||
{csrf}
|
||||
<input type="hidden" name="submissionId" value="{$submissionId|escape}" />
|
||||
{fbvFormArea id="name"}
|
||||
{fbvFormSection title="common.name" required=true}
|
||||
{fbvElement type="text" id="libraryFileName" value=$libraryFileName maxlength="255" multilingual=true required=true}
|
||||
{/fbvFormSection}
|
||||
{/fbvFormArea}
|
||||
|
||||
{fbvFormArea id="type"}
|
||||
{fbvFormSection title="common.type" required=true}
|
||||
{fbvElement type="select" from=$fileTypes id="fileType" selected=$libraryFile->getType() defaultValue="" defaultLabel="common.chooseOne"|translate required=true}
|
||||
{/fbvFormSection}
|
||||
{/fbvFormArea}
|
||||
|
||||
{fbvFormArea id="file"}
|
||||
{fbvFormSection title="common.file"}
|
||||
<table id="fileInfo" class="data" width="100%">
|
||||
<tr valign="top">
|
||||
<td width="20%" class="label">{translate key="common.fileName"}</td>
|
||||
<td width="80%" class="value">{$libraryFile->getOriginalFileName()|escape}</a></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="label">{translate key="common.fileSize"}</td>
|
||||
<td class="value">{$libraryFile->getNiceFileSize()}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="label">{translate key="common.dateUploaded"}</td>
|
||||
<td class="value">{$libraryFile->getDateUploaded()|date_format:$datetimeFormatShort}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/fbvFormSection}
|
||||
{/fbvFormArea}
|
||||
|
||||
<p><span class="formRequired">{translate key="common.requiredField"}</span></p>
|
||||
|
||||
{fbvFormButtons}
|
||||
</form>
|
||||
@@ -0,0 +1,55 @@
|
||||
{**
|
||||
* templates/controllers/grid/files/submissionDocuments/form/newFileForm.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.
|
||||
*
|
||||
* Library Files form
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
// Attach the file upload form handler.
|
||||
$(function() {ldelim}
|
||||
$('#uploadForm').pkpHandler(
|
||||
'$.pkp.controllers.form.FileUploadFormHandler',
|
||||
{ldelim}
|
||||
$uploader: $('#plupload'),
|
||||
uploaderOptions: {ldelim}
|
||||
uploadUrl: {url|json_encode op="uploadFile" fileType=$fileType submissionId=$submissionId escape=false},
|
||||
baseUrl: {$baseUrl|json_encode}
|
||||
{rdelim}
|
||||
{rdelim}
|
||||
);
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<form class="pkp_form" id="uploadForm" action="{url op="saveFile"}" method="post">
|
||||
{csrf}
|
||||
|
||||
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="libraryFileUploadNotification"}
|
||||
<input type="hidden" name="temporaryFileId" id="temporaryFileId" value="" />
|
||||
<input type="hidden" name="submissionId" value="{$submissionId|escape}" />
|
||||
|
||||
{fbvFormArea id="name"}
|
||||
{fbvFormSection title="common.name" required=true}
|
||||
{fbvElement type="text" multilingual="true" id="libraryFileName" value=$libraryFileName maxlength="255" required=true}
|
||||
{/fbvFormSection}
|
||||
{/fbvFormArea}
|
||||
|
||||
{fbvFormArea id="type"}
|
||||
{fbvFormSection title="common.type" required=true}
|
||||
{fbvElement type="select" from=$fileTypes id="fileType" selected=$fileType defaultValue="" defaultLabel="common.chooseOne"|translate required=true}
|
||||
{/fbvFormSection}
|
||||
{/fbvFormArea}
|
||||
|
||||
{fbvFormArea id="file"}
|
||||
{fbvFormSection title="common.file" required=true}
|
||||
{include file="controllers/fileUploadContainer.tpl" id="plupload"}
|
||||
{/fbvFormSection}
|
||||
{/fbvFormArea}
|
||||
|
||||
<p><span class="formRequired">{translate key="common.requiredField"}</span></p>
|
||||
|
||||
{fbvFormButtons}
|
||||
</form>
|
||||
Reference in New Issue
Block a user