Vinoteca: модуль, шаблон и компоненты интернет-магазина вина на 1С-Битрикс
This commit is contained in:
commit
bb7d8af290
469 files changed
+26426
No files matched your search
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
$MESS["VINO_CAB_NAV"] = "Account sections";
|
||||
$MESS["VINO_CAB_KICKER"] = "My account";
|
||||
$MESS["VINO_CAB_NAV_PROFILE"] = "Profile";
|
||||
$MESS["VINO_CAB_NAV_LOGOUT"] = "Sign out";
|
||||
$MESS["VINO_CAB_TITLE"] = "Profile";
|
||||
$MESS["VINO_CAB_CONTACTS"] = "Contact details";
|
||||
$MESS["VINO_CAB_NAME"] = "Name";
|
||||
$MESS["VINO_CAB_EMAIL"] = "E-mail";
|
||||
$MESS["VINO_CAB_EMAIL_NOTE"] = "The address is used to sign in and cannot be changed";
|
||||
$MESS["VINO_CAB_PHONE"] = "Phone";
|
||||
$MESS["VINO_CAB_SAVE"] = "Save";
|
||||
$MESS["VINO_CAB_SAVED"] = "Details saved";
|
||||
$MESS["VINO_CAB_PASSWORD_TITLE"] = "Change password";
|
||||
$MESS["VINO_CAB_CURRENT"] = "Current password";
|
||||
$MESS["VINO_CAB_NEW"] = "New password";
|
||||
$MESS["VINO_CAB_HINT"] = "At least 8 characters";
|
||||
$MESS["VINO_CAB_SHOW"] = "Show";
|
||||
$MESS["VINO_CAB_HIDE"] = "Hide";
|
||||
$MESS["VINO_CAB_PASSWORD_SAVE"] = "Change password";
|
||||
$MESS["VINO_CAB_PASSWORD_DONE"] = "Password changed";
|
||||
$MESS["VINO_CAB_ERR_NAME"] = "Enter your name";
|
||||
$MESS["VINO_CAB_ERR_PHONE"] = "Check the phone number";
|
||||
$MESS["VINO_CAB_ERR_CURRENT"] = "Wrong current password";
|
||||
$MESS["VINO_CAB_ERR_PASSWORD"] = "Password must be at least 8 characters";
|
||||
$MESS["VINO_CAB_ERR_SAME"] = "New password matches the current one";
|
||||
$MESS["VINO_CAB_ERR_TOO_OFTEN"] = "Too many attempts, try again later";
|
||||
$MESS["VINO_CAB_ERR_AUTH"] = "Session expired, sign in again";
|
||||
$MESS["VINO_CAB_ERR_COMMON"] = "Failed to save. Try again later";
|
||||
$MESS["VINO_CAB_ERR_NAME_CHARS"] = "The name must not contain < or >";
|
||||
$MESS["VINO_CAB_ERR_POLICY"] = "The password does not meet the site requirements";
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
$MESS["VINO_CAB_NAV"] = "Sekcje konta";
|
||||
$MESS["VINO_CAB_KICKER"] = "Moje konto";
|
||||
$MESS["VINO_CAB_NAV_PROFILE"] = "Profil";
|
||||
$MESS["VINO_CAB_NAV_LOGOUT"] = "Wyloguj się";
|
||||
$MESS["VINO_CAB_TITLE"] = "Profil";
|
||||
$MESS["VINO_CAB_CONTACTS"] = "Dane kontaktowe";
|
||||
$MESS["VINO_CAB_NAME"] = "Imię";
|
||||
$MESS["VINO_CAB_EMAIL"] = "E-mail";
|
||||
$MESS["VINO_CAB_EMAIL_NOTE"] = "Adres służy do logowania i nie można go zmienić";
|
||||
$MESS["VINO_CAB_PHONE"] = "Telefon";
|
||||
$MESS["VINO_CAB_SAVE"] = "Zapisz";
|
||||
$MESS["VINO_CAB_SAVED"] = "Dane zapisane";
|
||||
$MESS["VINO_CAB_PASSWORD_TITLE"] = "Zmiana hasła";
|
||||
$MESS["VINO_CAB_CURRENT"] = "Obecne hasło";
|
||||
$MESS["VINO_CAB_NEW"] = "Nowe hasło";
|
||||
$MESS["VINO_CAB_HINT"] = "Co najmniej 8 znaków";
|
||||
$MESS["VINO_CAB_SHOW"] = "Pokaż";
|
||||
$MESS["VINO_CAB_HIDE"] = "Ukryj";
|
||||
$MESS["VINO_CAB_PASSWORD_SAVE"] = "Zmień hasło";
|
||||
$MESS["VINO_CAB_PASSWORD_DONE"] = "Hasło zostało zmienione";
|
||||
$MESS["VINO_CAB_ERR_NAME"] = "Wpisz imię";
|
||||
$MESS["VINO_CAB_ERR_PHONE"] = "Sprawdź numer telefonu";
|
||||
$MESS["VINO_CAB_ERR_CURRENT"] = "Nieprawidłowe obecne hasło";
|
||||
$MESS["VINO_CAB_ERR_PASSWORD"] = "Hasło musi mieć co najmniej 8 znaków";
|
||||
$MESS["VINO_CAB_ERR_SAME"] = "Nowe hasło jest takie samo jak obecne";
|
||||
$MESS["VINO_CAB_ERR_TOO_OFTEN"] = "Zbyt wiele prób, spróbuj ponownie później";
|
||||
$MESS["VINO_CAB_ERR_AUTH"] = "Sesja wygasła, zaloguj się ponownie";
|
||||
$MESS["VINO_CAB_ERR_COMMON"] = "Nie udało się zapisać. Spróbuj ponownie później";
|
||||
$MESS["VINO_CAB_ERR_NAME_CHARS"] = "Imię nie może zawierać znaków < i >";
|
||||
$MESS["VINO_CAB_ERR_POLICY"] = "Hasło nie spełnia wymagań serwisu";
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
$MESS["VINO_CAB_NAV"] = "Разделы кабинета";
|
||||
$MESS["VINO_CAB_KICKER"] = "Личный кабинет";
|
||||
$MESS["VINO_CAB_NAV_PROFILE"] = "Профиль";
|
||||
$MESS["VINO_CAB_NAV_LOGOUT"] = "Выйти";
|
||||
$MESS["VINO_CAB_TITLE"] = "Профиль";
|
||||
$MESS["VINO_CAB_CONTACTS"] = "Контактные данные";
|
||||
$MESS["VINO_CAB_NAME"] = "Имя";
|
||||
$MESS["VINO_CAB_EMAIL"] = "E-mail";
|
||||
$MESS["VINO_CAB_EMAIL_NOTE"] = "Адрес нужен для входа и не меняется";
|
||||
$MESS["VINO_CAB_PHONE"] = "Телефон";
|
||||
$MESS["VINO_CAB_SAVE"] = "Сохранить";
|
||||
$MESS["VINO_CAB_SAVED"] = "Данные сохранены";
|
||||
$MESS["VINO_CAB_PASSWORD_TITLE"] = "Смена пароля";
|
||||
$MESS["VINO_CAB_CURRENT"] = "Текущий пароль";
|
||||
$MESS["VINO_CAB_NEW"] = "Новый пароль";
|
||||
$MESS["VINO_CAB_HINT"] = "Не короче 8 символов";
|
||||
$MESS["VINO_CAB_SHOW"] = "Показать";
|
||||
$MESS["VINO_CAB_HIDE"] = "Скрыть";
|
||||
$MESS["VINO_CAB_PASSWORD_SAVE"] = "Сменить пароль";
|
||||
$MESS["VINO_CAB_PASSWORD_DONE"] = "Пароль изменён";
|
||||
$MESS["VINO_CAB_ERR_NAME"] = "Введите имя";
|
||||
$MESS["VINO_CAB_ERR_PHONE"] = "Проверьте номер телефона";
|
||||
$MESS["VINO_CAB_ERR_CURRENT"] = "Неверный текущий пароль";
|
||||
$MESS["VINO_CAB_ERR_PASSWORD"] = "Пароль не короче 8 символов";
|
||||
$MESS["VINO_CAB_ERR_SAME"] = "Новый пароль совпадает с текущим";
|
||||
$MESS["VINO_CAB_ERR_TOO_OFTEN"] = "Слишком много попыток, повторите позже";
|
||||
$MESS["VINO_CAB_ERR_AUTH"] = "Сессия истекла, войдите заново";
|
||||
$MESS["VINO_CAB_ERR_COMMON"] = "Не удалось сохранить. Повторите позже";
|
||||
$MESS["VINO_CAB_ERR_NAME_CHARS"] = "Имя не должно содержать знаки < и >";
|
||||
$MESS["VINO_CAB_ERR_POLICY"] = "Пароль не подходит по требованиям сайта";
|
||||
@@ -0,0 +1,111 @@
|
||||
(function () {
|
||||
function init() {
|
||||
if (!window.BX || !BX.ajax || !BX.ajax.runAction) return;
|
||||
var saveForm = document.querySelector('[data-cab-save]');
|
||||
var passwordForm = document.querySelector('[data-cab-password]');
|
||||
|
||||
function key(code) {
|
||||
return code.replace(/_([a-z])/g, function (match, letter) { return letter.toUpperCase(); });
|
||||
}
|
||||
|
||||
function message(form, code) {
|
||||
var name = 'msg' + key(code).charAt(0).toUpperCase() + key(code).slice(1);
|
||||
return form.dataset[name] || form.dataset.msgError;
|
||||
}
|
||||
|
||||
function status(form, text, ok) {
|
||||
var line = form.querySelector('[data-cab-status]');
|
||||
line.textContent = text;
|
||||
line.classList.toggle('vino-cab__status--ok', !!ok);
|
||||
}
|
||||
|
||||
function mark(field, bad) {
|
||||
field.classList.toggle('vino-inp--invalid', bad);
|
||||
field.setAttribute('aria-invalid', bad ? 'true' : 'false');
|
||||
}
|
||||
|
||||
function code(response) {
|
||||
return response && response.errors && response.errors[0] ? response.errors[0].code : '';
|
||||
}
|
||||
|
||||
function phoneValue(input) {
|
||||
var digits = input.value.replace(/\D/g, '');
|
||||
return digits.length > 1 ? '+' + digits : '';
|
||||
}
|
||||
|
||||
[saveForm, passwordForm].forEach(function (form) {
|
||||
if (!form) return;
|
||||
form.addEventListener('input', function (event) {
|
||||
if (event.target.classList.contains('vino-inp--invalid')) mark(event.target, false);
|
||||
status(form, '', false);
|
||||
});
|
||||
});
|
||||
|
||||
if (saveForm) {
|
||||
saveForm.addEventListener('submit', function (event) {
|
||||
event.preventDefault();
|
||||
var name = saveForm.elements.name;
|
||||
var phone = saveForm.elements.phone;
|
||||
var submit = saveForm.querySelector('[type="submit"]');
|
||||
var badName = name.value.trim() === '' || /[<>\x00-\x1f]/.test(name.value);
|
||||
var badPhone = !phone.checkValidity();
|
||||
mark(name, badName);
|
||||
mark(phone, badPhone);
|
||||
if (badName || badPhone) {
|
||||
status(saveForm, badName ? (name.value.trim() === '' ? saveForm.dataset.msgName : saveForm.dataset.msgNameChars) : saveForm.dataset.msgPhone, false);
|
||||
(badName ? name : phone).focus();
|
||||
return;
|
||||
}
|
||||
status(saveForm, '', false);
|
||||
if (submit.getAttribute('aria-disabled') === 'true') return;
|
||||
submit.setAttribute('aria-disabled', 'true');
|
||||
BX.ajax.runAction('jinove:vinoteca.profile.save', { data: { name: name.value.trim(), phone: phoneValue(phone) } }).then(function () {
|
||||
submit.removeAttribute('aria-disabled');
|
||||
status(saveForm, saveForm.dataset.msgDone, true);
|
||||
}, function (response) {
|
||||
submit.removeAttribute('aria-disabled');
|
||||
status(saveForm, message(saveForm, code(response)), false);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if (passwordForm) {
|
||||
passwordForm.addEventListener('submit', function (event) {
|
||||
event.preventDefault();
|
||||
var current = passwordForm.elements.current;
|
||||
var next = passwordForm.elements.password;
|
||||
var submit = passwordForm.querySelector('[type="submit"]');
|
||||
var badCurrent = current.value === '';
|
||||
var badNext = next.value.length < 8;
|
||||
mark(current, badCurrent);
|
||||
mark(next, badNext);
|
||||
if (badCurrent || badNext) {
|
||||
status(passwordForm, badCurrent ? passwordForm.dataset.msgCurrent : passwordForm.dataset.msgPassword, false);
|
||||
(badCurrent ? current : next).focus();
|
||||
return;
|
||||
}
|
||||
status(passwordForm, '', false);
|
||||
if (submit.getAttribute('aria-disabled') === 'true') return;
|
||||
submit.setAttribute('aria-disabled', 'true');
|
||||
BX.ajax.runAction('jinove:vinoteca.profile.password', { data: { current: current.value, password: next.value } }).then(function () {
|
||||
submit.removeAttribute('aria-disabled');
|
||||
current.value = '';
|
||||
next.value = '';
|
||||
status(passwordForm, passwordForm.dataset.msgDone, true);
|
||||
}, function (response) {
|
||||
submit.removeAttribute('aria-disabled');
|
||||
var errorCode = code(response);
|
||||
if (errorCode === 'current') mark(current, true);
|
||||
if (errorCode === 'password' || errorCode === 'same') mark(next, true);
|
||||
status(passwordForm, message(passwordForm, errorCode), false);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', init);
|
||||
} else {
|
||||
init();
|
||||
}
|
||||
})();
|
||||
@@ -0,0 +1,171 @@
|
||||
.vino-cab {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 240px) minmax(0, 860px);
|
||||
gap: clamp(var(--space-8), 5vw, var(--space-16));
|
||||
align-items: start;
|
||||
justify-content: center;
|
||||
min-height: 62vh;
|
||||
padding: var(--space-head) var(--gutter) var(--space-section);
|
||||
}
|
||||
.vino-cab__kicker {
|
||||
margin: 0 0 var(--space-4);
|
||||
color: var(--color-accent);
|
||||
font-size: var(--text-13);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.vino-cab__list {
|
||||
display: grid;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.vino-cab__link {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: var(--space-3) var(--space-6);
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--color-text);
|
||||
font: inherit;
|
||||
font-size: var(--text-15);
|
||||
font-weight: 500;
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: color var(--duration-fast) var(--ease-base), background-color var(--duration-fast) var(--ease-base), transform var(--duration-fast) var(--ease-base);
|
||||
}
|
||||
.vino-cab__link--active {
|
||||
background: var(--color-accent);
|
||||
color: var(--color-bg);
|
||||
}
|
||||
.vino-cab__link:active {
|
||||
transform: scale(.97);
|
||||
}
|
||||
.vino-cab__link:focus-visible {
|
||||
outline: 2px solid var(--color-accent);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
.vino-cab__title {
|
||||
margin: 0 0 var(--space-6);
|
||||
font-family: var(--font-serif);
|
||||
font-weight: 500;
|
||||
font-size: clamp(1.75rem, 3.4vw, 2.25rem);
|
||||
line-height: 1.1;
|
||||
}
|
||||
.vino-cab__panel {
|
||||
margin: 0 0 var(--space-8);
|
||||
}
|
||||
.vino-cab__panel + .vino-cab__panel {
|
||||
padding-top: var(--space-8);
|
||||
border-top: 1px solid var(--color-line);
|
||||
}
|
||||
.vino-cab__panel.vino-cab__empty {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
.vino-cab__heading {
|
||||
margin: 0 0 var(--space-4);
|
||||
font-family: var(--font-serif);
|
||||
font-weight: 500;
|
||||
font-size: clamp(1.25rem, 2.2vw, 1.5rem);
|
||||
}
|
||||
.vino-auth__form.vino-cab__form {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: var(--space-5) var(--space-4);
|
||||
align-items: start;
|
||||
max-width: 640px;
|
||||
}
|
||||
.vino-cab__form .vino-auth__label {
|
||||
color: var(--color-text);
|
||||
font-size: var(--text-15);
|
||||
font-weight: 500;
|
||||
letter-spacing: 0;
|
||||
text-transform: none;
|
||||
}
|
||||
.vino-cab__form .vino-auth__err {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
.vino-auth__form.vino-cab__form .vino-auth__submit {
|
||||
grid-column: 1 / -1;
|
||||
justify-self: start;
|
||||
width: auto;
|
||||
min-width: 220px;
|
||||
}
|
||||
.vino-auth__err.vino-cab__status--ok {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
.vino-cab-list {
|
||||
display: grid;
|
||||
gap: var(--space-6);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.vino-cab-card {
|
||||
padding: clamp(var(--space-5), 3vw, var(--space-8));
|
||||
background: var(--color-surface);
|
||||
border: 1px solid var(--color-line);
|
||||
}
|
||||
.vino-cab-card__head {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-2) var(--space-6);
|
||||
margin: 0 0 var(--space-4);
|
||||
}
|
||||
.vino-cab-card__title {
|
||||
margin: 0;
|
||||
color: var(--color-text);
|
||||
font-size: var(--text-19);
|
||||
font-weight: 500;
|
||||
}
|
||||
.vino-cab-card__name {
|
||||
color: var(--color-text);
|
||||
text-decoration: none;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.vino-cab-card__title .vino-cab-card__name {
|
||||
font: inherit;
|
||||
}
|
||||
.vino-cab-card__status {
|
||||
margin: 0;
|
||||
color: var(--color-accent);
|
||||
font-size: var(--text-15);
|
||||
letter-spacing: .08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.vino-cab-card__status--canceled {
|
||||
color: var(--color-danger-soft);
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.vino-cab-card__name:hover {
|
||||
color: var(--color-accent-hover);
|
||||
}
|
||||
.vino-cab__link:not(.vino-cab__link--active):hover {
|
||||
background: color-mix(in srgb, var(--color-accent) 14%, transparent);
|
||||
}
|
||||
}
|
||||
@media (max-width: 760px) {
|
||||
.vino-cab {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: var(--space-6);
|
||||
}
|
||||
.vino-cab__list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
.vino-cab__link {
|
||||
min-height: 44px;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
width: auto;
|
||||
}
|
||||
.vino-auth__form.vino-cab__form {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
.vino-auth__form.vino-cab__form .vino-auth__submit {
|
||||
justify-self: stretch;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
use Bitrix\Main\Localization\Loc;
|
||||
|
||||
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
|
||||
die();
|
||||
}
|
||||
|
||||
Loc::loadMessages(__FILE__);
|
||||
$this->addExternalCss("/local/components/jinove/auth.login/templates/.default/style.css");
|
||||
$e = static fn(string $code): string => htmlspecialcharsbx((string)Loc::getMessage($code));
|
||||
?>
|
||||
<section class="vino-cab">
|
||||
<?php $APPLICATION->IncludeComponent("jinove:personal.nav", ".default", ["ACTIVE" => "profile"]); ?>
|
||||
<div class="vino-cab__main">
|
||||
<h1 class="vino-cab__title"><?= Loc::getMessage("VINO_CAB_TITLE") ?></h1>
|
||||
<div class="vino-cab__panel">
|
||||
<h2 class="vino-cab__heading"><?= Loc::getMessage("VINO_CAB_CONTACTS") ?></h2>
|
||||
<form class="vino-auth__form vino-cab__form" method="post" novalidate data-cab-save
|
||||
data-msg-name="<?= $e("VINO_CAB_ERR_NAME") ?>"
|
||||
data-msg-name-chars="<?= $e("VINO_CAB_ERR_NAME_CHARS") ?>"
|
||||
data-msg-phone="<?= $e("VINO_CAB_ERR_PHONE") ?>"
|
||||
data-msg-auth="<?= $e("VINO_CAB_ERR_AUTH") ?>"
|
||||
data-msg-error="<?= $e("VINO_CAB_ERR_COMMON") ?>"
|
||||
data-msg-done="<?= $e("VINO_CAB_SAVED") ?>">
|
||||
<div class="vino-auth__field">
|
||||
<label class="vino-auth__label" for="vino-cab-name"><?= Loc::getMessage("VINO_CAB_NAME") ?></label>
|
||||
<input class="vino-inp vino-auth__input" id="vino-cab-name" type="text" name="name" autocomplete="name" maxlength="50" value="<?= htmlspecialcharsbx($arResult["NAME"]) ?>" aria-describedby="vino-cab-contacts-err" required>
|
||||
</div>
|
||||
<div class="vino-auth__field">
|
||||
<label class="vino-auth__label" for="vino-cab-email"><?= Loc::getMessage("VINO_CAB_EMAIL") ?></label>
|
||||
<input class="vino-inp vino-auth__input" id="vino-cab-email" type="email" value="<?= htmlspecialcharsbx($arResult["EMAIL"]) ?>" readonly aria-describedby="vino-cab-email-note">
|
||||
<span class="vino-auth__hint" id="vino-cab-email-note"><?= Loc::getMessage("VINO_CAB_EMAIL_NOTE") ?></span>
|
||||
</div>
|
||||
<div class="vino-auth__field">
|
||||
<label class="vino-auth__label" for="vino-cab-phone"><?= Loc::getMessage("VINO_CAB_PHONE") ?></label>
|
||||
<input class="vino-inp vino-auth__input" id="vino-cab-phone" type="tel" name="phone" placeholder="+7 912 345 67 89" autocomplete="tel" inputmode="tel" value="<?= htmlspecialcharsbx($arResult["PHONE"]) ?>" data-phone-code="7" data-phone-digits="10" data-phone-groups="3,3,2,2" data-phone-error="<?= $e("VINO_CAB_ERR_PHONE") ?>" aria-describedby="vino-cab-contacts-err">
|
||||
</div>
|
||||
<p class="vino-auth__err" id="vino-cab-contacts-err" role="alert" data-cab-status></p>
|
||||
<button class="vino-btn vino-auth__submit" type="submit"><?= Loc::getMessage("VINO_CAB_SAVE") ?></button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="vino-cab__panel">
|
||||
<h2 class="vino-cab__heading"><?= Loc::getMessage("VINO_CAB_PASSWORD_TITLE") ?></h2>
|
||||
<form class="vino-auth__form vino-cab__form" method="post" novalidate data-cab-password
|
||||
data-msg-current="<?= $e("VINO_CAB_ERR_CURRENT") ?>"
|
||||
data-msg-password="<?= $e("VINO_CAB_ERR_PASSWORD") ?>"
|
||||
data-msg-same="<?= $e("VINO_CAB_ERR_SAME") ?>"
|
||||
data-msg-policy="<?= $e("VINO_CAB_ERR_POLICY") ?>"
|
||||
data-msg-too-often="<?= $e("VINO_CAB_ERR_TOO_OFTEN") ?>"
|
||||
data-msg-auth="<?= $e("VINO_CAB_ERR_AUTH") ?>"
|
||||
data-msg-error="<?= $e("VINO_CAB_ERR_COMMON") ?>"
|
||||
data-msg-done="<?= $e("VINO_CAB_PASSWORD_DONE") ?>"
|
||||
data-label-show="<?= $e("VINO_CAB_SHOW") ?>"
|
||||
data-label-hide="<?= $e("VINO_CAB_HIDE") ?>">
|
||||
<div class="vino-auth__field">
|
||||
<label class="vino-auth__label" for="vino-cab-current"><?= Loc::getMessage("VINO_CAB_CURRENT") ?></label>
|
||||
<span class="vino-auth__password">
|
||||
<input class="vino-inp vino-auth__input" id="vino-cab-current" type="password" name="current" autocomplete="current-password" maxlength="200" aria-describedby="vino-cab-password-err" required>
|
||||
<button type="button" class="vino-auth__toggle" data-password-toggle hidden aria-controls="vino-cab-current" aria-pressed="false"><?= Loc::getMessage("VINO_CAB_SHOW") ?></button>
|
||||
</span>
|
||||
</div>
|
||||
<div class="vino-auth__field">
|
||||
<label class="vino-auth__label" for="vino-cab-new"><?= Loc::getMessage("VINO_CAB_NEW") ?></label>
|
||||
<span class="vino-auth__password">
|
||||
<input class="vino-inp vino-auth__input" id="vino-cab-new" type="password" name="password" autocomplete="new-password" minlength="8" maxlength="200" aria-describedby="vino-cab-new-hint vino-cab-password-err" required>
|
||||
<button type="button" class="vino-auth__toggle" data-password-toggle hidden aria-controls="vino-cab-new" aria-pressed="false"><?= Loc::getMessage("VINO_CAB_SHOW") ?></button>
|
||||
</span>
|
||||
<span class="vino-auth__hint" id="vino-cab-new-hint"><?= Loc::getMessage("VINO_CAB_HINT") ?></span>
|
||||
</div>
|
||||
<p class="vino-auth__err" id="vino-cab-password-err" role="alert" data-cab-status></p>
|
||||
<button class="vino-btn vino-auth__submit" type="submit"><?= Loc::getMessage("VINO_CAB_PASSWORD_SAVE") ?></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
Reference in new issue
Block a user