{** * templates/user/userGroups.tpl * * Copyright (c) 2014-2018 Simon Fraser University * Copyright (c) 2003-2018 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * The user group (role) selection part of the registration and profile forms. * @uses $contexts array List of journals/presses on this site that have enabled registration * @uses $showOtherContexts bool Whether or not to show the other contexts selection *} {fbvFormArea id="userGroups" title="user.roles" class=border} {if $currentContext} {translate|assign:"userGroupSectionLabel" key="user.register.registerAs" contextName=$currentContext->getLocalizedName()} {fbvFormSection label=$userGroupSectionLabel translate=false list=true} {include file="user/userGroupSelfRegistration.tpl" context=$currentContext authorUserGroups=$authorUserGroups reviewerUserGroups=$reviewerUserGroups readerUserGroups=$readerUserGroups} {/fbvFormSection} {/if} {if $showOtherContexts} {capture assign="otherContextContent"} {foreach from=$contexts item=context} {if !$currentContext || $context->getId() != $currentContext->getId()} {fbvFormSection title=$context->getLocalizedName() list=true translate=false} {include file="user/userGroupSelfRegistration.tpl" context=$context authorUserGroups=$authorUserGroups reviewerUserGroups=$reviewerUserGroups} {/fbvFormSection} {/if} {/foreach} {/capture} {if $currentContext} {fbvFormSection}