浏览代码

member access login form block translated

bach 3 年之前
父节点
当前提交
4c0e683e07
共有 2 个文件被更改,包括 15 次插入2 次删除
  1. 13 2
      config/sync/block.block.userlogin.yml
  2. 2 0
      web/modules/custom/materio_user/materio_user.module

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