diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/accounts.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/accounts.less index dea9997..78c0cff 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/accounts.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/accounts.less @@ -52,7 +52,8 @@ background-color: #000000 !important; } -.field { +.form-accounts { + margin: 15%; text-align: left !important; & i { color: #fff !important; @@ -135,10 +136,6 @@ login and sign-up pages form background color font-size: initial; } -.form-margin { - margin: 15%; -} - /*** allowing to switch columns on the sign-up page on the small screen */ diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html index 1f53894..a62e903 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html @@ -1,16 +1,9 @@ -{# - Copyright (C) 2020 TUGRAZ - Copyright (C) 2020 mojib wali - Copyright (C) 2020 Nikita Lvov - - invenio-theme-tugraz 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.COVER_TEMPLATE %} -{% from "invenio_accounts/_macros.html" import render_field, form_errors %} - -{% block page_body %} +{# Copyright (C) 2020 TUGRAZ Copyright (C) 2020 mojib wali Copyright (C) 2020 +Nikita Lvov invenio-theme-tugraz 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.COVER_TEMPLATE %} {% from +"invenio_accounts/_macros.html" import render_field, form_errors %} {% block +page_body %}
@@ -18,59 +11,65 @@
{%- block form_header %} - + {%- endblock form_header %} - - {%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %} - -
- Or -
- {%- endif %} + + {%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %} + +
Or
+ {%- endif %} - {%- block form_outer %} - {%- with form = login_user_form %} -
- - {{ form.hidden_tag() }} - {{ form_errors(form) }} - {{ render_field(form.email, icon="user icon", autofocus=True, errormsg=False) }} - {{ render_field(form.password, icon="lock icon", errormsg=False) }} -
- + {%- block form_outer %} {%- with form = login_user_form %} + + {{ form.hidden_tag() }} {{ form_errors(form) }} {{ + render_field(form.email, icon="user icon", autofocus=True, + errormsg=False) }} {{ render_field(form.password, icon="lock icon", + errormsg=False) }} +
+
- {%- endwith %} - {%- endblock form_outer %} - - {%- block registerable %} - {%- if security.registerable %} - - {%- endif %} - {%- endblock registerable %} - - {%- block recoverable %} - {%- if security.recoverable %} + {%- endwith %} {%- endblock form_outer %} {%- block registerable %} {%- if + security.registerable %} - {%- endif %} - {%- endblock recoverable %} + {%- endif %} {%- endblock registerable %} {%- block recoverable %} {%- if + security.recoverable %} + + {%- endif %} {%- endblock recoverable %}
-
-
-{% endblock page_body %} \ No newline at end of file +
+{% endblock page_body %} diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html index e4d23d9..226f8b1 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html @@ -50,33 +50,34 @@ {%- endblock form_outer %} {%- endblock form_header %} {%- with form = register_user_form %} -
+ {{ form_errors(form) }} {{ form.hidden_tag() }} {%- block registration_form_fields scoped %} - {{ render_field(form.email, icon="envelope icon", autofocus=True, errormsg=False) }} - {{ render_field(form.password, icon="lock icon", errormsg=False) }} - {%- if form.password_confirm %} - {{ render_field(form.password_confirm, icon="lock icon", errormsg=False) }} - {%- endif %} + {{ render_field(form.email, icon="envelope icon", autofocus=True, errormsg=False) }} + {{ render_field(form.password, icon="lock icon", errormsg=False) }} + {%- 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 %}
-
- {%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %} -
- -
- {%- endif %}
{%- endwith %} + {%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %} +
+ {{ _('Sign up with TUGRAZ ') }} + + +
+ {%- endif %}