{** * templates/controllers/grid/queries/form/queryForm.tpl * * Copyright (c) 2014-2019 Simon Fraser University * Copyright (c) 2003-2019 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @brief Query grid form * * @uses $hasParticipants boolean Are any participants available * @uses $queryParticipantsListData array JSON-encoded data for the SelectUserListPanel *} {if !$hasParticipants} {translate key="submission.query.noParticipantOptions"} {else}
{csrf} {include file="controllers/notification/inPlaceNotification.tpl" notificationId="queryFormNotification"} {if $queryParticipantsListData} {fbvFormSection} {assign var="uuid" value=""|uniqid|escape}
{/fbvFormSection} {/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=$smarty.const.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}

{translate key="common.requiredField"}

{fbvFormButtons id="addQueryButton"}
{/if}