2020-06-28 19:32:30 +02:00
|
|
|
@js(js/login/signup.js)
|
2020-06-27 00:23:57 +02:00
|
|
|
|
2020-06-28 19:32:30 +02:00
|
|
|
@extends(templates/layout_normal)
|
2020-06-27 00:23:57 +02:00
|
|
|
|
2020-06-28 19:32:30 +02:00
|
|
|
@section(main)
|
2020-06-14 17:20:20 +02:00
|
|
|
<h2>Sign up</h2>
|
|
|
|
<div class="box">
|
2020-06-25 22:35:04 +02:00
|
|
|
<form id="signupForm" action="/signup" method="post" data-redirect-on-success="/signup/success">
|
2020-06-21 12:55:49 +02:00
|
|
|
<?php if (isset($email)): ?>
|
|
|
|
<p class="justify">No user found with the given email address. Sign up with one click!</p>
|
|
|
|
<input class="big fullWidth marginTop" type="email" name="email" placeholder="Email address" value="<?= $email ?>" required>
|
|
|
|
<input class="big fullWidth marginTop" type="password" name="password" placeholder="Password confirmation" required minlength="6" autofocus>
|
|
|
|
<?php else: ?>
|
|
|
|
<input class="big fullWidth" type="email" name="email" placeholder="Email address" required autofocus>
|
|
|
|
<input class="big fullWidth marginTop" type="password" name="password" placeholder="Password" required minlength="6">
|
2020-06-21 13:40:36 +02:00
|
|
|
<input class="big fullWidth marginTop" type="password" name="password_confirm" placeholder="Password confirmation" minlength="6">
|
2020-06-21 12:55:49 +02:00
|
|
|
<?php endif; ?>
|
2020-06-14 17:20:20 +02:00
|
|
|
<p id="signupFormError" class="formError justify marginTop"></p>
|
2020-06-21 14:36:00 +02:00
|
|
|
<div class="right">
|
|
|
|
<button class="marginTop" type="submit">Sign up</button><!--
|
|
|
|
--><?php if (isset($email)): ?><!--
|
|
|
|
--><button id="resetSignupButton" class="gray marginTop marginLeft" type="button">Reset</button>
|
|
|
|
<?php endif; ?>
|
2020-06-14 17:20:20 +02:00
|
|
|
</div>
|
2020-07-05 00:04:35 +02:00
|
|
|
<p class="center marginTop"><a href="/login" title="Login">Already have an account?</a></p>
|
2020-06-21 01:33:33 +02:00
|
|
|
<hr>
|
|
|
|
<div class="center">
|
|
|
|
<a class="button yellow" href="/login/google" title="Signup with Google">Signup with Google</a>
|
|
|
|
</div>
|
2020-06-14 17:20:20 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
2020-06-27 00:23:57 +02:00
|
|
|
@endsection
|