72 lines
4.3 KiB
Twig
72 lines
4.3 KiB
Twig
{% extends 'global/master.twig' %}
|
|
|
|
{% block title %}Register{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if sakura.lockAuth or sakura.disableRegistration %}
|
|
<div class="loginPage">
|
|
<div class="registerForm" id="registerWarn" style="display: block;">
|
|
<div class="centreAlign">
|
|
<div class="fa fa-remove fa-5x" style="display: block; margin: 10px 0 0;"></div>
|
|
<h1>Registration is disabled.</h1>
|
|
<p>Please try again later.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<div class="loginPage">
|
|
<div class="registerForm">
|
|
<div class="head">
|
|
Register
|
|
</div>
|
|
<form id="registerForm" method="post" action="{{ route('auth.register') }}" style="display:{% if haltRegistration %}none{% else %}block{% endif %};">
|
|
<input type="hidden" name="session" value="{{ php.sessionid }}" />
|
|
<div class="leftAlign">
|
|
<label for="registerUserName">Username:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="text" id="registerUserName" name="username" onkeyup="registerVarCheck(this.id, 'username');" placeholder="Any character"{% if get.username %} value="{{ get.username }}"{% endif %} />
|
|
</div>
|
|
<div class="leftAlign">
|
|
<label for="registerEmail">E-mail:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="text" id="registerEmail" name="email" onkeyup="registerVarCheck(this.id, 'email');" placeholder="Used for e.g. password retrieval"{% if get.email %} value="{{ get.email }}"{% endif %} />
|
|
</div>
|
|
<div class="leftAlign">
|
|
<label for="registerPassword">Password:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="password" id="registerPassword" name="password" onkeyup="registerVarCheck(this.id, 'password');" placeholder="Using special characters is recommended" />
|
|
</div>
|
|
{% if sakura.recaptchaEnabled %}
|
|
<div class="leftAlign">
|
|
<label for="recaptcha_response_field">Verification:</label>
|
|
</div>
|
|
<div class="centreAlign">
|
|
{% include 'elements/captcha.twig' %}
|
|
</div>
|
|
{% endif %}
|
|
<div class="subLinks centreAlign">
|
|
<input class="inputStyling" name="tos" type="checkbox" id="registerToS" /><label for="registerToS">I agree to the <a class="default" href="{{ route('main.infopage', 'terms') }}" target="_blank">Terms of Service</a>.
|
|
</div>
|
|
<div class="centreAlign">
|
|
<input class="inputStyling" type="submit" name="submit" value="Register" id="registerAccBtn" />
|
|
</div>
|
|
</form>
|
|
<div class="registerForm" id="registerWarn" style="display: {% if not haltRegistration %}none{% else %}block{% endif %};">
|
|
<div class="centreAlign">
|
|
<h1 class="fa fa-warning fa-5x stylised" style="display: block; margin: 10px 0 0;"></h1>
|
|
<h1>Are you {{ haltName }}?</h1>
|
|
<p>Making more than one account is not permitted.</p>
|
|
<p>If you lost your password please use the reset password form but if you don't already have an account you can go ahead and click the link below to show the registration form this check is based on your IP so in some cases someone may have registered/used the site on this IP already.</p>
|
|
<p>If we find out that you already have an account we may question you about it, if you can give a good reason we'll let it slide otherwise we may issue a temporary ban.</p>
|
|
</div>
|
|
<div class="subLinks centreAlign">
|
|
<a href="javascript:void(0);" class="default" onclick="document.getElementById('registerWarn').style.display='none'; document.getElementById('registerForm').style.display='block';">This is a mistake, let me register anyway!</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|