#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Login widget -->
<#macro assets>
<#-- RY This test should be replaced by login widget controller logic which displays different assets macros depending
on login status, but currently there's no widget-specific doAssets() method. See NIHVIVO-1357. The test doesn't work
because we don't have the user in the template data model when we generate the assets. This can also be fixed by
NIHVIVO-1357.
<#if ! user.loggedIn> -->
${stylesheets.add('')}
<#-- ${scripts.add("")} -->
${headScripts.add('')}
<#-- #if> -->
#macro>
<#macro loginForm>
<#assign infoClassHide = ''/>
<#assign infoClassShow = ''/>
<#-- Don't display the JavaScript required to edit message on the home page even if JavaScript is unavailable -->
<#if currentServlet != 'home'>
#if>
${errorMessage} ${errorMessage} ${i18n().minimum_six_chars}${i18n().login_button}
<#if infoMessage??>
${infoMessage}
#if>
<#if errorMessage??>
<#assign infoClassShow = ' id="vivoAccountError"'/>
${i18n().or} ${siteName} ${i18n().account}
#if>
${i18n().change_password_to_login}
<#if errorMessage??>
${i18n().already_logged_in}
#macro> <#macro error>${i18n().we_have_an_error}
#macro>