<?php
/* Smarty version 3.1.39, created on 2025-12-13 04:55:08
  from 'app:controllersgridqueriesrea' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.39',
  'unifunc' => 'content_693cf1ac78dfa9_92054309',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'c356a625bff672af4af4dea1804040b77ada2986' => 
    array (
      0 => 'app:controllersgridqueriesrea',
      1 => 1664905330,
      2 => 'app',
    ),
  ),
  'includes' => 
  array (
    'app:linkAction/linkAction.tpl' => 2,
  ),
),false)) {
function content_693cf1ac78dfa9_92054309 (Smarty_Internal_Template $_smarty_tpl) {
echo '<script'; ?>
>
	$(function() {
		$('#readQueryContainer').pkpHandler(
			'$.pkp.controllers.grid.queries.ReadQueryHandler',
			{
				fetchNoteFormUrl: <?php echo json_encode(call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0], array( array('router'=>(defined('ROUTE_COMPONENT') ? constant('ROUTE_COMPONENT') : null),'component'=>$_smarty_tpl->tpl_vars['queryNotesGridHandlerName']->value,'op'=>"addNote",'params'=>$_smarty_tpl->tpl_vars['requestArgs']->value,'queryId'=>$_smarty_tpl->tpl_vars['query']->value->getId(),'escape'=>false),$_smarty_tpl ) ));?>
,
				fetchParticipantsListUrl: <?php echo json_encode(call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0], array( array('router'=>(defined('ROUTE_COMPONENT') ? constant('ROUTE_COMPONENT') : null),'component'=>"grid.queries.QueriesGridHandler",'op'=>"participants",'params'=>$_smarty_tpl->tpl_vars['requestArgs']->value,'queryId'=>$_smarty_tpl->tpl_vars['query']->value->getId(),'escape'=>false),$_smarty_tpl ) ));?>

			}
		);
	});
<?php echo '</script'; ?>
>

<div id="readQueryContainer" class="pkp_controllers_query">
    <h4>
        <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0], array( array('key'=>"editor.submission.stageParticipants"),$_smarty_tpl ) );?>

		<?php if ($_smarty_tpl->tpl_vars['editAction']->value) {?>
			<?php $_smarty_tpl->_subTemplateRender("app:linkAction/linkAction.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('action'=>$_smarty_tpl->tpl_vars['editAction']->value,'contextId'=>"editQuery"), 0, false);
?>
		<?php }?>
    </h4>
    <ul id="participantsListPlaceholder" class="participants"></ul>

	<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, 'default', 'queryNotesGridUrl', null);
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0], array( array('router'=>(defined('ROUTE_COMPONENT') ? constant('ROUTE_COMPONENT') : null),'component'=>$_smarty_tpl->tpl_vars['queryNotesGridHandlerName']->value,'op'=>"fetchGrid",'params'=>$_smarty_tpl->tpl_vars['requestArgs']->value,'queryId'=>$_smarty_tpl->tpl_vars['query']->value->getId(),'escape'=>false),$_smarty_tpl ) );
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>
	<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['load_url_in_div'][0], array( array('id'=>"queryNotesGrid",'url'=>$_smarty_tpl->tpl_vars['queryNotesGridUrl']->value),$_smarty_tpl ) );?>


	<div class="queryEditButtons">
		<div class="openNoteForm add_note">
	    	<a href="#">
	        	<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0], array( array('key'=>"submission.query.addNote"),$_smarty_tpl ) );?>

			</a>
		</div>
		<div class="leaveQueryForm leave_query" <?php if (!$_smarty_tpl->tpl_vars['showLeaveQueryButton']->value) {?>style="display: none;"<?php }?>">
			<?php $_smarty_tpl->_subTemplateRender("app:linkAction/linkAction.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('action'=>$_smarty_tpl->tpl_vars['leaveQueryLinkAction']->value,'contextId'=>"leaveQueryForm"), 0, true);
?>
		</div>
		<div class="pkp_spinner"></div>
	</div>

	<div id="newNotePlaceholder"></div>
</div>
<?php }
}
