diff --git a/docker-compose.yaml b/docker-compose.yaml index 73a8fdb..eca1df4 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -35,6 +35,7 @@ services: - uploaded_data:/opt/invenio/var/instance/data - archived_data:/opt/invenio/var/instance/archive - ./invenio_assets:/opt/invenio/var/instance/static/custom_assets # Add static assets for theming + - ./invenio_templates:/opt/invenio/var/instance/templates # Add static assets for theming environment: # Flask - INVENIO_APP_ALLOWED_HOSTS=${INVENIO_APP_ALLOWED_HOSTS:-['0.0.0.0', 'localhost', '127.0.0.1']} diff --git a/invenio_templates/semantic-ui/invenio_app_rdm/login_user.html b/invenio_templates/semantic-ui/invenio_app_rdm/login_user.html new file mode 100644 index 0000000..4d5836a --- /dev/null +++ b/invenio_templates/semantic-ui/invenio_app_rdm/login_user.html @@ -0,0 +1,55 @@ +{# -*- coding: utf-8 -*- + +This file is part of Invenio. +Copyright (C) 2015-2020 CERN. +Copyright (C) 2021 TU Wien. + +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 %} +

{{ _('Log in to account') }}

+ {%- endblock form_header %} + + {%- block form_outer %} + {%- if config.ACCOUNTS_LOCAL_LOGIN_ENABLED %} + {%- with form = login_user_form %} +
+ {{ form.hidden_tag() }} + {{ 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) }} + +
+ {%- endwith %} + {%- endif %} + {%- endblock form_outer %} + +
+ + {%- block registerable %} + {%- if security.registerable %} +

+ {% trans sitename=config.ACCOUNTS_SITENAME %}New to {{ sitename }}?{% endtrans %} + {{ _('Sign up') }} +

+ {%- endif %} + {%- endblock registerable %} +
+ +{%- block recoverable %} +{%- if security.recoverable %} +
+ {{ _('Forgot password?') }} +
+{%- endif %} +{%- endblock recoverable %} +{% endblock page_body %}