refactored admin subscribers page

This commit is contained in:
Bachir Soussi Chiadmi 2021-11-24 21:12:05 +01:00
parent 9770abac5d
commit 3b9aa44fa3
1 changed files with 364 additions and 18 deletions

View File

@ -2,7 +2,8 @@ uuid: 53a979eb-9ee5-4a9b-b4fb-602e19e052f7
langcode: en langcode: en
status: true status: true
dependencies: dependencies:
config: { } config:
- field.storage.user.field_memo
module: module:
- simplenews - simplenews
- user - user
@ -70,9 +71,170 @@ display:
quantity: 9 quantity: 9
style: style:
type: table type: table
options:
grouping: { }
row_class: ''
default_row_class: true
override: true
sticky: false
caption: ''
summary: ''
description: ''
columns:
uid: mail
id: mail
uuid: mail
mail: mail
user_name: mail
operations: mail
status: status
created: created
roles_target_id: roles_target_id
subscriptions_target_id: subscriptions_target_id
field_memo: field_memo
info:
uid:
sortable: false
default_sort_order: asc
align: ''
separator: '<br>'
empty_column: false
responsive: ''
id:
sortable: false
default_sort_order: asc
align: ''
separator: '<br>'
empty_column: false
responsive: ''
uuid:
align: ''
separator: ''
empty_column: false
responsive: ''
mail:
sortable: false
default_sort_order: asc
align: ''
separator: '<br>'
empty_column: false
responsive: ''
user_name:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
operations:
align: ''
separator: ''
empty_column: false
responsive: ''
status:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
created:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
roles_target_id:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
subscriptions_target_id:
align: ''
separator: ''
empty_column: false
responsive: ''
field_memo:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
default: '-1'
empty_table: false
row: row:
type: fields type: fields
fields: fields:
uid:
id: uid
table: users_field_data
field: uid
relationship: uid
group_type: group
admin_label: ''
label: 'Identifiant (ID) utilisateur'
exclude: false
alter:
alter_text: false
text: '<a href="/user/{{ uid }/edit">{{ uid }}</a>'
make_link: true
path: '/user/{{ uid }}/edit'
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: true
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: number_integer
settings:
thousand_separator: ''
prefix_suffix: false
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
entity_type: user
entity_field: uid
plugin_id: field
id: id:
id: id id: id
table: simplenews_subscriber table: simplenews_subscriber
@ -81,7 +243,7 @@ display:
group_type: group group_type: group
admin_label: '' admin_label: ''
label: 'Subscriber ID' label: 'Subscriber ID'
exclude: false exclude: true
alter: alter:
alter_text: false alter_text: false
text: '' text: ''
@ -118,7 +280,7 @@ display:
element_wrapper_class: '' element_wrapper_class: ''
element_default_classes: true element_default_classes: true
empty: '' empty: ''
hide_empty: false hide_empty: true
empty_zero: false empty_zero: false
hide_alter_empty: true hide_alter_empty: true
click_sort_column: value click_sort_column: value
@ -147,7 +309,7 @@ display:
group_type: group group_type: group
admin_label: '' admin_label: ''
label: UUID label: UUID
exclude: false exclude: true
alter: alter:
alter_text: false alter_text: false
text: '' text: ''
@ -263,7 +425,7 @@ display:
group_type: group group_type: group
admin_label: '' admin_label: ''
label: Username label: Username
exclude: false exclude: true
alter: alter:
alter_text: false alter_text: false
text: '' text: ''
@ -305,6 +467,57 @@ display:
hide_alter_empty: true hide_alter_empty: true
entity_type: simplenews_subscriber entity_type: simplenews_subscriber
plugin_id: simplenews_user_name plugin_id: simplenews_user_name
operations:
id: operations
table: simplenews_subscriber
field: operations
relationship: none
group_type: group
admin_label: ''
label: Operations
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
destination: true
entity_type: simplenews_subscriber
plugin_id: entity_operations
status: status:
id: status id: status
table: simplenews_subscriber table: simplenews_subscriber
@ -430,14 +643,14 @@ display:
entity_type: simplenews_subscriber entity_type: simplenews_subscriber
entity_field: created entity_field: created
plugin_id: date plugin_id: date
operations: roles_target_id:
id: operations id: roles_target_id
table: simplenews_subscriber table: user__roles
field: operations field: roles_target_id
relationship: none relationship: uid
group_type: group group_type: group
admin_label: '' admin_label: ''
label: Operations label: Rôles
exclude: false exclude: false
alter: alter:
alter_text: false alter_text: false
@ -478,9 +691,11 @@ display:
hide_empty: false hide_empty: false
empty_zero: false empty_zero: false
hide_alter_empty: true hide_alter_empty: true
destination: true type: ul
entity_type: simplenews_subscriber separator: ', '
plugin_id: entity_operations entity_type: user
entity_field: roles
plugin_id: user_roles
subscriptions_target_id: subscriptions_target_id:
id: subscriptions_target_id id: subscriptions_target_id
table: simplenews_subscriber__subscriptions table: simplenews_subscriber__subscriptions
@ -542,6 +757,68 @@ display:
separator: ', ' separator: ', '
field_api_classes: false field_api_classes: false
plugin_id: field plugin_id: field
field_memo:
id: field_memo
table: user__field_memo
field: field_memo
relationship: uid
group_type: group
admin_label: ''
label: Memo
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
click_sort_column: value
type: basic_string
settings: { }
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
plugin_id: field
filters: filters:
mail: mail:
id: mail id: mail
@ -668,6 +945,59 @@ display:
entity_type: simplenews_subscriber entity_type: simplenews_subscriber
entity_field: status entity_field: status
plugin_id: boolean plugin_id: boolean
roles_target_id:
id: roles_target_id
table: user__roles
field: roles_target_id
relationship: uid
group_type: group
admin_label: ''
operator: or
value: { }
group: 1
exposed: true
expose:
operator_id: roles_target_id_op
label: Rôles
description: ''
use_operator: false
operator: roles_target_id_op
operator_limit_selection: false
operator_list: { }
identifier: roles_target_id
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
unverified: '0'
anonymous: '0'
free_user: '0'
contact_company: '0'
alpha_testeur: '0'
student: '0'
adherent: '0'
translator: '0'
admin_showroom: '0'
admin: '0'
root: '0'
reduce: false
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
reduce_duplicates: false
entity_type: user
entity_field: roles
plugin_id: user_roles
subscriptions_status: subscriptions_status:
id: subscriptions_status id: subscriptions_status
table: simplenews_subscriber__subscriptions table: simplenews_subscriber__subscriptions
@ -753,9 +1083,24 @@ display:
value: 'No subscribers found.' value: 'No subscribers found.'
format: basic_html format: basic_html
plugin_id: text plugin_id: text
relationships: { } relationships:
uid:
id: uid
table: simplenews_subscriber
field: uid
relationship: none
group_type: group
admin_label: Utilisateur
required: false
entity_type: simplenews_subscriber
entity_field: uid
plugin_id: standard
arguments: { } arguments: { }
display_extenders: { } display_extenders: { }
filter_groups:
operator: AND
groups:
1: AND
cache_metadata: cache_metadata:
contexts: contexts:
- 'languages:language_content' - 'languages:language_content'
@ -766,14 +1111,15 @@ display:
cacheable: false cacheable: false
max-age: -1 max-age: -1
tags: tags:
- 'config:field.storage.simplenews_subscriber.subscriptions' - 'config:field.storage.user.field_memo'
page_1: page_1:
display_plugin: page display_plugin: page
id: page_1 id: page_1
display_title: Page display_title: Page
position: 1 position: 1
display_options: display_options:
display_extenders: { } display_extenders:
views_ef_fieldset: { }
path: admin/people/simplenews path: admin/people/simplenews
menu: menu:
type: tab type: tab
@ -793,4 +1139,4 @@ display:
cacheable: false cacheable: false
max-age: -1 max-age: -1
tags: tags:
- 'config:field.storage.simplenews_subscriber.subscriptions' - 'config:field.storage.user.field_memo'