{# # This file is part of Invenio. # Copyright (C) 2012, 2014, 2015 CERN. # # Invenio is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # Invenio is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Invenio; if not, write to the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #} {%- from "_formhelpers.html" import render_field with context %} {%- extends "page.html" %} {%- set title = title|default(None) %} {% block body %} {%- block form_header scoped -%}
{% if config.CFG_EXTERNAL_AUTH_USING_SSO %}{% block form_header_sso scoped %}

{% autoescape false %} {{ _("You can login using %(x_url_open)sSingle-Sign-On%(x_url_close)s", x_url_open='', x_url_close='') }} {% endautoescape %}


{% endblock form_header_sso %}{% endif %} {%- block form_header_message scoped -%}
{% set x_url_open = ''|format(url_for('webaccount.register')) %}

{{ _("If you already have an account, please login using the form below.") }}

{{ _("If you don't own an account yet, please %(x_url_open)s register", x_url_open=x_url_open|safe) }} {{ _("%(x_url_close)s an internal account.", x_url_close=''|safe) }}


{%- endblock form_header_message -%}
{%- endblock form_header -%} {%- block form_body scoped -%}
{%- block form_auth_internal scoped -%}
{%- block form_auth_internal_form scoped -%}

{{ _('Lost your password?') }}

{%- endblock form_auth_internal_form -%}
{%- endblock form_auth_internal -%}
{%- endblock form_body -%} {%- block form_footer scoped -%}{%- endblock form_footer -%} {% endblock %} {% block javascript %} {{ super() }} {% endblock %}