improved admin views commerce licenses

This commit is contained in:
Bachir Soussi Chiadmi 2021-07-08 12:42:14 +02:00
parent 8b6dd73ec4
commit 510d7cb073
1 changed files with 122 additions and 105 deletions

View File

@ -3,8 +3,6 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- field.storage.profile.field_first_name
- field.storage.profile.field_name
- user.role.adherent - user.role.adherent
- user.role.student - user.role.student
module: module:
@ -89,11 +87,12 @@ display:
summary: '' summary: ''
description: '' description: ''
columns: columns:
views_bulk_operations_bulk_form: views_bulk_operations_bulk_form
license_id: license_id license_id: license_id
uuid: uuid uuid: uuid
uid: uid uid: uid
field_name: field_name address_given_name: address_given_name
field_first_name: field_first_name address_family_name: view_user
view_user: view_user view_user: view_user
mail: view_user mail: view_user
label: view_user label: view_user
@ -109,6 +108,11 @@ display:
product_variation: product_variation product_variation: product_variation
roles_target_id: roles_target_id roles_target_id: roles_target_id
info: info:
views_bulk_operations_bulk_form:
align: ''
separator: ''
empty_column: false
responsive: ''
license_id: license_id:
sortable: true sortable: true
default_sort_order: asc default_sort_order: asc
@ -128,14 +132,14 @@ display:
separator: '' separator: ''
empty_column: false empty_column: false
responsive: '' responsive: ''
field_name: address_given_name:
sortable: false sortable: false
default_sort_order: asc default_sort_order: asc
align: '' align: ''
separator: '' separator: ''
empty_column: false empty_column: false
responsive: '' responsive: ''
field_first_name: address_family_name:
sortable: false sortable: false
default_sort_order: asc default_sort_order: asc
align: '' align: ''
@ -219,7 +223,7 @@ display:
responsive: '' responsive: ''
granted: granted:
sortable: true sortable: true
default_sort_order: asc default_sort_order: desc
align: '' align: ''
separator: '' separator: ''
empty_column: false empty_column: false
@ -228,7 +232,7 @@ display:
sortable: false sortable: false
default_sort_order: asc default_sort_order: asc
align: '' align: ''
separator: '' separator: '<br>'
empty_column: false empty_column: false
responsive: '' responsive: ''
roles_target_id: roles_target_id:
@ -238,7 +242,7 @@ display:
separator: '' separator: ''
empty_column: false empty_column: false
responsive: '' responsive: ''
default: expires default: granted
empty_table: false empty_table: false
row: row:
type: fields type: fields
@ -497,77 +501,14 @@ display:
entity_type: commerce_license entity_type: commerce_license
entity_field: uid entity_field: uid
plugin_id: field plugin_id: field
field_name: address_given_name:
id: field_name id: address_given_name
table: profile__field_name table: profile__address
field: field_name field: address_given_name
relationship: profile relationship: profile_type
group_type: group group_type: group
admin_label: '' admin_label: ''
label: Name label: 'Adresse (address : given_name)'
exclude: true
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: 'View user (no profile provided)'
hide_empty: false
empty_zero: true
hide_alter_empty: true
click_sort_column: value
type: string
settings:
link_to_entity: 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
plugin_id: field
field_first_name:
id: field_first_name
table: profile__field_first_name
field: field_first_name
relationship: profile
group_type: group
admin_label: ''
label: 'First Name'
exclude: true exclude: true
alter: alter:
alter_text: false alter_text: false
@ -608,21 +549,56 @@ display:
hide_empty: false hide_empty: false
empty_zero: false empty_zero: false
hide_alter_empty: true hide_alter_empty: true
click_sort_column: value plugin_id: standard
type: string address_family_name:
settings: id: address_family_name
link_to_entity: false table: profile__address
group_column: value field: address_family_name
group_columns: { } relationship: profile_type
group_rows: true group_type: group
delta_limit: 0 admin_label: ''
delta_offset: 0 label: 'Adresse (address : family_name)'
delta_reversed: false exclude: true
delta_first_last: false alter:
multi_type: separator alter_text: false
separator: ', ' text: '{{ address_given_name }} {{ address_family_name }}'
field_api_classes: false make_link: false
plugin_id: field 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: 'No customer profil'
hide_empty: false
empty_zero: false
hide_alter_empty: true
plugin_id: standard
view_user: view_user:
id: view_user id: view_user
table: users table: users
@ -634,7 +610,7 @@ display:
exclude: false exclude: false
alter: alter:
alter_text: true alter_text: true
text: '<strong>{{ field_name }} {{ field_first_name }}</strong>' text: '<strong>{{ address_given_name }} {{ address_family_name }}</strong>'
make_link: false make_link: false
path: '' path: ''
absolute: false absolute: false
@ -1642,6 +1618,50 @@ display:
entity_type: user entity_type: user
entity_field: roles entity_field: roles
plugin_id: user_roles plugin_id: user_roles
roles_target_id_1:
id: roles_target_id_1
table: user__roles
field: roles_target_id
relationship: uid
group_type: group
admin_label: ''
operator: or
value:
student: student
adherent: adherent
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
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
sorts: { } sorts: { }
title: Licenses title: Licenses
header: header:
@ -1669,16 +1689,17 @@ display:
entity_type: commerce_license entity_type: commerce_license
entity_field: uid entity_field: uid
plugin_id: standard plugin_id: standard
profile: profile_type:
id: profile id: profile_type
table: users_field_data table: users_field_data
field: profile field: profile_type
relationship: uid relationship: uid
group_type: group group_type: group
admin_label: Profile admin_label: 'Profile Client'
required: false required: false
profile_type: customer
entity_type: user entity_type: user
plugin_id: standard plugin_id: profile_relationship
arguments: { } arguments: { }
display_extenders: display_extenders:
views_ef_fieldset: { } views_ef_fieldset: { }
@ -1690,9 +1711,7 @@ display:
- url - url
- url.query_args - url.query_args
- user.permissions - user.permissions
tags: tags: { }
- 'config:field.storage.profile.field_first_name'
- 'config:field.storage.profile.field_name'
page_1: page_1:
display_plugin: page display_plugin: page
id: page_1 id: page_1
@ -1710,6 +1729,4 @@ display:
- url - url
- url.query_args - url.query_args
- user.permissions - user.permissions
tags: tags: { }
- 'config:field.storage.profile.field_first_name'
- 'config:field.storage.profile.field_name'