diff --git a/src/bundle/Resources/public/scss/_login.scss b/src/bundle/Resources/public/scss/_login.scss index 2e9a73414d..45631ffe83 100644 --- a/src/bundle/Resources/public/scss/_login.scss +++ b/src/bundle/Resources/public/scss/_login.scss @@ -186,6 +186,12 @@ font-size: $text-font-size-s; } + &__reset-password-alert { + a { + color: inherit; + } + } + &__success-toast { margin-top: calculateRem(4px); diff --git a/src/bundle/Resources/translations/messages.en.xliff b/src/bundle/Resources/translations/messages.en.xliff index 43e00fac6f..ca85b42671 100644 --- a/src/bundle/Resources/translations/messages.en.xliff +++ b/src/bundle/Resources/translations/messages.en.xliff @@ -312,8 +312,8 @@ key: ezplatform.reset_user_password.link_is_not_valid - log in to Ibexa DXP.]]> - log in to Ibexa DXP.]]> + log in to Cohesivo.]]> + log in to Cohesivo.]]> key: ezplatform.reset_user_password.success diff --git a/src/bundle/Resources/views/themes/admin/account/forgot_password/confirmation_page.html.twig b/src/bundle/Resources/views/themes/admin/account/forgot_password/confirmation_page.html.twig index 33d6af13b6..4b0f650455 100644 --- a/src/bundle/Resources/views/themes/admin/account/forgot_password/confirmation_page.html.twig +++ b/src/bundle/Resources/views/themes/admin/account/forgot_password/confirmation_page.html.twig @@ -21,6 +21,7 @@ href="{{ path('login') }}" variant="button" type="primary" + class="ibexa-login__btn" > {{ 'authentication.reset_your_password.back_to_sign_in'|trans|desc('Back to sign in page') }} diff --git a/src/bundle/Resources/views/themes/admin/account/forgot_password/index.html.twig b/src/bundle/Resources/views/themes/admin/account/forgot_password/index.html.twig index 011a8bf921..06d739b08d 100644 --- a/src/bundle/Resources/views/themes/admin/account/forgot_password/index.html.twig +++ b/src/bundle/Resources/views/themes/admin/account/forgot_password/index.html.twig @@ -12,7 +12,7 @@
{{ form_row(form_forgot_user_password.email, {'attr': {'class': 'ibexa-login__input'}}) }}
- {{ form_widget(form_forgot_user_password.reset, {'attr': {'class': 'ids-btn ids-btn--primary ids-btn--medium ibexa-login__btn--reset-password'}}) }} + {{ form_widget(form_forgot_user_password.reset, {'attr': {'class': 'ids-btn ids-btn--primary ids-btn--medium ibexa-login__btn ibexa-login__btn--reset-password'}}) }} {{ form_end(form_forgot_user_password) }} {% endif %} @@ -20,7 +20,7 @@ {{ 'authentication.reset_your_password.back_to_sign_in'|trans|desc('Back to sign in page') }} diff --git a/src/bundle/Resources/views/themes/admin/account/reset_password/confirmation_page.html.twig b/src/bundle/Resources/views/themes/admin/account/reset_password/confirmation_page.html.twig index 7b71470d7f..73dac2e8d2 100644 --- a/src/bundle/Resources/views/themes/admin/account/reset_password/confirmation_page.html.twig +++ b/src/bundle/Resources/views/themes/admin/account/reset_password/confirmation_page.html.twig @@ -1,9 +1,29 @@ {% extends '@ibexadesign/account/base.html.twig' %} {%- block content -%} - -

- {{ 'ezplatform.reset_user_password.success'|trans({ '%login%': path('login') }) - |desc('Your password has been changed. You can log in to Ibexa DXP.')|raw }} -

+

{{ 'ezplatform.reset_user_password.change_password'|trans|desc('Set new password') }}

+ {% embed '@ibexadesign/ui/component/alert/alert.html.twig' with { + type: 'success', + icon_path: ibexa_icon_path('checkmark'), + class: 'ibexa-login__reset-password-alert mt-4', + } only %} + {% block content %} +
+ + {{ 'ezplatform.reset_user_password.success'|trans({ '%login%': path('login') }) + |desc('Your password has been changed. You can log in to Cohesivo.')|raw }} + +
+ {% endblock %} + {% endembed %} + {%- endblock content -%}