File size: 1,394 Bytes
3ba647a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | {% extends "base.html" %}
{% block title %}Create your Apple Account - Apple{% endblock %}
{% block content %}
<div class="wrap form-page">
<h1>Create your Apple Account.</h1>
{% if error %}<p class="form-error" role="alert">{{ error }}</p>{% endif %}
{% if stage == 'details' %}
<form method="post" action="/shop/register" class="stack">
<input type="hidden" name="stage" value="details">
<label>Name
<input type="text" name="display_name" required autocomplete="name"
value="{{ (form or {}).get('display_name', '') }}">
</label>
<label>Email
<input type="email" name="email" required autocomplete="username"
value="{{ (form or {}).get('email', '') }}">
</label>
<label>Password
<input type="password" name="password" required autocomplete="new-password">
<small>At least 12 characters.</small>
</label>
<button class="pill" type="submit">Continue</button>
</form>
{% else %}
<p>We sent a verification code to your email address.</p>
<form method="post" action="/shop/register" class="stack">
<input type="hidden" name="stage" value="verify">
<label>Verification code
<input type="text" name="code" required inputmode="numeric" autocomplete="one-time-code">
</label>
<button class="pill" type="submit">Create Account</button>
</form>
{% endif %}
</div>
{% endblock %}
|