2021-01-05 18:16:23 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en" class="{{ .cssClass }}">
|
|
|
|
<head>
|
2021-01-23 18:53:14 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="css/bundle.css">
|
2021-01-05 18:16:23 +00:00
|
|
|
{{ template "header.html" . }}
|
2021-01-18 22:06:50 +00:00
|
|
|
<title>{{ .strings.pageTitle }}</title>
|
2021-01-05 18:16:23 +00:00
|
|
|
</head>
|
|
|
|
<body class="max-w-full overflow-x-hidden section">
|
|
|
|
<div id="modal-success" class="modal">
|
|
|
|
<div class="modal-content card">
|
2021-01-18 22:06:50 +00:00
|
|
|
<span class="heading mb-1">{{ .strings.successHeader }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
<p class="content mb-1">{{ .successMessage }}</p>
|
2021-01-18 22:06:50 +00:00
|
|
|
<a class="button ~urge !normal full-width center supra submit" href="{{ .jfLink }}" id="create-success-button">{{ .strings.successContinueButton }}</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">
|
|
|
|
<div class="modal-content card">
|
|
|
|
<span class="heading mb-1">{{ .strings.confirmationRequired }}</span>
|
|
|
|
<p class="content mb-1">{{ .strings.confirmationRequiredMessage }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-07 00:08:12 +00:00
|
|
|
{{ if .telegramEnabled }}
|
|
|
|
<div id="modal-telegram" class="modal">
|
|
|
|
<div class="modal-content card">
|
|
|
|
<span class="heading mb-1">{{ .strings.linkTelegram }}</span>
|
|
|
|
<p class="content mb-1">{{ .strings.sendPIN }}</p>
|
|
|
|
<h1 class="ac">{{ .telegramPIN }}</h1>
|
|
|
|
<a class="subheading link-center" href="{{ .telegramURL }}" target="_blank">
|
|
|
|
<span class="shield ~info mr-1">
|
|
|
|
<span class="icon">
|
|
|
|
<i class="ri-telegram-line"></i>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
@{{ .telegramUsername }}
|
|
|
|
</a>
|
2021-05-07 13:32:51 +00:00
|
|
|
<span class="button ~info !normal full-width center mt-1" 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">
|
|
|
|
<div class="modal-content card">
|
|
|
|
<span class="heading mb-1">{{ .strings.linkDiscord }}</span>
|
|
|
|
<p class="content mb-1"> {{ .discordSendPINMessage }}</p>
|
|
|
|
<h1 class="ac">{{ .discordPIN }}</h1>
|
2021-05-23 18:50:03 +00:00
|
|
|
<a id="discord-invite"></a>
|
2021-05-21 20:35:25 +00:00
|
|
|
<span class="button ~info !normal full-width center mt-1" id="discord-waiting">{{ .strings.success }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-05-29 16:43:11 +00:00
|
|
|
{{ if .matrixEnabled }}
|
|
|
|
<div id="modal-matrix" class="modal">
|
|
|
|
<div class="modal-content card">
|
|
|
|
<span class="heading mb-1">{{ .strings.linkMatrix }}</span>
|
|
|
|
<p class="content mb-1"> {{ .strings.matrixEnterUser }}</p>
|
|
|
|
<input type="text" class="input ~neutral !high" placeholder="@user:riot.im" id="matrix-userid">
|
|
|
|
<div class="subheading link-center mt-1">
|
|
|
|
<span class="shield ~info mr-1">
|
|
|
|
<span class="icon">
|
|
|
|
<i class="ri-chat-3-line"></i>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{{ .matrixUser }}
|
|
|
|
</div>
|
|
|
|
<span class="button ~info !normal full-width center mt-1" id="matrix-send">{{ .strings.submit }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-01-11 19:17:43 +00:00
|
|
|
<span class="dropdown" tabindex="0" id="lang-dropdown">
|
|
|
|
<span class="button ~urge dropdown-button">
|
|
|
|
<i class="ri-global-line"></i>
|
|
|
|
<span class="ml-1 chev"></span>
|
|
|
|
</span>
|
|
|
|
<div class="dropdown-display">
|
|
|
|
<div class="card ~neutral !low" id="lang-list">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
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">
|
|
|
|
<div class="card ~neutral !low">
|
|
|
|
<div class="row baseline">
|
2021-01-18 22:06:50 +00:00
|
|
|
<span class="col heading">{{ .strings.createAccountHeader }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
<span class="col subheading"> {{ .helpMessage }}</span>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
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-01-05 18:16:23 +00:00
|
|
|
<form class="card ~neutral !normal" id="form-create" href="">
|
|
|
|
<label class="label supra">
|
2021-01-18 22:06:50 +00:00
|
|
|
{{ .strings.username }}
|
|
|
|
<input type="text" class="input ~neutral !high mt-half mb-1" placeholder="{{ .strings.username }}" id="create-username" aria-label="{{ .strings.username }}">
|
2021-01-05 18:16:23 +00:00
|
|
|
</label>
|
|
|
|
|
2021-01-18 22:06:50 +00:00
|
|
|
<label class="label supra" for="create-email">{{ .strings.emailAddress }}</label>
|
2021-02-28 00:44:28 +00:00
|
|
|
<input type="email" class="input ~neutral !high mt-half mb-1" placeholder="{{ .strings.emailAddress }}" id="create-email" aria-label="{{ .strings.emailAddress }}" value="{{ .email }}">
|
2021-05-07 00:08:12 +00:00
|
|
|
{{ if .telegramEnabled }}
|
2021-05-07 13:32:51 +00:00
|
|
|
<span class="button ~info !normal full-width center mb-1" id="link-telegram">{{ .strings.linkTelegram }}</span>
|
2021-05-21 20:35:25 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ if .discordEnabled }}
|
|
|
|
<span class="button ~info !normal full-width center mb-1" id="link-discord">{{ .strings.linkDiscord }}</span>
|
|
|
|
{{ end }}
|
2021-05-29 16:43:11 +00:00
|
|
|
{{ if .matrixEnabled }}
|
|
|
|
<span class="button ~info !normal full-width center mb-1" id="link-matrix">{{ .strings.linkMatrix }}</span>
|
|
|
|
{{ end }}
|
|
|
|
{{ if or (.telegramEnabled) (or .discordEnabled .matrixEnabled) }}
|
2021-05-07 13:32:51 +00:00
|
|
|
<div id="contact-via" class="unfocused">
|
|
|
|
<label class="row switch pb-1">
|
|
|
|
<input type="radio" name="contact-via" value="email"><span>Contact through Email</span>
|
|
|
|
</label>
|
2021-05-21 20:35:25 +00:00
|
|
|
{{ if .telegramEnabled }}
|
2021-05-07 13:32:51 +00:00
|
|
|
<label class="row switch pb-1">
|
|
|
|
<input type="radio" name="contact-via" value="telegram" id="contact-via-telegram"><span>Contact through Telegram</span>
|
|
|
|
</label>
|
2021-05-21 20:35:25 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ if .discordEnabled }}
|
|
|
|
<label class="row switch pb-1">
|
|
|
|
<input type="radio" name="contact-via" value="discord" id="contact-via-discord"><span>Contact through Discord</span>
|
|
|
|
</label>
|
|
|
|
{{ end }}
|
2021-05-29 16:43:11 +00:00
|
|
|
{{ if .matrixEnabled }}
|
|
|
|
<label class="row switch pb-1">
|
|
|
|
<input type="radio" name="contact-via" value="matrix" id="contact-via-matrix"><span>Contact through Matrix</span>
|
|
|
|
</label>
|
|
|
|
{{ end }}
|
2021-05-07 13:32:51 +00:00
|
|
|
</div>
|
2021-05-07 00:08:12 +00:00
|
|
|
{{ end }}
|
2021-01-18 22:06:50 +00:00
|
|
|
<label class="label supra" for="create-password">{{ .strings.password }}</label>
|
2021-02-28 00:44:28 +00:00
|
|
|
<input type="password" class="input ~neutral !high mt-half mb-1" placeholder="{{ .strings.password }}" id="create-password" aria-label="{{ .strings.password }}">
|
2021-01-05 18:16:23 +00:00
|
|
|
|
2021-01-18 22:06:50 +00:00
|
|
|
<label class="label supra" for="create-reenter-password">{{ .strings.reEnterPassword }}</label>
|
2021-02-28 00:44:28 +00:00
|
|
|
<input type="password" class="input ~neutral !high mt-half mb-1" 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-01-18 22:06:50 +00:00
|
|
|
<span class="button ~urge !normal full-width center supra submit">{{ .strings.createAccountButton }}</span>
|
2021-01-05 18:16:23 +00:00
|
|
|
</label>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<div class="card ~neutral !normal">
|
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>
|
2021-01-09 00:07:19 +00:00
|
|
|
{{ if .contactMessage }}
|
2021-01-05 18:16:23 +00:00
|
|
|
<aside class="col aside sm ~info">{{ .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>
|
|
|
|
|