From 4c0e683e078445d6637ef9db28a9a2013d0bd3e6 Mon Sep 17 00:00:00 2001 From: bach Date: Tue, 8 Jun 2021 11:08:11 +0200 Subject: [PATCH] member access login form block translated --- config/sync/block.block.userlogin.yml | 15 +++++++++++++-- .../custom/materio_user/materio_user.module | 2 ++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/config/sync/block.block.userlogin.yml b/config/sync/block.block.userlogin.yml index d03dcbae..921cb49d 100644 --- a/config/sync/block.block.userlogin.yml +++ b/config/sync/block.block.userlogin.yml @@ -3,6 +3,7 @@ langcode: en status: true dependencies: module: + - context - user theme: - materiotheme @@ -14,7 +15,17 @@ provider: null plugin: user_login_block settings: id: user_login_block - label: 'Accès membre' + label: 'Member access' provider: user label_display: visible -visibility: { } +visibility: + view_inclusion: + id: view_inclusion + negate: null + view_inclusion: { } + context_mapping: { } + request_path_exclusion: + id: request_path_exclusion + pages: '' + negate: null + context_mapping: { } diff --git a/web/modules/custom/materio_user/materio_user.module b/web/modules/custom/materio_user/materio_user.module index 83a4efd9..dbda3605 100644 --- a/web/modules/custom/materio_user/materio_user.module +++ b/web/modules/custom/materio_user/materio_user.module @@ -18,11 +18,13 @@ function materio_user_form_user_login_form_alter(&$form, FormStateInterface $for $form['name']['#attributes'] += array( "v-model" => "mail", + "title" => "", // "@keyup.enter" => "login" ); $form['pass']['#attributes'] = array( "v-model" => "password", + "title" => "", // "@keyup.enter" => "login" );