Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ page contentType="text/html;charset=UTF-8" language="java"%>
- <%@ taglib uri="http://jakarta.apache.org/taglibs/unstandard-1.0" prefix="un"%>
- <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <%@ taglib prefix="util" uri="/WEB-INF/tlds/functions.tld" %>
- <un:useConstants className="xxrsv.endeca.domain.Constants" var="Constants" />
- <un:useConstants className="xxrsv.endeca.domain.Keys" var="Keys" />
- <!DOCTYPE html>
- <html lang="ru">
- <head>
- <title><spring:message code="${Keys.PRMT_SIGN_IN_G}"/></title>
- <jsp:include page="includes/assets.jsp" />
- <link href="${staticPrefix}${Constants.STATIC_OA_MEDIA_ENDECA_PATH}/style/rs/template.forms.css?ver=2" rel="stylesheet">
- <link href="${staticPrefix}${Constants.STATIC_OA_MEDIA_ISTORE_PATH}/vanilla/css/temp/components/login_form/style.min.css" rel="stylesheet">
- <script type="text/javascript" src="${staticPrefix}${Constants.STATIC_OA_MEDIA_ISTORE_PATH}/vanilla/css/temp/components/common/script.js?ver=7"></script>
- </head>
- <body>
- <jsp:include page="includes/vars.jsp" />
- <div class="main-wrapper">
- <jsp:include page="includes/header.jsp"/>
- <div class="content content_top-margin">
- <div class="container-fluid">
- <div class="row">
- <div class="col-xs-12" style="width: 100%">
- <div class="wrapper">
- <div id="toTop" class="button-up">
- <a href="#" class="js-button-up"></a>
- </div>
- <div class="page-title-box">
- <h1 class="page-title page-title_centered"><spring:message code="${Keys.PRMT_SIGN_IN_G}"/></h1>
- </div>
- <div class="form-box form-box_centered">
- <div class="white-back center-box">
- <c:set var="msAuthUrl" value="${pageContext.request.contextPath}/authorize"/>
- <div class="login-form-switch">
- <div
- class="js-switch-login-form login-form-switch__item login-form-switch__item_business login-form-switch__item_active">
- <div class="login-form-switch-item__icon login-form-switch-item__icon_business"></div>
- <div class="login-form-switch-item__text">Юридическое лицо</div>
- </div>
- <div class="js-switch-login-form login-form-switch__item login-form-switch__item_customer">
- <div class="login-form-switch-item__icon login-form-switch-item__icon_customer"></div>
- <div class="login-form-switch-item__text">Физическое лицо</div>
- </div>
- </div>
- <form class="login-form login-form_business form-box__form" name="mainFormB2B"
- id="mainFormB2B"
- method="post"
- action="${util:sanitizeUrl(msAuthUrl)}">
- <input type="hidden" name="event" value="">
- <input type="hidden" name="isFirstEntry" value="true">
- <input type="hidden" name="targetUrlParameter" value="${userSession.refDecoded}">
- <input type="hidden" name="userType" value="ORGANIZATION">
- <%-- <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" /> --%>
- <div class="form-box__group">
- <div class="form-box__label-box">
- <label for="usernameB2B" class="form-box__label"><spring:message
- code="${Keys.PRMT_USERNAME_COL}"/></label>
- </div>
- <div class="input-row form-box__input-box">
- <input type="text" name="username" id="usernameB2B" placeholder='<spring:message code="${Keys.AUTH_USER_NAME}"/>'
- data-validation="required" value="${username}" style="margin: 0;">
- </div>
- </div>
- <div class="form-box__group">
- <div class="form-box__label-box">
- <label for="passwordB2B" class="form-box__label"><spring:message
- code="${Keys.PRMT_PWD_COL}"/></label>
- </div>
- <div class="input-row form-box__input-box">
- <input id="passwordB2B" type="password" name="password"
- placeholder='<spring:message code="${Keys.AUTH_USER_PASSWORD}"/>' data-validation="required" style="margin: 0;">
- <c:if test="${!empty SPRING_SECURITY_LAST_EXCEPTION.message}">
- <span class="help-block form-error">${SPRING_SECURITY_LAST_EXCEPTION.message}</span>
- </c:if>
- <c:if test="${!empty techErrorMessage}">
- <span class="help-block form-error">${techErrorMessage}</span>
- </c:if>
- </div>
- </div>
- <div class="form-box__group">
- <button type="submit" class="btn red-btn form-box__btn"><spring:message code="${Keys.AUTH_BTN_LOGIN}"/></button>
- </div>
- <div class="form-box__group form-box__group_centered">
- <a href="${pageContext.request.contextPath}/password_forgot" class="form-box__link"><spring:message code="${Keys.AUTH_PWD_FORGET}"/></a>
- </div>
- <div class="form-box__group form-box__group_centered">
- <a class="form-box__link js-reg-popup" href="javascript:void(0);"><spring:message code="${Keys.NEW_USER_REG}"/></a>
- </div>
- </form>
- <form class="login-form login-form_customer form-box__form hidden"
- name="mainFormB2C"
- id="mainFormB2C"
- method="post"
- action="${util:sanitizeUrl(msAuthUrl)}"
- autocomplete="off">
- <input type="hidden" name="event" value="">
- <input type="hidden" name="isFirstEntry" value="true">
- <input type="hidden" name="targetUrlParameter" value="${userSession.refDecoded}">
- <input type="hidden" name="userType" value="PERSON">
- <input type="hidden" id="authType" name="authType" value="SMS_AUTH">
- <%-- <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" /> --%>
- <div class="form-box__group">
- <div class="form-box__label-box">
- <label for="usernameB2C" class="form-box__label"><spring:message
- code="${Keys.PRMT_PHONE_COL}"/></label>
- </div>
- <div class="input-row form-box__input-box">
- <div class="js-input-wrap">
- <input id="usernameB2C" type="text" name="username"
- placeholder='<spring:message code="${Keys.AUTH_USER_NAME}"/>'
- data-validation="required" value="${username}" style="margin: 0;" autocomplete="off">
- </div>
- </div>
- </div>
- <div class="form-box__group">
- <div class="form-box__label-box password-auth">
- <label for="passwordB2C" class="form-box__label"><spring:message
- code="${Keys.PRMT_PWD_COL}"/></label>
- </div>
- <div class="input-row form-box__input-box password-auth">
- <input id="passwordB2C" type="password" name="password"
- placeholder='<spring:message
- code="${Keys.AUTH_USER_PASSWORD}"/>' data-validation="required" style="margin: 0;" autocomplete="off">
- <c:if test="${!empty SPRING_SECURITY_LAST_EXCEPTION.message}">
- <span class="help-block form-error">${SPRING_SECURITY_LAST_EXCEPTION.message}</span>
- </c:if>
- <c:if test="${!empty techErrorMessage}">
- <span class="help-block form-error">${techErrorMessage}</span>
- </c:if>
- </div>
- </div>
- <div class="form-box__group sms-auth-step1">
- <button type="button" class="btn red-btn form-box__btn js-get-sms"><spring:message code="${Keys.AUTH_GET_SMS_CODE}"/></button>
- </div>
- <div class="form-box__group sms-auth-step2">
- <button id="smsAuthCountDown" type="button" class="btn blue-btn form-box__btn">66:66</button>
- </div>
- <div class="form-box__group sms-auth-step2">
- <div class="form-box__label-box">
- <label for="passwordB2C" class="form-box__label"><spring:message
- code="${Keys.AUTH_SMS_CODE}"/></label>
- </div>
- <div class="sms-auth-container">
- <input class="js-numeric" id="authCode" name="authCode" type="text" style="margin: 0;" autocomplete="off">
- </div>
- </div>
- <div class="form-box__group password-auth">
- <button type="submit" class="btn red-btn form-box__btn"><spring:message code="${Keys.AUTH_BTN_LOGIN}"/></button>
- </div>
- <div class="form-box__group form-box__group_centered password-auth">
- <a href="javascript:void(0);" id="enterBySms" class="form-box__enter-by-sms"><spring:message code="${Keys.AUTH_ENTER_BY_SMS}"/></a>
- </div>
- <div class="form-box__group form-box__group_centered sms-auth-step1 sms-auth-step2">
- <a href="javascript:void(0);" id="enterByPhoneNum" class="form-box__enter-by-phone-num"><spring:message code="${Keys.AUTH_ENTER_BY_PHONE_NUM}"/></a>
- </div>
- <div class="form-box__group form-box__group_centered">
- <a href="${pagecontext.request.contextPath}/password_forgot" class="form-box__link"><spring:message code="${Keys.AUTH_PWD_FORGET}"/></a>
- </div>
- <div class="form-box__group form-box__group_centered">
- <a class="form-box__link js-reg-popup" href="javascript:void(0);"><spring:message code="${Keys.NEW_USER_REG}"/></a>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <c:if test="${!empty SPRING_SECURITY_LAST_EXCEPTION.message}">
- <c:remove var="SPRING_SECURITY_LAST_EXCEPTION" scope="session"/>
- </c:if>
- <jsp:include page="includes/footer.jsp"/>
- <script src="${staticPrefix}${Constants.STATIC_OA_MEDIA_ISTORE_PATH}/vanilla/css/temp/components/login_form/script.min.js?ver=2"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement