From a9c22142462df53d0a2db0465f57715f1154253a Mon Sep 17 00:00:00 2001 From: "nozomu.akaike" Date: Tue, 21 Jan 2025 19:53:16 +0900 Subject: [PATCH 01/68] =?UTF-8?q?=E5=8D=98=E4=BD=93=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E5=89=8D=E3=82=B3=E3=83=9F=E3=83=83=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/css/weko_accounts/wayf_custom.css | 22 +- .../templates/weko_accounts/login_user.html | 330 ++++++++++++++++-- 2 files changed, 330 insertions(+), 22 deletions(-) diff --git a/modules/weko-accounts/weko_accounts/static/css/weko_accounts/wayf_custom.css b/modules/weko-accounts/weko_accounts/static/css/weko_accounts/wayf_custom.css index 48c1a978ae..4b6e731e1c 100644 --- a/modules/weko-accounts/weko_accounts/static/css/weko_accounts/wayf_custom.css +++ b/modules/weko-accounts/weko_accounts/static/css/weko_accounts/wayf_custom.css @@ -187,4 +187,24 @@ label#wayf_remember_checkbox_label { input[type="radio"] { margin: 0 4px; -} \ No newline at end of file +} + +.text-divider { + display: flex; + align-items: center; + margin-bottom: 4rem; +} +.text-divider::before, +.text-divider::after { + content: ''; + height: 1px; + background-color: #a3a3a3; + flex-grow: 1; +} +.text-divider::before { + margin-right: 1rem; +} +.text-divider::after { + margin-left: 1rem; +} + diff --git a/modules/weko-accounts/weko_accounts/templates/weko_accounts/login_user.html b/modules/weko-accounts/weko_accounts/templates/weko_accounts/login_user.html index 7119c6163e..03d68c1ea4 100644 --- a/modules/weko-accounts/weko_accounts/templates/weko_accounts/login_user.html +++ b/modules/weko-accounts/weko_accounts/templates/weko_accounts/login_user.html @@ -26,10 +26,16 @@ {% from "invenio_accounts/_macros.html" import render_field, form_errors %} + {%- block css %} + {{ super() }} + {% assets "weko_accounts_css" %} + {% endassets %} + {%- endblock css %} {% block panel %} +
-
+
{%- block form_header %} {%- set site_info = site_info|get_site_info %} {% if site_info.get("enable_notify") %} @@ -41,31 +47,313 @@

{{_(config.WEK

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

{% endif %} {%- endblock form_header %} - {%- block form_outer %} + +
+ + +
+ + + + + + + + +
+ +
+
+ OR +
+ + {%- block form_outer %} {%- with form = login_user_form %}
- {{form.hidden_tag()}} - {{form_errors(form)}} - {{ render_field(form.email, icon="fa fa-user", autofocus=True, errormsg=False) }} - {{ render_field(form.password, icon="fa fa-lock", errormsg=False) }} - + {{form.hidden_tag()}} + {{form_errors(form)}} + {{ render_field(form.email, icon="fa fa-user", autofocus=True, errormsg=False) }} + {{ render_field(form.password, icon="fa fa-lock", errormsg=False) }} +
- {%- if config['WEKO_ACCOUNTS_SHIB_LOGIN_ENABLED'] %} - - {%- endif %} {%- endwith %} {%- endblock form_outer %}
- {%- block registerable %} - {%- if security.registerable %} - - {%- endif %} - {%- endblock %} + + {%- block registerable %} + {%- if security.registerable %} + + {%- endif %} + {%- endblock %}
{%- block recoverable %} {%- if security.recoverable %} @@ -74,4 +362,4 @@

{% trans sitename=config.ACCOUNTS_SITENAME %}New to {{sit {%- endblock %}

{% endblock panel %} -{%- endif %} + {%- endif %} From 0f8ff0c7c04ed8e567bf8239011812437dcf52f7 Mon Sep 17 00:00:00 2001 From: "nozomu.akaike" Date: Wed, 22 Jan 2025 10:48:13 +0900 Subject: [PATCH 02/68] =?UTF-8?q?=E5=8D=98=E4=BD=93=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E7=B5=90=E6=9E=9C=E5=8F=8D=E6=98=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/css/weko_accounts/wayf_custom.css | 5 ++++- .../weko_accounts/templates/weko_accounts/login_user.html | 8 +++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/weko-accounts/weko_accounts/static/css/weko_accounts/wayf_custom.css b/modules/weko-accounts/weko_accounts/static/css/weko_accounts/wayf_custom.css index 4b6e731e1c..d966e4e894 100644 --- a/modules/weko-accounts/weko_accounts/static/css/weko_accounts/wayf_custom.css +++ b/modules/weko-accounts/weko_accounts/static/css/weko_accounts/wayf_custom.css @@ -192,7 +192,10 @@ input[type="radio"] { .text-divider { display: flex; align-items: center; - margin-bottom: 4rem; + margin-top: 5rem; + margin-bottom: 5rem; + padding-left: 40px; + padding-right: 40px; } .text-divider::before, .text-divider::after { diff --git a/modules/weko-accounts/weko_accounts/templates/weko_accounts/login_user.html b/modules/weko-accounts/weko_accounts/templates/weko_accounts/login_user.html index 03d68c1ea4..d3c21f1ff7 100644 --- a/modules/weko-accounts/weko_accounts/templates/weko_accounts/login_user.html +++ b/modules/weko-accounts/weko_accounts/templates/weko_accounts/login_user.html @@ -18,7 +18,7 @@ # MA 02111-1307, USA. #} -{%- if config.WEKO_ACCOUNTS_SHIB_LOGIN_ENABLED and config.WEKO_ACCOUNTS_SHIB_INST_LOGIN_DIRECTLY_ENABLED and config.WEKO_ACCOUNTS_SHIB_IDP_LOGIN_ENABLED %} +- if config.WEKO_ACCOUNTS_SHIB_LOGIN_ENABLED and config.WEKO_ACCOUNTS_SHIB_INST_LOGIN_DIRECTLY_ENABLED and config.WEKO_ACCOUNTS_SHIB_IDP_LOGIN_ENABLED %} {%- set url_args = request.args.get('next', '/') | urlencode -%} {%- else %} @@ -48,6 +48,7 @@

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

{% endif %} {%- endblock form_header %} + {%- if config['WEKO_ACCOUNTS_SHIB_LOGIN_ENABLED'] %}
@@ -327,12 +328,10 @@

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

-
- -
OR
+ {%- endif %} {%- block form_outer %} {%- with form = login_user_form %} @@ -346,7 +345,6 @@

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

{%- endwith %} {%- endblock form_outer %}
- {%- block registerable %} {%- if security.registerable %}