This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/resources/views/yuuno/auth/register.twig

39 lines
1.7 KiB
Twig
Raw Normal View History

2016-07-31 19:36:13 +00:00
{% extends 'master.twig' %}
2016-07-31 01:32:37 +00:00
{% set title = 'Register' %}
{% block content %}
2016-11-09 18:32:23 +00:00
<div class="auth content content--auth">
{% if config('user.disable_registration') %}
2016-11-09 18:32:23 +00:00
<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>
{% else %}
2016-11-09 18:32:23 +00:00
<div class="content__header">
Register
</div>
2016-11-09 18:32:23 +00:00
<form id="registerForm" method="post" action="{{ route('auth.register') }}">
<label>
<div class="auth__label">Username</div>
<input class="input__text" type="text" name="username" autofocus placeholder="Any character"{% if get.username is defined %} value="{{ get.username }}"{% endif %}>
</label>
<label>
<div class="auth__label">E-mail</div>
<input class="input__text" type="text" name="email" placeholder="Used for e.g. password retrieval"{% if get.email is defined %} value="{{ get.email }}"{% endif %}>
</label>
<label>
<div class="auth__label">Password</div>
<input class="input__text" type="password" name="password" placeholder="Using special characters is recommended">
</label>
<button class="input__button auth__button" name="session" value="{{ session_id() }}">
<i class="fa fa-magic"></i> Register
</button>
<div class="auth__subtext">
By creating an account you agree to the <a href="{{ route('info.terms') }}">Terms of Service</a>.<br>
You are only allowed to make a single account.
</div>
</form>
{% endif %}
2016-11-09 18:32:23 +00:00
</div>
{% endblock %}