/
verify_email.html.twig
56 lines (51 loc) · 1.68 KB
/
verify_email.html.twig
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{% extends AUTH.current_user.is_logged_in ? 'page_with_sidebar.html.twig' : 'page.html.twig' %}
{% import 'error_messages.html.twig' as ERR %}
{% block content %}
{% if not AUTH.current_user.is_logged_in %}
<div class="container-fluid">
{% endif %}
{% if verification_complete %}
<div class="page-header">
<h1>Thank you for verifying your email address</h1>
</div>
<p>You successfully verified your email address.</p>
<div class="form-group">
<a class="btn btn-primary" href="{{return}}">Click here to continue.</a>
</div>
{% else %}
<div class="page-header">
<h1>Please verify your email address</h1>
</div>
<form class="form col-sm-11 col-md-8" action="" method="GET">
{{ ERR.showErrors(slug, errors) }}
<p>
Confirmation code was sent to
{% if email %}
<strong>{{email}}</strong>
{% else %}
your email address
{% endif %}
<br/>
Please enter it below and click verify button.
</p>
<div class="form-group{{ ERR.group(slug, 'code', errors) }}">
<label class="control-label" for="startupapi-{{slug}}-code">Confirmation Code</label>
<div class="input-group">
<input class="form-control" required id="startupapi-{{slug}}-code" name="code" type="text" autocomplete="off"/>
<span class="input-group-btn">
<button class="btn btn-primary" type="submit">Verify</button>
</span>
</div>
<p class="help-block">
<span class="glyphicon glyphicon-envelope"></span>
<a href="{{ UserConfig.USERSROOTURL }}/send_email_verification_code.php">
I never got the code, please resend
</a>
</p>
</div>
</form>
{% endif %}
{% if not AUTH.current_user.is_logged_in %}
</div>
{% endif %}
{% endblock %}