Ver código fonte

user_csv_import

bach 3 anos atrás
pai
commit
518ebc8c26

+ 1 - 0
config/sync/core.extension.yml

@@ -217,6 +217,7 @@ module:
   unique_content_field_validation: 0
   url_to_video_filter: 0
   user: 0
+  user_csv_import: 0
   user_email_verification: 0
   video_embed_field: 0
   video_embed_wysiwyg: 0

+ 55 - 0
config/sync/views.view.admin_users.yml

@@ -42,6 +42,7 @@ dependencies:
     - options
     - pagerer
     - profile
+    - role_expire
     - taxonomy
     - telephone_formatter
     - user
@@ -2640,6 +2641,60 @@ display:
           prefix: ''
           suffix: ''
           plugin_id: numeric
+        role_expire_expiry_data:
+          id: role_expire_expiry_data
+          table: users
+          field: role_expire_expiry_data
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: 'Role expiration'
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          type: ul
+          separator: ', '
+          custom_date_format: 'Y-m-d H:i'
+          timezone: ''
+          entity_type: user
+          plugin_id: role_expire_expiry_data
       defaults:
         fields: false
     cache_metadata:

+ 6 - 0
web/modules/custom/editors_menus/editors_menus.links.action.yml

@@ -68,6 +68,12 @@ editors_menus.user_add:
   appears_on:
     - view.admin_users.page_1
 
+editors_menus.user_csv_import_admin_upload:
+  route_name: user_csv_import.admin_upload
+  title: 'Import users from CSV'
+  appears_on:
+    - view.admin_users.page_1
+
 # editors_menus.simplenews_daily_add:
 #   route_name: node.add
 #   route_parameters: