-
Notifications
You must be signed in to change notification settings - Fork 16
/
register.html
51 lines (46 loc) · 1.8 KB
/
register.html
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
{% extends "layouts/public_base.html" %}
{% block page_title %}Register{% endblock %}
{% block extra_stylesheets %}
<style>
#recaptcha_div iframe {
padding: unset;
border: unset;
}
</style>
{% endblock %}
{% block content %}
<main class="page-content">
<section class="container">
<div class="row">
<div class="col-md-6">
<h1>Register</h1>
{% if current_user.is_authenticated %}
<p>Create a new user account.</p>
{% else %}
<p>DOAJ is free to use without logging in.</p>
<p>You only need an account if you wish to create an application for a journal’s inclusion in the DOAJ or you are a volunteer.</p>
{% endif %}
</div>
<div class="col-md-6">
{% include "account/_register_form.html" %}
<p>If you have difficulty registering, <a href="/contact">contact us</a>.</p>
</div>
</div>
</section>
</main>
{% endblock %}
{% block extra_js_bottom %}
{% if current_user.is_authenticated and current_user.has_role("create_user") %}
<!-- select2 for role picker on admin create user form -->
<script type="text/javascript">
jQuery(document).ready(function($) {
$('#roles').select2({tags:["{{current_user.all_top_level_roles()|join('","')|safe}}"],width:'70%'});
});
</script>
{% endif %}
{% if config.get("RECAPTCHA_ENABLE") %}
<!-- reCAPTCHA for the register form -->
<script type="text/javascript" src="/static/js/recaptcha.js?v={{config.get('DOAJ_VERSION')}}"></script>
<script src="https://www.recaptcha.net/recaptcha/api.js?onload=onloadCallback&render=explicit" async defer></script>
{% endif %}
{% endblock %}