{{if $login !== NULL}}
customer_submitted )}}data-regform="true"{{endif}}> {{$usernamePasswordMethods = $login->usernamePasswordMethods();}} {{$buttonMethods = $login->buttonMethods();}} {{if \IPS\Login::registrationType() != 'disabled' or ( $usernamePasswordMethods and $buttonMethods )}}

{lang="returning_member"}

{{if $loginError !== NULL}} {template="message" group="global" location="global" app="core" params="$loginError, 'error'"}
{{endif}}
csrfKey"}"> {{if $usernamePasswordMethods}} {template="loginForm" app="core" group="system" params="$login"} {{elseif $buttonMethods}}
{{foreach $buttonMethods as $method}}
{$method->button()|raw}
{{endforeach}}
{{endif}}
{{if \IPS\Login::registrationType() != 'disabled'}}

{lang="new_customers"}

{lang="new_customer_blurb"}

{{if \IPS\Login::registrationType() == 'redirect'}} allow_reg_target"}" target="_blank" rel="noopener" class='ipsButton ipsButton_primary ipsButton_medium'>{lang="sign_up"} {{else}} {{endif}}
{{endif}} {{if $usernamePasswordMethods and $buttonMethods}}
csrfKey"}">

{lang="sign_in_with_these"}

{{foreach $buttonMethods as $method}}
{$method->button()|raw}
{{endforeach}}
{{endif}}

{lang="create_new_account"}

{$informationForm|raw}
{{else}}
{{if $loginError !== NULL}} {template="message" group="global" location="global" app="core" params="$loginError, 'error'"}
{{endif}}
csrfKey"}"> {{if $usernamePasswordMethods}} {template="loginForm" app="core" group="system" params="$login"} {{elseif $buttonMethods}}
{{foreach $buttonMethods as $method}}
{$method->button()|raw}
{{endforeach}}
{{endif}}
{{endif}}
{{else}}

{lang="billing_information"}

{$informationForm|raw}
{template="checkoutOrderSummary" group="checkout" app="nexus" params="$invoice->summary()"}
{{endif}}