first commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
{**
|
||||
* templates/controllers/informationCenter/informationCenter.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.
|
||||
*
|
||||
* Display information center's main modal.
|
||||
*}
|
||||
|
||||
{assign var="rootId" value="informationCenter-"|uniqid|escape}
|
||||
<script type="text/javascript">
|
||||
// Attach the Information Center handler.
|
||||
$(function() {ldelim}
|
||||
$('#{$rootId}').pkpHandler(
|
||||
'$.pkp.controllers.TabHandler', {ldelim}
|
||||
selected: {$selectedTabIndex|escape:"javascript"}
|
||||
{rdelim}
|
||||
);
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<div id="{$rootId}" class="pkp_controllers_informationCenter pkp_controllers_tab">
|
||||
<ul>
|
||||
{if !$removeHistoryTab}
|
||||
<li><a href="{url op="viewHistory" params=$linkParams}">{translate key="submission.informationCenter.history"}</a></li>
|
||||
{/if}
|
||||
<li><a href="{url op="viewNotes" params=$linkParams}">{translate key="submission.informationCenter.notes"}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -0,0 +1,31 @@
|
||||
{**
|
||||
* templates/controllers/informationCenter/newNoteForm.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.
|
||||
*
|
||||
* Display submission file notes/note form in information center.
|
||||
*}
|
||||
|
||||
<script>
|
||||
// Attach the Notes handler.
|
||||
$(function() {ldelim}
|
||||
$('#newNoteForm').pkpHandler(
|
||||
'$.pkp.controllers.form.AjaxFormHandler',
|
||||
{ldelim}
|
||||
baseUrl: {$baseUrl|json_encode}
|
||||
{rdelim}
|
||||
);
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<form class="pkp_form" id="newNoteForm" action="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="saveNote" params=$linkParams}" method="post">
|
||||
<div id="newNoteContainer">
|
||||
{csrf}
|
||||
{fbvFormSection title="informationCenter.addNote" for="newNote"}
|
||||
{fbvElement type="textarea" id="newNote"}
|
||||
{/fbvFormSection}
|
||||
{fbvFormButtons hideCancel=true submitText=$submitNoteText}
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,53 @@
|
||||
{**
|
||||
* templates/controllers/informationCenter/note.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.
|
||||
*
|
||||
* Display a single information center note.
|
||||
*
|
||||
*}
|
||||
|
||||
{* These variables are both "safe" to be used unescaped. *}
|
||||
{assign var="noteId" value=$note->getId()}
|
||||
{assign var="formId" value="deleteNoteForm-$noteId"}
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {ldelim}
|
||||
// Attach the form handler.
|
||||
$('#{$formId}').pkpHandler('$.pkp.controllers.form.AjaxFormHandler', {ldelim}
|
||||
baseUrl: {$baseUrl|json_encode}
|
||||
{rdelim});
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<div id="note-{$noteId}" class="note">
|
||||
<div class="details">
|
||||
<span class="user">
|
||||
{assign var=noteUser value=$note->getUser()}
|
||||
{$noteUser->getFullName()|escape}
|
||||
</span>
|
||||
<span class="date">
|
||||
{$note->getDateCreated()|date_format:$datetimeFormatShort}
|
||||
</span>
|
||||
{if ($notesDeletable && array_intersect(array(\PKP\security\Role::ROLE_ID_MANAGER, \PKP\security\Role::ROLE_ID_SUB_EDITOR), (array)$userRoles))}
|
||||
<div class="actions">
|
||||
{if $notesDeletable && array_intersect(array(\PKP\security\Role::ROLE_ID_MANAGER, \PKP\security\Role::ROLE_ID_SUB_EDITOR), (array)$userRoles)}
|
||||
<form class="pkp_form" id="{$formId}" action="{url op="deleteNote" noteId=$noteId params=$linkParams}">
|
||||
{csrf}
|
||||
{assign var=deleteNoteButtonId value="deleteNote-$noteId"}
|
||||
{include file="linkAction/buttonConfirmationLinkAction.tpl" titleIcon="modal_delete" buttonSelector="#$deleteNoteButtonId" dialogText="informationCenter.deleteConfirm"}
|
||||
<button type="submit" id="{$deleteNoteButtonId}" class="pkp_button pkp_button_offset">{translate key='common.delete'}</button>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="message">
|
||||
{if $noteFileDownloadLink}
|
||||
{include file="linkAction/linkAction.tpl" action=$noteFileDownloadLink contextId=$note->getId()}
|
||||
{/if}
|
||||
{include file="controllers/revealMore.tpl" content=$note->getContents()|strip_unsafe_html}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,35 @@
|
||||
{**
|
||||
* templates/controllers/informationCenter/notes.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.
|
||||
*
|
||||
* @brief Display submission file notes/note form in information center.
|
||||
*
|
||||
* @uses string {$notesList} Compiled template displaying notes
|
||||
* @uses string {$pastNotesList} Compiled template displaying past notes
|
||||
*}
|
||||
<script type="text/javascript">
|
||||
// Attach the Notes handler.
|
||||
$(function() {ldelim}
|
||||
$('#informationCenterNotes').pkpHandler(
|
||||
'$.pkp.controllers.informationCenter.NotesHandler' );
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<div id="informationCenterNotes">
|
||||
|
||||
{$notesList}
|
||||
|
||||
{if $showEarlierEntries}
|
||||
{include file="controllers/extrasOnDemand.tpl"
|
||||
id="showPastNotesLink"
|
||||
moreDetailsText="informationCenter.pastNotes"
|
||||
lessDetailsText="informationCenter.pastNotes"
|
||||
extraContent=$pastNotesList
|
||||
}
|
||||
{/if}
|
||||
|
||||
{include file=$newNoteFormTemplate}
|
||||
</div>
|
||||
@@ -0,0 +1,19 @@
|
||||
{**
|
||||
* templates/controllers/informationCenter/notesList.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.
|
||||
*
|
||||
* Display submission file note list in information center.
|
||||
*}
|
||||
|
||||
<div id="{$notesListId}" class="pkp_notes_list">
|
||||
{foreach from=$notes item=$note}
|
||||
{assign var=noteId value=$note->getId()}
|
||||
{include file="controllers/informationCenter/note.tpl"}
|
||||
{/foreach}
|
||||
{if $notes->isEmpty()}
|
||||
<p class="no_notes">{translate key="informationCenter.noNotes"}</p>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -0,0 +1,14 @@
|
||||
{**
|
||||
* templates/controllers/informationCenter/submissionHistory.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.
|
||||
*
|
||||
* Information Center submission history tab.
|
||||
*}
|
||||
|
||||
{help file="editorial-workflow" section="editorial-history" class="pkp_help_tab"}
|
||||
|
||||
{capture assign=submissionHistoryGridUrl}{url params=$gridParameters router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.eventLog.SubmissionEventLogGridHandler" op="fetchGrid" escape=false}{/capture}
|
||||
{load_url_in_div id="submissionHistoryGridContainer" url=$submissionHistoryGridUrl}
|
||||
Reference in New Issue
Block a user