[{oxscript include="js/libs/jqBootstrapValidation.min.js" priority=10}] [{oxscript add="$('input,select,textarea').not('[type=submit]').jqBootstrapValidation();"}] [{oxscript add="$('form[name=register]').on('submit',function(){ const valid = $('form[name=register]').find('[aria-invalid=true]').length; if(valid == 0){ $('#btn_register').attr('disabled', true).attr('type','button');} } );"}] [{if !isset($oConfig)}] [{assign var="oConfig" value=$oViewConf->getConfig()}] [{/if}] [{assign var="force_sid" value=$oViewConf->getSessionId()}] [{assign var="b2b" value=$oConfig->getRequestParameter('type')}] [{assign var="aErrors" value=$oView->getFieldValidationErrors()}]
[{if $b2b}]

[{oxmultilang ident="ACCOUNT_INFORMATION_DEALER"}]

[{assign var="blContentexists" value=false}] [{oxifcontent ident="oxdealer_register"}] [{assign var="blContentexists" value=true}] [{/oxifcontent}] [{if $blContentexists}] [{oxcontent ident="oxdealer_register"}] [{else}] [{if $oConfig->getConfigParam('blAllowB2BUserregister')}] [{include file="form/fieldset/user_account.tpl"}] [{else}] [{/if}] [{/if}] [{else}] [{include file="form/fieldset/user_account.tpl"}] [{/if}]