first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-06-08 17:09:23 -04:00
commit df3a033196
17887 changed files with 8637778 additions and 0 deletions
@@ -0,0 +1,28 @@
{**
* templates/manager/reviewForms/previewReviewForm.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.
*
* Preview of a review form.
*
*}
<script>
$(function() {ldelim}
// Attach the form handler.
$('#previewReviewForm').pkpHandler(
'$.pkp.controllers.form.AjaxFormHandler',
{ldelim}
trackFormChanges: false
{rdelim}
);
{rdelim});
</script>
<form class="pkp_form" id="previewReviewForm" method="post" action="#">
<h3>{$title|escape}</h3>
<p>{$description}</p>
{include file="reviewer/review/reviewFormResponse.tpl"}
</form>
@@ -0,0 +1,93 @@
{**
* templates/manager/reviewForms/reviewFormElementForm.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.
*
* Form to create/modify a review form element.
*
*}
<script>
$(function() {ldelim}
// Attach the form handler.
$('#reviewFormElementForm').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
{rdelim});
</script>
<script type="text/javascript">
<!--
function togglePossibleResponses(newValue, multipleResponsesElementTypesString) {ldelim}
if (multipleResponsesElementTypesString.indexOf(';'+newValue+';') != -1) {ldelim}
document.getElementById('reviewFormElementForm').addResponse.disabled=false;
{rdelim} else {ldelim}
if (document.getElementById('reviewFormElementForm').addResponse.disabled == false) {ldelim}
alert({translate|json_encode key="manager.reviewFormElement.changeType"});
{rdelim}
document.getElementById('reviewFormElementForm').addResponse.disabled=true;
{rdelim}
{rdelim}
// -->
</script>
<form class="pkp_form" id="reviewFormElementForm" method="post" action="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.settings.reviewForms.ReviewFormElementsGridHandler" op="updateReviewFormElement" anchor="possibleResponses"}">
{csrf}
{fbvElement id="reviewFormId" type="hidden" name="reviewFormId" value=$reviewFormId}
{fbvElement id="reviewFormElementId" type="hidden" name="reviewFormElementId" value=$reviewFormElementId}
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="reviewFormElementsNotification"}
{fbvFormArea id="reviewFormElementForm"}
<!-- question -->
{fbvFormSection title="manager.reviewFormElements.question" required=true for="question"}
{fbvElement type="textarea" id="question" value=$question multilingual=true rich=true}
{/fbvFormSection}
<!-- description -->
{fbvFormSection title="manager.reviewFormElements.description" for="description"}
{fbvElement type="textarea" id="description" value=$description multilingual=true rich=true}
{/fbvFormSection}
<!-- required checkbox -->
{fbvFormSection for="required" list=true}
{if $required}
{assign var="checked" value=true}
{else}
{assign var="checked" value=false}
{/if}
{fbvElement type="checkbox" id="required" label="manager.reviewFormElements.required" checked=$checked inline="true"}
{/fbvFormSection}
<!-- included in message to author checkbox -->
{fbvFormSection for="included" list=true}
{if $included}
{assign var="checked" value=true}
{else}
{assign var="checked" value=false}
{/if}
{fbvElement type="checkbox" id="included" label="manager.reviewFormElements.included" checked=$checked inline="true"}
{/fbvFormSection}
<!-- element type drop-down -->
{fbvFormSection for="elementType" list=true}
<!-- when user makes a selection (onchange), warn them if necessary. -->
<!-- also display/hide options list builder if appropriate. -->
<!-- look to see how this is done elsewhere under the new JS framework -->
{fbvElement type="select" label="manager.reviewFormElements.elementType" id="elementType" defaultLabel="" from=$reviewFormElementTypeOptions selected=$elementType size=$fbvStyles.size.MEDIUM required=true}
{/fbvFormSection}
<!-- Options listbuilder. Activated for some element types. -->
<div id="elementOptions" class="full left">
<div id="elementOptionsContainer" class="full left">
{capture assign=elementOptionsUrl}{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="listbuilder.settings.reviewForms.ReviewFormElementResponseItemListbuilderHandler" op="fetch" reviewFormId=$reviewFormId reviewFormElementId=$reviewFormElementId escape=false}{/capture}
{load_url_in_div id="elementOptionsListbuilderContainer" url=$elementOptionsUrl}
</div>
</div>
<!-- required field text -->
<p><span class="formRequired">{translate key="common.requiredField"}</span></p>
<!-- submit button -->
{fbvFormButtons id="reviewFormElementFormSubmit" submitText="common.save"}
{/fbvFormArea}
</form>
@@ -0,0 +1,38 @@
{**
* templates/manager/reviewForms/reviewFormForm.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.
*
* Form to create/modify a review form.
*
*}
<script>
$(function() {ldelim}
// Attach the form handler.
$('#reviewFormForm').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
{rdelim});
</script>
<form class="pkp_form" id="reviewFormForm" method="post" action="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT component="grid.settings.reviewForms.ReviewFormGridHandler" op="updateReviewForm"}">
{csrf}
{if $reviewFormId}
{fbvElement id="reviewFormId" type="hidden" name="reviewFormId" value=$reviewFormId}
{/if}
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="reviewFormsNotification"}
{fbvFormArea id="reviewFormForm"}
{fbvFormSection title="manager.reviewForms.title" required=true for="title"}
{fbvElement type="text" id="title" value=$title multilingual=true required=true}
{/fbvFormSection}
{fbvFormSection title="manager.reviewForms.description" for="description"}
{fbvElement type="textarea" id="description" value=$description multilingual=true rich=true}
{/fbvFormSection}
<p><span class="formRequired">{translate key="common.requiredField"}</span></p>
{fbvFormButtons id="reviewFormFormSubmit" submitText="common.save"}
{/fbvFormArea}
</form>