2021-01-05 18:16:23 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en" class="{{ .cssClass }}">
|
|
|
|
<head>
|
2022-01-08 16:42:36 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="css/{{ .cssVersion }}bundle.css">
|
2021-01-05 18:16:23 +00:00
|
|
|
{{ template "header.html" . }}
|
2022-01-10 01:55:48 +00:00
|
|
|
{{ if .passwordReset }}
|
|
|
|
<title>{{ .strings.passwordReset }}</title>
|
|
|
|
{{ else }}
|
|
|
|
<title>{{ .strings.pageTitle }}</title>
|
|
|
|
{{ end }}
|
2021-01-05 18:16:23 +00:00
|
|
|
</head>
|
|
|
|
<body class="max-w-full overflow-x-hidden section">
|
|
|
|
<div id="modal-success" class="modal">
|
2022-01-28 22:34:34 +00:00
|
|
|
<div class="card relative mx-auto my-[10%] w-4/5 lg:w-1/3">
|
2021-12-31 00:22:28 +00:00
|
|
|
<span class="heading mb-4">{{ if .passwordReset }}{{ .strings.passwordReset }}{{ else }}{{ .strings.successHeader }}{{ end }}</span>
|
|
|
|
<p class="content mb-4">{{ if .passwordReset }}{{ .strings.youCanLoginPassword }}{{ else }}{{ .successMessage }}{{ end }}</p>
|
2021-12-30 00:49:43 +00:00
|
|
|
<a class="button ~urge @low full-width center supra submit" href="{{ .jfLink }}" id="create-success-button">{{ .strings.continue }}</a>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-30 19:19:12 +00:00
|
|
|
<div id="modal-confirmation" class="modal">
|
2022-01-28 22:34:34 +00:00
|
|
|
<div class="card relative mx-auto my-[10%] w-4/5 lg:w-1/3">
|
2021-12-31 00:22:28 +00:00
|
|
|
<span class="heading mb-4">{{ .strings.confirmationRequired }}</span>
|
|
|
|
<p class="content mb-4">{{ .strings.confirmationRequiredMessage }}</p>
|
2021-01-30 19:19:12 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-07 00:08:12 +00:00
|
|
|
{{ if .telegramEnabled }}
|
|
|
|
<div id="modal-telegram" class="modal">
|
2022-01-28 22:34:34 +00:00
|
|
|
<div class="card relative mx-auto my-[10%] w-4/5 lg:w-1/3">
|
2021-12-31 00:22:28 +00:00
|
|
|
<span class="heading mb-4">{{ .strings.linkTelegram }}</span>
|
|
|
|
<p class="content mb-4">{{ .strings.sendPIN }}</p>
|
2021-12-31 18:52:03 +00:00
|
|
|
<p class="text-center text-2xl mb-2">{{ .telegramPIN }}</p>
|
2021-05-07 00:08:12 +00:00
|
|
|
<a class="subheading link-center" href="{{ .telegramURL }}" target="_blank">
|
2021-12-31 00:22:28 +00:00
|
|
|
<span class="shield ~info mr-4">
|
2021-05-07 00:08:12 +00:00
|
|
|
<span class="icon">
|
|
|
|
<i class="ri-telegram-line"></i>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
@{{ .telegramUsername }}
|
|
|
|
</a>
|
2021-12-31 00:22:28 +00:00
|
|
|
<span class="button ~info @low full-width center mt-4" id="telegram-waiting">{{ .strings.success }}</span>
|
2021-05-07 00:08:12 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-05-21 20:35:25 +00:00
|
|
|
{{ if .discordEnabled }}
|
|
|
|
<div id="modal-discord" class="modal">
|
2022-01-28 22:34:34 +00:00
|
|
|
<div class="card relative mx-auto my-[10%] w-4/5 lg:w-1/3">
|
2021-12-31 00:22:28 +00:00
|
|
|
<span class="heading mb-4">{{ .strings.linkDiscord }}</span>
|
|
|
|
<p class="content mb-4"> {{ .discordSendPINMessage }}</p>
|
2021-12-31 18:52:03 +00:00
|
|
|
<h1 class="text-center text-2xl mb-2">{{ .discordPIN }}</h1>
|
2021-05-23 18:50:03 +00:00
|
|
|
<a id="discord-invite"></a>
|
2021-12-31 00:22:28 +00:00
|
|
|
<span class="button ~info @low full-width center mt-4" id="discord-waiting">{{ .strings.success }}</span>
|
2021-05-21 20:35:25 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-05-29 16:43:11 +00:00
|
|
|
{{ if .matrixEnabled }}
|
|
|
|
<div id="modal-matrix" class="modal">
|
2022-01-28 22:34:34 +00:00
|
|
|
<div class="card relative mx-auto my-[10%] w-4/5 lg:w-1/3">
|
2021-12-31 00:22:28 +00:00
|
|
|
<span class="heading mb-4">{{ .strings.linkMatrix }}</span>
|
|
|
|
<p class="content mb-4"> {{ .strings.matrixEnterUser }}</p>
|
2021-12-30 00:49:43 +00:00
|
|
|
<input type="text" class="input ~neutral @high" placeholder="@user:riot.im" id="matrix-userid">
|
2021-12-31 00:22:28 +00:00
|
|
|
<div class="subheading link-center mt-4">
|
|
|
|
<span class="shield ~info mr-4">
|
2021-05-29 16:43:11 +00:00
|
|
|
<span class="icon">
|
|
|
|
<i class="ri-chat-3-line"></i>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{{ .matrixUser }}
|
|
|
|
</div>
|
2021-12-31 00:22:28 +00:00
|
|
|
<span class="button ~info @low full-width center mt-4" id="matrix-send">{{ .strings.submit }}</span>
|
2021-05-29 16:43:11 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-12-31 18:52:03 +00:00
|
|
|
<div class="top-4 left-4 absolute">
|
|
|
|
<span class="dropdown" tabindex="0" id="lang-dropdown">
|
|
|
|
<span class="button ~urge dropdown-button">
|
|
|
|
<i class="ri-global-line"></i>
|
|
|
|
<span class="ml-2 chev"></span>
|
|
|
|
</span>
|
|
|
|
<div class="dropdown-display">
|
|
|
|
<div class="card ~neutral @low" id="lang-list">
|
|
|
|
</div>
|
2021-01-11 19:17:43 +00:00
|
|
|
</div>
|
2021-12-31 18:52:03 +00:00
|
|
|
</span>
|
2022-01-27 01:58:24 +00:00
|
|
|
</div>
|
2021-05-07 00:08:12 +00:00
|
|
|
<div id="notification-box"></div>
|
2021-01-05 18:16:23 +00:00
|
|
|
<div class="page-container">
|
2021-12-31 18:52:03 +00:00
|
|
|
<div class="card dark:~d_neutral @low">
|
2022-01-28 22:34:34 +00:00
|
|
|
<div class="flex flex-col md:flex-row gap-3 baseline">
|
|
|
|
<span class="heading mr-5">
|
2021-06-07 12:46:46 +00:00
|
|
|
{{ if .passwordReset }}
|
|
|
|
{{ .strings.passwordReset }}
|
|
|
|
{{ else }}
|
|
|
|
{{ .strings.createAccountHeader }}
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
2022-01-28 22:34:34 +00:00
|
|
|
<span class="subheading">
|
2021-06-07 12:46:46 +00:00
|
|
|
{{ if .passwordReset }}
|
|
|
|
{{ .strings.enterYourPassword }}
|
|
|
|
{{ else }}
|
|
|
|
{{ .helpMessage }}
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
2022-01-28 22:34:34 +00:00
|
|
|
<div class="flex flex-col md:flex-row gap-3">
|
|
|
|
<div class="flex-1">
|
2021-02-28 15:41:06 +00:00
|
|
|
{{ if .userExpiry }}
|
|
|
|
<aside class="col aside sm ~warning" id="user-expiry-message"></aside>
|
2021-02-28 00:44:28 +00:00
|
|
|
{{ end }}
|
2021-12-31 18:52:03 +00:00
|
|
|
<form class="card dark:~d_neutral @low" id="form-create" href="">
|
2021-06-07 12:46:46 +00:00
|
|
|
{{ if not .passwordReset }}
|
2021-01-05 18:16:23 +00:00
|
|
|
<label class="label supra">
|
2021-01-18 22:06:50 +00:00
|
|
|
{{ .strings.username }}
|
2021-12-31 18:52:03 +00:00
|
|
|
<input type="text" class="input ~neutral @high mt-2 mb-4" placeholder="{{ .strings.username }}" id="create-username" aria-label="{{ .strings.username }}">
|
2021-01-05 18:16:23 +00:00
|
|
|
</label>
|
2022-01-27 01:58:24 +00:00
|
|
|
|
2021-01-18 22:06:50 +00:00
|
|
|
<label class="label supra" for="create-email">{{ .strings.emailAddress }}</label>
|
2021-12-31 18:52:03 +00:00
|
|
|
<input type="email" class="input ~neutral @high mt-2 mb-4" placeholder="{{ .strings.emailAddress }}" id="create-email" aria-label="{{ .strings.emailAddress }}" value="{{ .email }}">
|
2021-05-07 00:08:12 +00:00
|
|
|
{{ if .telegramEnabled }}
|
2022-01-27 16:48:46 +00:00
|
|
|
<span class="button ~info @low full-width center mb-4" id="link-telegram">{{ .strings.linkTelegram }} {{ if .telegramRequired }}({{ .strings.required }}){{ end }}</span>
|
2021-05-21 20:35:25 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ if .discordEnabled }}
|
2022-01-27 16:48:46 +00:00
|
|
|
<span class="button ~info @low full-width center mb-4" id="link-discord">{{ .strings.linkDiscord }} {{ if .discordRequired }}({{ .strings.required }}){{ end }}</span>
|
2021-05-21 20:35:25 +00:00
|
|
|
{{ end }}
|
2021-05-29 16:43:11 +00:00
|
|
|
{{ if .matrixEnabled }}
|
2022-01-27 16:48:46 +00:00
|
|
|
<span class="button ~info @low full-width center mb-4" id="link-matrix">{{ .strings.linkMatrix }} {{ if .matrixRequired }}({{ .strings.required }}){{ end }}</span>
|
2021-05-29 16:43:11 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ if or (.telegramEnabled) (or .discordEnabled .matrixEnabled) }}
|
2021-05-07 13:32:51 +00:00
|
|
|
<div id="contact-via" class="unfocused">
|
2022-01-27 16:56:13 +00:00
|
|
|
<label class="row switch pb-4 unfocused">
|
|
|
|
<input type="radio" name="contact-via" value="email" id="contact-via-email" class="mr-2"><span>Contact through Email</span>
|
2021-05-07 13:32:51 +00:00
|
|
|
</label>
|
2021-05-21 20:35:25 +00:00
|
|
|
{{ if .telegramEnabled }}
|
2022-01-27 16:56:13 +00:00
|
|
|
<label class="row switch pb-4 unfocused">
|
2022-01-13 22:34:47 +00:00
|
|
|
<input type="radio" name="contact-via" value="telegram" id="contact-via-telegram" class="mr-2"><span>Contact through Telegram</span>
|
2021-05-07 13:32:51 +00:00
|
|
|
</label>
|
2021-05-21 20:35:25 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ if .discordEnabled }}
|
2022-01-27 16:56:13 +00:00
|
|
|
<label class="row switch pb-4 unfocused">
|
2022-01-13 22:34:47 +00:00
|
|
|
<input type="radio" name="contact-via" value="discord" id="contact-via-discord" class="mr-2"><span>Contact through Discord</span>
|
2021-05-21 20:35:25 +00:00
|
|
|
</label>
|
|
|
|
{{ end }}
|
2021-05-29 16:43:11 +00:00
|
|
|
{{ if .matrixEnabled }}
|
2022-01-27 16:56:13 +00:00
|
|
|
<label class="row switch pb-4 unfocused">
|
2022-01-13 22:34:47 +00:00
|
|
|
<input type="radio" name="contact-via" value="matrix" id="contact-via-matrix" class="mr-2"><span>Contact through Matrix</span>
|
2021-05-29 16:43:11 +00:00
|
|
|
</label>
|
|
|
|
{{ end }}
|
2021-05-07 13:32:51 +00:00
|
|
|
</div>
|
2021-05-07 00:08:12 +00:00
|
|
|
{{ end }}
|
2021-06-07 12:46:46 +00:00
|
|
|
{{ end }}
|
2021-01-18 22:06:50 +00:00
|
|
|
<label class="label supra" for="create-password">{{ .strings.password }}</label>
|
2021-12-31 18:52:03 +00:00
|
|
|
<input type="password" class="input ~neutral @high mt-2 mb-4" placeholder="{{ .strings.password }}" id="create-password" aria-label="{{ .strings.password }}">
|
2022-01-27 01:58:24 +00:00
|
|
|
|
2021-01-18 22:06:50 +00:00
|
|
|
<label class="label supra" for="create-reenter-password">{{ .strings.reEnterPassword }}</label>
|
2021-12-31 18:52:03 +00:00
|
|
|
<input type="password" class="input ~neutral @high mt-2 mb-4" placeholder="{{ .strings.password }}" id="create-reenter-password" aria-label="{{ .strings.reEnterPassword }}">
|
2021-01-05 18:16:23 +00:00
|
|
|
<label>
|
|
|
|
<input type="submit" class="unfocused">
|
2021-12-30 00:49:43 +00:00
|
|
|
<span class="button ~urge @low full-width center supra submit">
|
2021-06-07 12:46:46 +00:00
|
|
|
{{ if .passwordReset }}
|
|
|
|
{{ .strings.reset }}
|
|
|
|
{{ else }}
|
|
|
|
{{ .strings.createAccountButton }}
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</label>
|
|
|
|
</form>
|
|
|
|
</div>
|
2022-01-28 22:34:34 +00:00
|
|
|
<div class="flex-1">
|
2021-12-31 18:52:03 +00:00
|
|
|
<div class="card ~neutral @low mb-4">
|
2021-01-18 22:06:50 +00:00
|
|
|
<span class="label supra" for="inv-uses">{{ .strings.passwordRequirementsHeader }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
<ul>
|
|
|
|
{{ range $key, $value := .requirements }}
|
|
|
|
<li class="" id="requirement-{{ $key }}" min="{{ $value }}">
|
|
|
|
<span class="badge lg ~positive requirement-valid"></span> <span class="content requirement-content"></span>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2022-01-10 01:55:48 +00:00
|
|
|
{{ if .captcha }}
|
|
|
|
<div class="card ~neutral @low mb-4">
|
2022-01-26 22:14:16 +00:00
|
|
|
<span class="label supra mb-2">CAPTCHA <span id="captcha-regen" title="{{ .strings.refresh }}" class="badge lg @low ~info ml-2 float-right"><i class="ri-refresh-line"></i></span><span id="captcha-success" class="badge lg @low ~critical ml-2 float-right"><i class="ri-close-line"></i></span></span>
|
2022-01-10 01:55:48 +00:00
|
|
|
<div id="captcha-img" class="mt-2 mb-2"></div>
|
|
|
|
<input class="field ~neutral @low" id="captcha-input" class="mt-2" placeholder="CAPTCHA">
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-01-09 00:07:19 +00:00
|
|
|
{{ if .contactMessage }}
|
2021-12-31 18:52:03 +00:00
|
|
|
<aside class="col aside sm ~info mt-4">{{ .contactMessage }}</aside>
|
2021-01-09 00:07:19 +00:00
|
|
|
{{ end }}
|
2021-01-05 18:16:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ template "form-base" . }}
|
|
|
|
</body>
|
|
|
|
</html>
|