{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2015-2020 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- extends config.ACCOUNTS_COVER_TEMPLATE %} {% from "invenio_accounts/_macros.html" import render_field, form_errors %} {% block page_body %}
{%- block form_header %} {%- endblock form_header %} {%- with form = register_user_form %}
{{ form.hidden_tag() }} {%- block registration_form_fields scoped %} {{ render_field(form.email, icon="user icon", autofocus=True, errormsg='email' in form.errors) }} {{ render_field(form.password, icon="lock icon", errormsg='password' in form.errors) }} {%- if form.password_confirm %} {{ render_field(form.password_confirm, icon="lock icon", errormsg=False) }} {%- endif %} {%- endblock registration_form_fields %} {%- if form.recaptcha %}
{{ form.recaptcha() }}
{%- endif %}
{%- endwith %}
{{ _('Already have an account?') }} {{ _('Log in') }}
{% endblock page_body %}