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
status: true
dependencies:
config: { }
config:
- field.storage.user.field_memo
module:
- simplenews
- user
@ -70,9 +71,170 @@ display:
quantity: 9
style:
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:
type: 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
table: simplenews_subscriber
@ -81,7 +243,7 @@ display:
group_type: group
admin_label: ''
label: 'Subscriber ID'
exclude: false
exclude: true
alter:
alter_text: false
text: ''
@ -118,7 +280,7 @@ display:
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
hide_empty: true
empty_zero: false
hide_alter_empty: true
click_sort_column: value
@ -147,7 +309,7 @@ display:
group_type: group
admin_label: ''
label: UUID
exclude: false
exclude: true
alter:
alter_text: false
text: ''
@ -263,7 +425,7 @@ display:
group_type: group
admin_label: ''
label: Username
exclude: false
exclude: true
alter:
alter_text: false
text: ''
@ -305,6 +467,57 @@ display:
hide_alter_empty: true
entity_type: simplenews_subscriber
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:
id: status
table: simplenews_subscriber
@ -430,14 +643,14 @@ display:
entity_type: simplenews_subscriber
entity_field: created
plugin_id: date
operations:
id: operations
table: simplenews_subscriber
field: operations
relationship: none
roles_target_id:
id: roles_target_id
table: user__roles
field: roles_target_id
relationship: uid
group_type: group
admin_label: ''
label: Operations
label: Rôles
exclude: false
alter:
alter_text: false
@ -478,9 +691,11 @@ display:
hide_empty: false
empty_zero: false
hide_alter_empty: true
destination: true
entity_type: simplenews_subscriber
plugin_id: entity_operations
type: ul
separator: ', '
entity_type: user
entity_field: roles
plugin_id: user_roles
subscriptions_target_id:
id: subscriptions_target_id
table: simplenews_subscriber__subscriptions
@ -542,6 +757,68 @@ display:
separator: ', '
field_api_classes: false
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:
mail:
id: mail
@ -668,6 +945,59 @@ display:
entity_type: simplenews_subscriber
entity_field: status
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:
id: subscriptions_status
table: simplenews_subscriber__subscriptions
@ -753,9 +1083,24 @@ display:
value: 'No subscribers found.'
format: basic_html
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: { }
display_extenders: { }
filter_groups:
operator: AND
groups:
1: AND
cache_metadata:
contexts:
- 'languages:language_content'
@ -766,14 +1111,15 @@ display:
cacheable: false
max-age: -1
tags:
- 'config:field.storage.simplenews_subscriber.subscriptions'
- 'config:field.storage.user.field_memo'
page_1:
display_plugin: page
id: page_1
display_title: Page
position: 1
display_options:
display_extenders: { }
display_extenders:
views_ef_fieldset: { }
path: admin/people/simplenews
menu:
type: tab
@ -793,4 +1139,4 @@ display:
cacheable: false
max-age: -1
tags:
- 'config:field.storage.simplenews_subscriber.subscriptions'
- 'config:field.storage.user.field_memo'