first commit
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
{**
|
||||
* templates/controllers/grid/queries/form/queryForm.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 Query grid form
|
||||
*
|
||||
*}
|
||||
|
||||
{if !count($allParticipants)}
|
||||
{translate key="submission.query.noParticipantOptions"}
|
||||
{else}
|
||||
<script>
|
||||
// Attach the handler.
|
||||
$(function() {ldelim}
|
||||
$('#queryForm').pkpHandler(
|
||||
'$.pkp.controllers.grid.queries.QueryFormHandler',
|
||||
{ldelim}
|
||||
cancelUrl: {if $isNew}{url|json_encode op="deleteQuery" queryId=$queryId csrfToken=$csrfToken params=$actionArgs escape=false}{else}null{/if},
|
||||
templateUrl: {url|json_encode router=$smarty.const.ROUTE_COMPONENT component='grid.queries.QueriesGridHandler' op='fetchTemplateBody' stageId=$stageId submissionId=$assocId escape=false},
|
||||
{rdelim}
|
||||
);
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<form class="pkp_form" id="queryForm" method="post" action="{url op="updateQuery" queryId=$queryId params=$actionArgs wasNew=$isNew}">
|
||||
{csrf}
|
||||
|
||||
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="queryFormNotification"}
|
||||
|
||||
{fbvFormSection list=true title="editor.submission.stageParticipants"}
|
||||
{foreach from=$allParticipants item="participant" key="id"}
|
||||
{fbvElement type="checkbox" id="users[]" value=$id checked=in_array($id, $assignedParticipants) label=$participant|escape translate=false}
|
||||
{/foreach}
|
||||
{/fbvFormSection}
|
||||
|
||||
{if count($templates)}
|
||||
{fbvFormArea id="queryTemplateArea"}
|
||||
{fbvFormSection title="stageParticipants.notify.chooseMessage" for="template" size=$fbvStyles.size.medium}
|
||||
{fbvElement type="select" from=$templates translate=false id="template" selected=$template defaultValue="" defaultLabel=""}
|
||||
{/fbvFormSection}
|
||||
{/fbvFormArea}
|
||||
{/if}
|
||||
|
||||
{fbvFormArea id="queryContentsArea"}
|
||||
{fbvFormSection title="common.subject" for="subject" required="true"}
|
||||
{fbvElement type="text" id="subject" value=$subject required="true"}
|
||||
{/fbvFormSection}
|
||||
|
||||
{fbvFormSection title="stageParticipants.notify.message" for="comment" required="true"}
|
||||
{fbvElement type="textarea" id="comment" rich=true value=$comment required="true"}
|
||||
{/fbvFormSection}
|
||||
{/fbvFormArea}
|
||||
|
||||
{fbvFormArea id="queryNoteFilesArea"}
|
||||
{capture assign=queryNoteFilesGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.files.query.QueryNoteFilesGridHandler" op="fetchGrid" params=$actionArgs queryId=$queryId noteId=$noteId escape=false}{/capture}
|
||||
{load_url_in_div id="queryNoteFilesGrid" url=$queryNoteFilesGridUrl}
|
||||
{/fbvFormArea}
|
||||
|
||||
<p><span class="formRequired">{translate key="common.requiredField"}</span></p>
|
||||
|
||||
{if $allowedEditTimeNotice['show']}
|
||||
<p><span class="sub_label">{translate key="submission.query.allowedEditTime" allowedEditTimeNoticeLimit=$allowedEditTimeNotice['limit']}</span></p>
|
||||
{/if}
|
||||
|
||||
{fbvFormButtons id="addQueryButton"}
|
||||
|
||||
</form>
|
||||
{/if}
|
||||
@@ -0,0 +1,37 @@
|
||||
{**
|
||||
* templates/controllers/grid/queries/queryNoteForm.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.
|
||||
*
|
||||
* Read a query.
|
||||
*
|
||||
*}
|
||||
<script>
|
||||
// Attach the handler.
|
||||
$(function() {ldelim}
|
||||
$('#noteForm').pkpHandler(
|
||||
'$.pkp.controllers.form.CancelActionAjaxFormHandler',
|
||||
{ldelim}
|
||||
cancelUrl: {url|json_encode op="deleteNote" params=$actionArgs csrfToken=$csrfToken noteId=$noteId escape=false}
|
||||
{rdelim}
|
||||
);
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<form class="pkp_form" id="noteForm" action="{url op="insertNote" params=$actionArgs noteId=$noteId escape=false}" method="post">
|
||||
{csrf}
|
||||
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="queryNoteFormNotification"}
|
||||
|
||||
{fbvFormSection title="stageParticipants.notify.message" for="comment" required="true"}
|
||||
{fbvElement type="textarea" id="comment" rich=true value=$comment required="true"}
|
||||
{/fbvFormSection}
|
||||
|
||||
{fbvFormArea id="queryNoteFilesArea"}
|
||||
{capture assign=queryNoteFilesGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.files.query.QueryNoteFilesGridHandler" op="fetchGrid" params=$actionArgs noteId=$noteId escape=false}{/capture}
|
||||
{load_url_in_div id="queryNoteFilesGrid" url=$queryNoteFilesGridUrl}
|
||||
{/fbvFormArea}
|
||||
|
||||
{fbvFormButtons id="addNoteButton"}
|
||||
</form>
|
||||
@@ -0,0 +1,13 @@
|
||||
{**
|
||||
* templates/controllers/grid/queries/participants.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.
|
||||
*
|
||||
* Show the list of participants.
|
||||
*
|
||||
*}
|
||||
{foreach from=$participants item=user}
|
||||
<li>{$user->getFullName()|escape} ({$user->getUsername()|escape})</li>
|
||||
{/foreach}
|
||||
@@ -0,0 +1,48 @@
|
||||
{**
|
||||
* templates/controllers/grid/queries/readQuery.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.
|
||||
*
|
||||
* Read a query.
|
||||
*
|
||||
*}
|
||||
<script>
|
||||
$(function() {ldelim}
|
||||
$('#readQueryContainer').pkpHandler(
|
||||
'$.pkp.controllers.grid.queries.ReadQueryHandler',
|
||||
{ldelim}
|
||||
fetchNoteFormUrl: {url|json_encode router=\PKP\core\PKPApplication::ROUTE_COMPONENT component=$queryNotesGridHandlerName op="addNote" params=$requestArgs queryId=$query->getId() escape=false},
|
||||
fetchParticipantsListUrl: {url|json_encode router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.queries.QueriesGridHandler" op="participants" params=$requestArgs queryId=$query->getId() escape=false}
|
||||
{rdelim}
|
||||
);
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<div id="readQueryContainer" class="pkp_controllers_query">
|
||||
<h4>
|
||||
{translate key="editor.submission.stageParticipants"}
|
||||
{if $editAction}
|
||||
{include file="linkAction/linkAction.tpl" action=$editAction contextId="editQuery"}
|
||||
{/if}
|
||||
</h4>
|
||||
<ul id="participantsListPlaceholder" class="participants"></ul>
|
||||
|
||||
{capture assign=queryNotesGridUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component=$queryNotesGridHandlerName op="fetchGrid" params=$requestArgs queryId=$query->getId() escape=false}{/capture}
|
||||
{load_url_in_div id="queryNotesGrid" url=$queryNotesGridUrl}
|
||||
|
||||
<div class="queryEditButtons">
|
||||
<div class="openNoteForm add_note">
|
||||
<a href="#">
|
||||
{translate key="submission.query.addNote"}
|
||||
</a>
|
||||
</div>
|
||||
<div class="leaveQueryForm leave_query" {if !$showLeaveQueryButton}style="display: none;"{/if}">
|
||||
{include file="linkAction/linkAction.tpl" action=$leaveQueryLinkAction contextId="leaveQueryForm"}
|
||||
</div>
|
||||
<div class="pkp_spinner"></div>
|
||||
</div>
|
||||
|
||||
<div id="newNotePlaceholder"></div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user