Disable registrations

This commit is contained in:
Stelian Tsekov 2024-04-09 09:56:13 +02:00
parent 83e42f6fc7
commit 84c091f8bd
4 changed files with 35 additions and 17 deletions

View file

@ -14,7 +14,8 @@ button.nopadding {
} }
.signup.form { .signup.form {
width: fit-content; /* width: fit-content; */
max-width: 70%;
} }
.signup.container { .signup.container {
@ -79,3 +80,11 @@ button.nopadding {
max-width: max-content; max-width: max-content;
} }
} }
.notice {
margin: 1em 0 1em 0;
padding: 0.5em !important;
background-color: #ffbc2160;
border-radius: 8px;
border: 2px solid #ffbc21ac;
}

View file

@ -74,6 +74,7 @@
"submit": "Registrieren", "submit": "Registrieren",
"login": "Einloggen" "login": "Einloggen"
} }
} },
"notice": "<strong>Notiz: </strong>Wir akzeptieren momentan keine neuen Mitglieder.</br>Bitte komme später wieder."
} }
} }

View file

@ -74,6 +74,7 @@
"submit": "Register", "submit": "Register",
"login": "Log in" "login": "Log in"
} }
} },
"notice": "<strong>Note: </strong>We currently do not accept new members.</br>Please check back at a later date."
} }
} }

View file

@ -39,36 +39,43 @@
<button data-i18n="signup.header.back" class="button clear nopadding" onclick="window.history.back()">← Back</button> <button data-i18n="signup.header.back" class="button clear nopadding" onclick="window.history.back()">← Back</button>
<h2 data-i18n="signup.header.title">TBZ Community Signup Form</h2> <h2 data-i18n="signup.header.title">TBZ Community Signup Form</h2>
<div class="notice">
<p data-i18n="signup.notice">
<strong>Note:</strong> We currently do not accept new members.<br>
Please check back at a later date.
</p>
</div>
<form name="registrationForm" onsubmit="return validateEmail()" method="post"> <form name="registrationForm" onsubmit="return validateEmail()" method="post">
<label data-i18n="signup.form.labels.fullname" for="fullName">Full Name:</label><span data-i18n="signup.form.legends.required" class="required">*</span><br> <label disabled data-i18n="signup.form.labels.fullname" for="fullName">Full Name:</label><span data-i18n="signup.form.legends.required" class="required">*</span><br>
<input type="text" id="fullName" name="fullName" data-i18n-placeholder="signup.form.labels.fullnamePlaceholder" placeholder="Full Name" required><br> <input disabled type="text" id="fullName" name="fullName" data-i18n-placeholder="signup.form.labels.fullnamePlaceholder" placeholder="Full Name" required><br>
<label data-i18n="signup.form.labels.username" for="username">Username:</label><span data-i18n="signup.form.legends.required" class="required">*</span><br> <label disabled data-i18n="signup.form.labels.username" for="username">Username:</label><span data-i18n="signup.form.legends.required" class="required">*</span><br>
<input type="text" id="username" name="username" data-i18n-placeholder="signup.form.labels.usernamePlaceholder" placeholder="Username" required><br> <input disabled type="text" id="username" name="username" data-i18n-placeholder="signup.form.labels.usernamePlaceholder" placeholder="Username" required><br>
<label data-i18n="signup.form.labels.email" for="email">Email:</label><span data-i18n="signup.form.legends.required" class="required">*</span><br> <label disabled data-i18n="signup.form.labels.email" for="email">Email:</label><span data-i18n="signup.form.legends.required" class="required">*</span><br>
<input type="email" id="email" name="email" data-i18n-placeholder="signup.form.labels.emailPlaceholder" placeholder="full.name@edu.tbz.ch" required><br> <input disabled type="email" id="email" name="email" data-i18n-placeholder="signup.form.labels.emailPlaceholder" placeholder="full.name@edu.tbz.ch" required><br>
<label data-i18n="signup.form.labels.ssh" for="sshKey">SSH-Key:</label><span class="optional">(optional)</span><br> <label disabled data-i18n="signup.form.labels.ssh" for="sshKey">SSH-Key:</label><span class="optional">(optional)</span><br>
<textarea id="sshKey" name="sshKey" data-i18n-placeholder="signup.form.labels.sshPlaceholder" placeholder="ssh-ed25519 AAAAXXXXXXXYYYYYYYZZZZZZZ+00a" rows="4"></textarea><br> <textarea disabled id="sshKey" name="sshKey" data-i18n-placeholder="signup.form.labels.sshPlaceholder" placeholder="ssh-ed25519 AAAAXXXXXXXYYYYYYYZZZZZZZ+00a" rows="4"></textarea><br>
<p data-i18n="signup.form.legal.codeofconduct"> <p data-i18n="signup.form.legal.codeofconduct">
Signing up implies that you agree to abide by our code of conduct.<br> Signing up implies that you agree to abide by our code of conduct.<br>
No drama. Be respectful. Have fun. We're all trying, and we're all in this together :) No drama. Be respectful. Have fun. We're all trying, and we're all in this together :)
</p> </p>
<input type="checkbox" id="apprenticeship" name="apprenticeship"> <input disabled type="checkbox" id="apprenticeship" name="apprenticeship">
<label data-i18n="signup.form.legal.apprenticeVerify" for="apprenticeship">I visit the TBZ and have an apprenticeship.</label><span data-i18n="signup.form.legends.required" class="required">*</span><br> <label disabled data-i18n="signup.form.legal.apprenticeVerify" for="apprenticeship">I visit the TBZ and have an apprenticeship.</label><span data-i18n="signup.form.legends.required" class="required">*</span><br>
<input type="checkbox" id="terms" name="terms" required> <input disabled type="checkbox" id="terms" name="terms" required>
<label data-i18n="signup.form.legal.termsVerify" for="terms">I agree! I have read and understood the terms of service and privacy policy.</label><span data-i18n="signup.form.legends.required" class="required">*</span><br><br> <label disabled data-i18n="signup.form.legal.termsVerify" for="terms">I agree! I have read and understood the terms of service and privacy policy.</label><span data-i18n="signup.form.legends.required" class="required">*</span><br><br>
<p><span data-i18n="signup.form.legends.required" class="required">*</span><span data-i18n="signup.form.legends.requiredText"> = required</span><br> <p><span data-i18n="signup.form.legends.required" class="required">*</span><span data-i18n="signup.form.legends.requiredText"> = required</span><br>
<span data-i18n="signup.form.legends.optional" class="optional">*</span><span data-i18n="signup.form.legends.optionalText"> = optional</span></p> <span data-i18n="signup.form.legends.optional" class="optional">*</span><span data-i18n="signup.form.legends.optionalText"> = optional</span></p>
<div class="button-container"> <div class="button-container">
<input data-i18n="signup.form.buttons.submit" type="submit" value="Register"> <input disabled data-i18n="signup.form.buttons.submit" type="submit" value="Register">
<a data-i18n="signup.form.buttons.login" class="button secondary outline" href="#">Login</a> <button disabled data-i18n="signup.form.buttons.login" class="button secondary outline">Login</button>
</div> </div>
</form> </form>
</div> </div>