Files
evo-sync/web/templates/invite.html
mguschin eb4165e48b feat: apply new Мои Товары design system across all templates
Replace Pico CSS with custom design: dark sidebar layout, Golos Text +
JetBrains Mono fonts, orange accent (#FF5500), new component classes
(cards, tables, buttons, tags, toggles, alerts, tabs, login split-panel).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 12:43:08 +03:00

80 lines
4.2 KiB
HTML

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Завершение регистрации — Мои Товары</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="/static/style.css">
</head>
<body style="display:flex;align-items:center;justify-content:center;min-height:100vh;background:#F4F5F7;padding:24px;">
<div class="card" style="max-width:480px;width:100%;padding:32px;">
<div style="text-align:center;margin-bottom:24px;">
<div style="width:44px;height:44px;border-radius:11px;background:#FF5500;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;">
<svg width="24" height="24" viewBox="0 0 28 28" fill="none">
<path d="M9 11h10l-1.5 9H10.5L9 11Z" fill="white" opacity="0.95"/>
<path d="M11.5 11V9a2.5 2.5 0 015 0v2" stroke="white" stroke-width="1.6" stroke-linecap="round" fill="none"/>
</svg>
</div>
<div class="login-box-title">Добро пожаловать!</div>
<div style="font-size:13px;color:#5C6278;margin-top:4px;">Ваш аккаунт создан через Эвотор. Заполните профиль и задайте пароль для входа.</div>
</div>
{% if errors %}
<div class="alert alert-rd" style="margin-bottom:14px;">
<span><i class="bi bi-x-circle"></i></span>
<div>{% for e in errors %}<div>{{ e }}</div>{% endfor %}</div>
</div>
{% endif %}
<form method="post" action="/invite?token={{ token }}">
<div style="display:grid;grid-template-columns:1fr 1fr;gap:12px;">
<div class="form-row">
<label class="form-lbl" for="first_name">Имя <span style="color:#E53935;">*</span></label>
<input class="inp" type="text" id="first_name" name="first_name"
value="{{ form.first_name if form else (invite_user.first_name or '') }}" required>
</div>
<div class="form-row">
<label class="form-lbl" for="last_name">Фамилия <span style="color:#E53935;">*</span></label>
<input class="inp" type="text" id="last_name" name="last_name"
value="{{ form.last_name if form else (invite_user.last_name or '') }}" required>
</div>
</div>
<div class="form-row">
<label class="form-lbl" for="email">Email <span style="color:#E53935;">*</span></label>
<input class="inp" type="email" id="email" name="email"
value="{{ form.email if form else (invite_user.email or '') }}" required>
</div>
<div class="form-row">
<label class="form-lbl" for="phone">Телефон <span style="color:#E53935;">*</span></label>
<input class="inp" type="tel" id="phone" name="phone"
value="{{ form.phone if form else (invite_user.phone or '') }}" required>
</div>
<div class="form-row">
<label class="form-lbl" for="password">Пароль <span style="color:#E53935;">*</span></label>
<input class="inp" type="password" id="password" name="password" required minlength="8">
</div>
<div class="form-row">
<label class="form-lbl" for="password_confirm">Подтверждение пароля <span style="color:#E53935;">*</span></label>
<input class="inp" type="password" id="password_confirm" name="password_confirm" required>
</div>
<button type="submit" class="login-btn">Завершить регистрацию</button>
</form>
</div>
<script src="https://cdn.jsdelivr.net/npm/inputmask@5.0.9/dist/inputmask.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var phoneInputs = document.querySelectorAll('input[name="phone"]');
if (phoneInputs.length) {
Inputmask('+7 (999) 999-99-99', { placeholder: '_', showMaskOnHover: false, clearMaskOnLostFocus: false }).mask(phoneInputs);
}
});
</script>
</body>
</html>