{** * templates/user/apiProfileForm.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. * * Public user profile form. *} {* Help Link *} {help file="user-profile.md" class="pkp_help_tab"}
{csrf} {include file="controllers/notification/inPlaceNotification.tpl" notificationId="apiProfileNotification"} {fbvFormSection list=true} {fbvElement id=apiKeyEnabled type="checkbox" label="user.apiKeyEnabled" checked=$apiKeyEnabled|compare:true:true:false value=1} {fbvElement id=generateApiKey type="checkbox" label="user.apiKey.generate" value=1} {/fbvFormSection}

{translate key="user.apiKey.generateWarning"}

{fbvFormSection} {if !$apiKey}{assign var=apiKey value="common.none"|translate}{/if} {fbvElement id=apiKey type="text" label="user.apiKey" readonly="true" value=$apiKey size=$fbvStyles.size.MEDIUM} {/fbvFormSection} {fbvFormButtons hideCancel=true submitText="common.save"}

{capture assign="privacyUrl"}{url router=$smarty.const.ROUTE_PAGE page="about" op="privacy"}{/capture} {translate key="user.privacyLink" privacyUrl=$privacyUrl}