-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from IQSS/submission_checklist_update
Submission checklist update + email variables in activity log
- Loading branch information
Showing
7 changed files
with
198 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{** | ||
* templates/submission/form/step1.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. | ||
* | ||
* Step 1 of author submission process. | ||
*} | ||
<script type="text/javascript"> | ||
$(function() {ldelim} | ||
// Attach the form handler. | ||
$('#submitStep1Form').pkpHandler('$.pkp.pages.submission.SubmissionStep1FormHandler'); | ||
{rdelim}); | ||
</script> | ||
|
||
<form class="pkp_form" id="submitStep1Form" method="post" action="{url op="saveStep" path=$submitStep}"> | ||
{csrf} | ||
{if $submissionId}<input type="hidden" name="submissionId" value="{$submissionId|escape}"/>{/if} | ||
<input type="hidden" name="submissionChecklist" value="1"/> | ||
|
||
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="submitStep1FormNotification"} | ||
|
||
{fbvFormArea id="submissionStep1"} | ||
|
||
{$additionalFormContent1} | ||
|
||
{include file="submission/submissionLocale.tpl"} | ||
|
||
{$additionalFormContent2} | ||
|
||
{include file="submission/form/categories.tpl"} | ||
|
||
{* PPR SUBMISSION CHECKLIST OVERRIDE *} | ||
{* REMOVE CHECKBOXES => JUST DISPLAY THE CHECKLIST *} | ||
{if $currentContext->getLocalizedData('submissionChecklist')} | ||
{fbvFormSection list="true" label="submission.submit.submissionChecklist" description="submission.submit.submissionChecklistDescription" id="ppr_start_submissionChecklist"} | ||
{foreach name=checklist from=$currentContext->getLocalizedData('submissionChecklist') key=checklistId item=checklistItem} | ||
<li> | ||
<label>{$checklistItem.content|nl2br}</label> | ||
</li> | ||
{* CHECKLIST ITEMS ARE COMPULSORY AND VALIDATED IN THE BACKEND *} | ||
{fbvElement type="hidden" id="checklist-$checklistId" value=1} | ||
{/foreach} | ||
{/fbvFormSection} | ||
{/if} | ||
{* PPR SUBMISSION CHECKLIST OVERRIDE END *} | ||
|
||
{* Cover Note To Editor*} | ||
{fbvFormSection for="commentsToEditor" title="submission.submit.coverNote"} | ||
{fbvElement type="textarea" name="commentsToEditor" id="commentsToEditor" value=$commentsToEditor rich=true} | ||
{/fbvFormSection} | ||
|
||
{* Submitting in which role? *} | ||
{if $noExistingRoles} | ||
{if count($userGroupOptions) > 1} | ||
{fbvFormSection label="submission.submit.availableUserGroups" description="submission.submit.availableUserGroupsDescription" list=true required=true} | ||
{foreach from=$userGroupOptions key="userGroupId" item="userGroupName"} | ||
{if $defaultGroup->getId() == $userGroupId}{assign var="checked" value=true}{else}{assign var="checked" value=false}{/if} | ||
{fbvElement type="radio" id="userGroup"|concat:$userGroupId name="userGroupId" value=$userGroupId checked=$checked label=$userGroupName translate=false} | ||
{/foreach} | ||
{/fbvFormSection} | ||
{else} | ||
{foreach from=$userGroupOptions key="userGroupId" item="userGroupName"} | ||
{capture assign="onlyUserGroupId"}{$userGroupId}{/capture} | ||
{/foreach} | ||
{fbvFormSection label="submission.submit.contactConsent" list=true required=true} | ||
{fbvElement type="checkbox" id="userGroupId" required=true value=$onlyUserGroupId label="submission.submit.contactConsentDescription"} | ||
{/fbvFormSection} | ||
{/if} | ||
|
||
{* If user has existing roles, show available roles or automatically select single role *} | ||
{else} | ||
{if count($userGroupOptions) > 1} | ||
{fbvFormSection label="submission.submit.availableUserGroups" list=true required=true} | ||
{if $managerGroups} | ||
{translate key='submission.submit.userGroupDescriptionManagers' managerGroups=$managerGroups} | ||
{else} | ||
{translate key='submission.submit.userGroupDescription'} | ||
{/if} | ||
{foreach from=$userGroupOptions key="userGroupId" item="userGroupName"} | ||
{if $defaultGroup->getId() == $userGroupId}{assign var="checked" value=true}{else}{assign var="checked" value=false}{/if} | ||
{fbvElement type="radio" id="userGroup"|concat:$userGroupId name="userGroupId" value=$userGroupId checked=$checked label=$userGroupName translate=false} | ||
{/foreach} | ||
{/fbvFormSection} | ||
{elseif count($userGroupOptions) == 1} | ||
{foreach from=$userGroupOptions key="userGroupId" item="authorUserGroupName"}{assign var=userGroupId value=$userGroupId}{/foreach} | ||
{fbvElement type="hidden" id="userGroupId" value=$userGroupId} | ||
{/if} | ||
{/if} | ||
|
||
{if $copyrightNotice} | ||
{fbvFormSection title="submission.submit.copyrightNoticeAgreementLabel"} | ||
{$copyrightNotice} | ||
{fbvFormSection list="true"} | ||
{fbvElement type="checkbox" id="copyrightNoticeAgree" required=true value=1 label="submission.submit.copyrightNoticeAgree" checked=$submissionId} | ||
{/fbvFormSection} | ||
{/fbvFormSection} | ||
{/if} | ||
|
||
{* Privacy Statement *} | ||
{if $hasPrivacyStatement} | ||
{fbvFormSection list="true"} | ||
{capture assign="privacyUrl"}{url router=$smarty.const.ROUTE_PAGE page="about" op="privacy"}{/capture} | ||
{capture assign="privacyLabel"}{translate key="user.register.form.privacyConsent" privacyUrl=$privacyUrl}{/capture} | ||
{fbvElement type="checkbox" id="privacyConsent" required=true value=1 label=$privacyLabel translate=false checked=$privacyConsent} | ||
{/fbvFormSection} | ||
{/if} | ||
|
||
{* Buttons *} | ||
{fbvFormButtons id="step1Buttons" submitText="common.saveAndContinue"} | ||
|
||
<p><span class="formRequired">{translate key="common.requiredField"}</span></p> | ||
{/fbvFormArea} | ||
|
||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.