Kaynağa Gözat

member access login form block translated

bach 3 yıl önce
ebeveyn
işleme
4c0e683e07

+ 13 - 2
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: {  }

+ 2 - 0
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"
   );